PPC: Debug check fix for test SMI optimization.
R=mbrandy@us.ibm.com, michael_dawson@ca.ibm.com BUG= Review URL: https://codereview.chromium.org/1202383005 Cr-Commit-Position: refs/heads/master@{#29269}
This commit is contained in:
parent
51073d5f40
commit
c05c9f1881
@ -874,11 +874,7 @@ void PatchInlinedSmiCode(Address address, InlinedSmiCheck check) {
|
|||||||
patcher.masm()->TestIfSmi(reg, r0);
|
patcher.masm()->TestIfSmi(reg, r0);
|
||||||
} else {
|
} else {
|
||||||
DCHECK(check == DISABLE_INLINED_SMI_CHECK);
|
DCHECK(check == DISABLE_INLINED_SMI_CHECK);
|
||||||
#if V8_TARGET_ARCH_PPC64
|
DCHECK(Assembler::IsAndi(instr_at_patch));
|
||||||
DCHECK(Assembler::IsRldicl(instr_at_patch));
|
|
||||||
#else
|
|
||||||
DCHECK(Assembler::IsRlwinm(instr_at_patch));
|
|
||||||
#endif
|
|
||||||
patcher.masm()->cmp(reg, reg, cr0);
|
patcher.masm()->cmp(reg, reg, cr0);
|
||||||
}
|
}
|
||||||
DCHECK(Assembler::IsBranch(branch_instr));
|
DCHECK(Assembler::IsBranch(branch_instr));
|
||||||
|
@ -337,6 +337,9 @@ bool Assembler::IsRlwinm(Instr instr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool Assembler::IsAndi(Instr instr) { return ((instr & kOpcodeMask) == ANDIx); }
|
||||||
|
|
||||||
|
|
||||||
#if V8_TARGET_ARCH_PPC64
|
#if V8_TARGET_ARCH_PPC64
|
||||||
bool Assembler::IsRldicl(Instr instr) {
|
bool Assembler::IsRldicl(Instr instr) {
|
||||||
return (((instr & kOpcodeMask) == EXT5) &&
|
return (((instr & kOpcodeMask) == EXT5) &&
|
||||||
|
@ -1324,6 +1324,7 @@ class Assembler : public AssemblerBase {
|
|||||||
static bool IsCmpRegister(Instr instr);
|
static bool IsCmpRegister(Instr instr);
|
||||||
static bool IsCmpImmediate(Instr instr);
|
static bool IsCmpImmediate(Instr instr);
|
||||||
static bool IsRlwinm(Instr instr);
|
static bool IsRlwinm(Instr instr);
|
||||||
|
static bool IsAndi(Instr instr);
|
||||||
#if V8_TARGET_ARCH_PPC64
|
#if V8_TARGET_ARCH_PPC64
|
||||||
static bool IsRldicl(Instr instr);
|
static bool IsRldicl(Instr instr);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user