Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index 891888d232def562938c690516bb0c84a7326abe..c774b6d9aea56cd1b7c184546c778986de42f03d 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -5088,18 +5088,17 @@ void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) { |
VisitForStackValue(expr->right()); |
__ InvokeBuiltin(Builtins::IN, CALL_FUNCTION); |
PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
- __ LoadRoot(ip, Heap::kTrueValueRootIndex); |
- __ cmp(r0, ip); |
+ __ CompareRoot(r0, Heap::kTrueValueRootIndex); |
Split(eq, if_true, if_false, fall_through); |
break; |
case Token::INSTANCEOF: { |
- VisitForStackValue(expr->right()); |
- InstanceofStub stub(isolate(), InstanceofStub::kNoFlags); |
+ VisitForAccumulatorValue(expr->right()); |
+ __ pop(r1); |
+ InstanceOfStub stub(isolate()); |
__ CallStub(&stub); |
- PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
- // The stub returns 0 for true. |
- __ tst(r0, r0); |
+ PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
+ __ CompareRoot(r0, Heap::kTrueValueRootIndex); |
Split(eq, if_true, if_false, fall_through); |
break; |
} |