Index: src/arm64/lithium-codegen-arm64.cc |
diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc |
index 3a2ef8f6a94c030900cc323a6e5f1f458b6f0a85..6fb1088efc71e9b6b27ff9e52c61e2b24369f44c 100644 |
--- a/src/arm64/lithium-codegen-arm64.cc |
+++ b/src/arm64/lithium-codegen-arm64.cc |
@@ -5035,8 +5035,8 @@ void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
// here. |
__ LoadHeapObject(scratch1, instr->hydrogen()->pairs()); |
__ Mov(scratch2, Smi::FromInt(instr->hydrogen()->flags())); |
- __ Push(cp, scratch1, scratch2); // The context is the first argument. |
- CallRuntime(Runtime::kDeclareGlobals, 3, instr); |
+ __ Push(scratch1, scratch2); |
+ CallRuntime(Runtime::kDeclareGlobals, 2, instr); |
} |