| Index: src/mips/full-codegen-mips.cc
|
| diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
|
| index 7a2c09dda5d0d8343eb568fcfeb363fb66647f1f..3199de60d04f09f3463c06e796d0cadaa9a2d811 100644
|
| --- a/src/mips/full-codegen-mips.cc
|
| +++ b/src/mips/full-codegen-mips.cc
|
| @@ -4833,10 +4833,13 @@ 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);
|
| + __ mov(a3, v0);
|
| + TypeofStub typeof_stub(isolate());
|
| + __ CallStub(&typeof_stub);
|
| context()->Plug(v0);
|
| break;
|
| }
|
|
|