| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index 703330142e12aa3b00f90b63f42aa9f6cfc01749..6ef215e16b6eb9514649301daefb04d6f0039cb3 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -4723,10 +4723,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(ebx, eax);
|
| + TypeofStub typeof_stub(isolate());
|
| + __ CallStub(&typeof_stub);
|
| context()->Plug(eax);
|
| break;
|
| }
|
|
|