Index: src/mips/simulator-mips.cc |
diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc |
index 3b3869532cc9cb8f90dfd9a4f232e3f6a8dfa806..7628237037e4fa9ef0535ee599c7756a87675cb8 100644 |
--- a/src/mips/simulator-mips.cc |
+++ b/src/mips/simulator-mips.cc |
@@ -2716,7 +2716,7 @@ int32_t Simulator::Call(byte* entry, int argument_count, ...) { |
// Store remaining arguments on stack, from low to high memory. |
intptr_t* stack_argument = reinterpret_cast<intptr_t*>(entry_stack); |
for (int i = 4; i < argument_count; i++) { |
- stack_argument[i - 4 + kArgsSlotsNum] = va_arg(parameters, int32_t); |
+ stack_argument[i - 4 + kCArgSlotCount] = va_arg(parameters, int32_t); |
} |
va_end(parameters); |
set_register(sp, entry_stack); |