ARM: Fix condition usage in DeoptimizeIf().
BUG=none TEST=none Review URL: http://codereview.chromium.org/6447003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6685 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
721b60d3f5
commit
a9a9111938
@ -647,7 +647,7 @@ void LCodeGen::DeoptimizeIf(Condition cc, LEnvironment* environment) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (cc == kNoCondition) {
|
||||
if (cc == al) {
|
||||
if (FLAG_trap_on_deopt) __ stop("trap_on_deopt");
|
||||
__ Jump(entry, RelocInfo::RUNTIME_ENTRY);
|
||||
} else {
|
||||
@ -1189,7 +1189,7 @@ void LCodeGen::DoMulI(LMulI* instr) {
|
||||
__ b(ne, &done);
|
||||
if (instr->InputAt(1)->IsConstantOperand()) {
|
||||
if (ToInteger32(LConstantOperand::cast(instr->InputAt(1))) <= 0) {
|
||||
DeoptimizeIf(kNoCondition, instr->environment());
|
||||
DeoptimizeIf(al, instr->environment());
|
||||
}
|
||||
} else {
|
||||
// Test the non-zero operand for negative sign.
|
||||
@ -3834,7 +3834,7 @@ void LCodeGen::DoLazyBailout(LLazyBailout* instr) {
|
||||
|
||||
|
||||
void LCodeGen::DoDeoptimize(LDeoptimize* instr) {
|
||||
DeoptimizeIf(kNoCondition, instr->environment());
|
||||
DeoptimizeIf(al, instr->environment());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user