Index: src/mips/macro-assembler-mips.h |
diff --git a/src/mips/macro-assembler-mips.h b/src/mips/macro-assembler-mips.h |
index 9cc774873d6d98af8308c5a46eea1c2a95e4c519..2814c943b49b3b2ec54a7a77e062cc086d402cc4 100644 |
--- a/src/mips/macro-assembler-mips.h |
+++ b/src/mips/macro-assembler-mips.h |
@@ -1201,11 +1201,18 @@ class MacroAssembler: public Assembler { |
void CallJSExitStub(CodeStub* stub); |
// Call a runtime routine. |
- void CallRuntime(const Runtime::Function* f, int num_arguments); |
- void CallRuntimeSaveDoubles(Runtime::FunctionId id); |
+ void CallRuntime(const Runtime::Function* f, |
+ int num_arguments, |
+ SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
+ void CallRuntimeSaveDoubles(Runtime::FunctionId id) { |
+ const Runtime::Function* function = Runtime::FunctionForId(id); |
+ CallRuntime(function, function->nargs, kSaveFPRegs); |
+ } |
// Convenience function: Same as above, but takes the fid instead. |
- void CallRuntime(Runtime::FunctionId fid, int num_arguments); |
+ void CallRuntime(Runtime::FunctionId id, int num_arguments) { |
+ CallRuntime(Runtime::FunctionForId(id), num_arguments); |
+ } |
// Convenience function: call an external reference. |
void CallExternalReference(const ExternalReference& ext, |