Index: src/ppc/full-codegen-ppc.cc |
diff --git a/src/ppc/full-codegen-ppc.cc b/src/ppc/full-codegen-ppc.cc |
index 27de1dcecb39cabe0595b73a8e6b16c8a872f7e5..39d6dae918abcad8d62e61f5fc55883a3f214722 100644 |
--- a/src/ppc/full-codegen-ppc.cc |
+++ b/src/ppc/full-codegen-ppc.cc |
@@ -4811,10 +4811,12 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
case Token::TYPEOF: { |
Comment cmnt(masm_, "[ UnaryOperation (TYPEOF)"); |
{ |
- StackValueContext context(this); |
+ AccumulatorValueContext context(this); |
VisitForTypeofValue(expr->expression()); |
} |
- __ CallRuntime(Runtime::kTypeof, 1); |
+ __ mr(r6, r3); |
+ TypeofStub typeof_stub(isolate()); |
+ __ CallStub(&typeof_stub); |
context()->Plug(r3); |
break; |
} |