Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 96fa4fc49630424093eaa29874c118e95c34a115..99a056f4b088a28cd4b140c0260b653542d7f612 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -605,22 +605,9 @@ void MacroAssembler::IndexFromHash(Register hash, Register index) { |
} |
-void MacroAssembler::CallRuntime(Runtime::FunctionId id, int num_arguments) { |
- CallRuntime(Runtime::FunctionForId(id), num_arguments); |
-} |
- |
- |
-void MacroAssembler::CallRuntimeSaveDoubles(Runtime::FunctionId id) { |
- const Runtime::Function* function = Runtime::FunctionForId(id); |
- Set(rax, function->nargs); |
- LoadAddress(rbx, ExternalReference(function, isolate())); |
- CEntryStub ces(1, kSaveFPRegs); |
- CallStub(&ces); |
-} |
- |
- |
void MacroAssembler::CallRuntime(const Runtime::Function* f, |
- int num_arguments) { |
+ int num_arguments, |
+ SaveFPRegsMode save_doubles) { |
// If the expected number of arguments of the runtime function is |
// constant, we check that the actual number of arguments match the |
// expectation. |
@@ -635,7 +622,7 @@ void MacroAssembler::CallRuntime(const Runtime::Function* f, |
// smarter. |
Set(rax, num_arguments); |
LoadAddress(rbx, ExternalReference(f, isolate())); |
- CEntryStub ces(f->result_size); |
+ CEntryStub ces(f->result_size, save_doubles); |
CallStub(&ces); |
} |