Index: src/arm64/full-codegen-arm64.cc |
diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc |
index af4a6d647d9f3e2d54900a6c863078ab16368888..aee9ddf40329c911a6ab51cb33111d1109d799f4 100644 |
--- a/src/arm64/full-codegen-arm64.cc |
+++ b/src/arm64/full-codegen-arm64.cc |
@@ -4482,10 +4482,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; |
} |