Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 6a3b72df2946ac3762e39d179aa0a2b1ee20d66d..78f44ab23eefa573b7983680ff3389c4768530df 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -677,8 +677,9 @@ void FullCodeGenerator::DoTest(Expression* condition, |
Label* if_true, |
Label* if_false, |
Label* fall_through) { |
- ToBooleanStub stub(result_register()); |
- __ CallStub(&stub, condition->test_id()); |
+ __ mov(a0, result_register()); |
+ Handle<Code> ic = ToBooleanStub::GetUninitialized(isolate()); |
+ CallIC(ic, RelocInfo::CODE_TARGET, condition->test_id()); |
__ mov(at, zero_reg); |
Split(ne, v0, Operand(at), if_true, if_false, fall_through); |
} |
@@ -2061,8 +2062,9 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
Handle<Code> done_ic = isolate()->builtins()->LoadIC_Initialize(); |
CallIC(done_ic); // result.done in v0 |
__ Addu(sp, sp, Operand(kPointerSize)); // drop LoadIC state |
- ToBooleanStub stub(v0); |
- __ CallStub(&stub); |
+ __ mov(a0, v0); |
+ Handle<Code> bool_ic = ToBooleanStub::GetUninitialized(isolate()); |
+ CallIC(bool_ic); |
__ Branch(&l_try, eq, v0, Operand(zero_reg)); |
// result.value |