Index: src/mips/simulator-mips.cc |
diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc |
index 94c3112ff402e3c175d2da74381f90e4e00e9b93..cf78f8001c9dcc6d86e63fa17aec4ab6ed7912e9 100644 |
--- a/src/mips/simulator-mips.cc |
+++ b/src/mips/simulator-mips.cc |
@@ -2028,12 +2028,11 @@ void Simulator::Format(Instruction* instr, const char* format) { |
// 64-bit value. With the code below we assume that all runtime calls return |
// 64 bits of result. If they don't, the v1 result register contains a bogus |
// value, which is fine because it is caller-saved. |
-typedef int64_t (*SimulatorRuntimeCall)(int32_t arg0, |
- int32_t arg1, |
- int32_t arg2, |
- int32_t arg3, |
- int32_t arg4, |
- int32_t arg5); |
+typedef int64_t (*SimulatorRuntimeCall)(int32_t arg0, int32_t arg1, |
+ int32_t arg2, int32_t arg3, |
+ int32_t arg4, int32_t arg5, |
+ int32_t arg6, int32_t arg7, |
+ int32_t arg8); |
typedef ObjectTriple (*SimulatorRuntimeTripleCall)(int32_t arg0, int32_t arg1, |
int32_t arg2, int32_t arg3, |
@@ -2076,6 +2075,10 @@ void Simulator::SoftwareInterrupt() { |
// Args 4 and 5 are on the stack after the reserved space for args 0..3. |
int32_t arg4 = stack_pointer[4]; |
int32_t arg5 = stack_pointer[5]; |
+ int32_t arg6 = stack_pointer[6]; |
+ int32_t arg7 = stack_pointer[7]; |
+ int32_t arg8 = stack_pointer[8]; |
+ STATIC_ASSERT(kMaxCParameters == 9); |
bool fp_call = |
(redirection->type() == ExternalReference::BUILTIN_FP_FP_CALL) || |
@@ -2282,11 +2285,12 @@ void Simulator::SoftwareInterrupt() { |
if (::v8::internal::FLAG_trace_sim) { |
PrintF( |
"Call to host function at %p " |
- "args %08x, %08x, %08x, %08x, %08x, %08x\n", |
+ "args %08x, %08x, %08x, %08x, %08x, %08x, %08x, %08x, %08x\n", |
static_cast<void*>(FUNCTION_ADDR(target)), arg0, arg1, arg2, arg3, |
- arg4, arg5); |
+ arg4, arg5, arg6, arg7, arg8); |
} |
- int64_t result = target(arg0, arg1, arg2, arg3, arg4, arg5); |
+ int64_t result = |
+ target(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); |
set_register(v0, static_cast<int32_t>(result)); |
set_register(v1, static_cast<int32_t>(result >> 32)); |
} |