Index: src/ia32/macro-assembler-ia32.h |
diff --git a/src/ia32/macro-assembler-ia32.h b/src/ia32/macro-assembler-ia32.h |
index e984b2cad973f8da485cb030d89fabc95757c25e..ba09341bbb627d36a59d86f1124a270599a5c4a6 100644 |
--- a/src/ia32/macro-assembler-ia32.h |
+++ b/src/ia32/macro-assembler-ia32.h |
@@ -760,11 +760,18 @@ class MacroAssembler: public Assembler { |
void StubReturn(int argc); |
// 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 id, 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(ExternalReference ref, int num_arguments); |