Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 967a4d41ea2400beb75defcbaeaa401e0d4c52ea..2b0491493134f5425720a941a17b9e967e1bd784 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -678,8 +678,8 @@ void FullCodeGenerator::DoTest(Expression* condition, |
Label* if_true, |
Label* if_false, |
Label* fall_through) { |
- ToBooleanStub stub(result_register()); |
- __ CallStub(&stub, condition->test_id()); |
+ Handle<Code> ic = ToBooleanStub::GetUninitialized(isolate()); |
+ CallIC(ic, RelocInfo::CODE_TARGET, condition->test_id()); |
__ tst(result_register(), result_register()); |
Split(ne, if_true, if_false, fall_through); |
} |
@@ -2050,8 +2050,8 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
Handle<Code> done_ic = isolate()->builtins()->LoadIC_Initialize(); |
CallIC(done_ic); // result.done in r0 |
__ add(sp, sp, Operand(kPointerSize)); // drop LoadIC state |
- ToBooleanStub stub(r0); |
- __ CallStub(&stub); |
+ Handle<Code> bool_ic = ToBooleanStub::GetUninitialized(isolate()); |
+ CallIC(bool_ic); |
__ cmp(r0, Operand(0)); |
__ b(eq, &l_try); |