| Index: src/arm64/full-codegen-arm64.cc
|
| diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc
|
| index 80013e4b8ebef4dc30e9c3814b2562fc86d9a190..c34cb0e5f04fe7097f393b579c79c3a2d81e618c 100644
|
| --- a/src/arm64/full-codegen-arm64.cc
|
| +++ b/src/arm64/full-codegen-arm64.cc
|
| @@ -4513,10 +4513,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);
|
| + __ Mov(x3, x0);
|
| + TypeofStub typeof_stub(isolate());
|
| + __ CallStub(&typeof_stub);
|
| context()->Plug(x0);
|
| break;
|
| }
|
|
|