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:
dstence 2015-06-24 14:21:44 -07:00 committed by Commit bot
parent 51073d5f40
commit c05c9f1881
3 changed files with 5 additions and 5 deletions

View File

@ -874,11 +874,7 @@ void PatchInlinedSmiCode(Address address, InlinedSmiCheck check) {
patcher.masm()->TestIfSmi(reg, r0);
} else {
DCHECK(check == DISABLE_INLINED_SMI_CHECK);
#if V8_TARGET_ARCH_PPC64
DCHECK(Assembler::IsRldicl(instr_at_patch));
#else
DCHECK(Assembler::IsRlwinm(instr_at_patch));
#endif
DCHECK(Assembler::IsAndi(instr_at_patch));
patcher.masm()->cmp(reg, reg, cr0);
}
DCHECK(Assembler::IsBranch(branch_instr));

View File

@ -337,6 +337,9 @@ bool Assembler::IsRlwinm(Instr instr) {
}
bool Assembler::IsAndi(Instr instr) { return ((instr & kOpcodeMask) == ANDIx); }
#if V8_TARGET_ARCH_PPC64
bool Assembler::IsRldicl(Instr instr) {
return (((instr & kOpcodeMask) == EXT5) &&

View File

@ -1324,6 +1324,7 @@ class Assembler : public AssemblerBase {
static bool IsCmpRegister(Instr instr);
static bool IsCmpImmediate(Instr instr);
static bool IsRlwinm(Instr instr);
static bool IsAndi(Instr instr);
#if V8_TARGET_ARCH_PPC64
static bool IsRldicl(Instr instr);
#endif