| Index: src/x64/full-codegen-x64.cc
|
| diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc
|
| index 50752cf06bd88c62f93d254ab01fcaf90f38a01e..b539b760488232c40b7ba14e4500cf475d32b44e 100644
|
| --- a/src/x64/full-codegen-x64.cc
|
| +++ b/src/x64/full-codegen-x64.cc
|
| @@ -4776,10 +4776,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);
|
| + __ movp(rbx, rax);
|
| + TypeofStub typeof_stub(isolate());
|
| + __ CallStub(&typeof_stub);
|
| context()->Plug(rax);
|
| break;
|
| }
|
|
|