Index: src/compiler/mips64/code-generator-mips64.cc |
diff --git a/src/compiler/mips64/code-generator-mips64.cc b/src/compiler/mips64/code-generator-mips64.cc |
index 1ce1c5428bdafc0356eb34ac17b35f29f8e99102..dc4d414c6089906e46c49334af092dbedd9dd926 100644 |
--- a/src/compiler/mips64/code-generator-mips64.cc |
+++ b/src/compiler/mips64/code-generator-mips64.cc |
@@ -2239,6 +2239,9 @@ void CodeGenerator::AssembleConstructFrame() { |
__ mov(fp, sp); |
} else if (descriptor->IsJSFunctionCall()) { |
__ Prologue(this->info()->GeneratePreagedPrologue()); |
+ if (descriptor->PushArgumentCount()) { |
+ __ Push(kJavaScriptCallArgCountRegister); |
+ } |
} else { |
__ StubPrologue(info()->GetOutputStackFrameType()); |
} |