Index: src/mips64/interface-descriptors-mips64.cc |
diff --git a/src/mips64/interface-descriptors-mips64.cc b/src/mips64/interface-descriptors-mips64.cc |
index ab697812dee5873ac6e4972a798cfbd7b045aff1..e1f25b44013320f984eb81395701ed21a910d768 100644 |
--- a/src/mips64/interface-descriptors-mips64.cc |
+++ b/src/mips64/interface-descriptors-mips64.cc |
@@ -392,16 +392,27 @@ void MathRoundVariantCallFromOptimizedCodeDescriptor:: |
} |
-void PushArgsAndCallDescriptor::InitializePlatformSpecific( |
+void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
Register registers[] = { |
- a0, // argument count (including receiver) |
+ a0, // argument count (not including receiver) |
a2, // address of first argument |
a1 // the target callable to be call |
}; |
data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
+ |
+void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
+ Register registers[] = { |
+ a0, // argument count (argc) |
+ a2, // address of first argument (argv) |
+ a1 // the runtime function to call |
+ }; |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
+} |
+ |
} // namespace internal |
} // namespace v8 |