Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index 2e7efca9e7eac46bb59d98c8852ff047f3e1aa04..63cbf2cabcd65a558b2dfc831c8bdecf4176afda 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -1238,11 +1238,9 @@ void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info, |
__ Mov(x2, Operand(info)); |
__ CallStub(&stub); |
} else { |
- __ Mov(x11, Operand(info)); |
- __ LoadRoot(x10, pretenure ? Heap::kTrueValueRootIndex |
- : Heap::kFalseValueRootIndex); |
- __ Push(cp, x11, x10); |
- __ CallRuntime(Runtime::kNewClosure, 3); |
+ __ Push(info); |
+ __ CallRuntime( |
+ pretenure ? Runtime::kNewClosure_Tenured : Runtime::kNewClosure, 1); |
} |
context()->Plug(x0); |
} |