Index: src/mips64/macro-assembler-mips64.h |
diff --git a/src/mips64/macro-assembler-mips64.h b/src/mips64/macro-assembler-mips64.h |
index a8658141e2d282683007aa59c58222a1a235dfde..7f8486af4ec361a45830351c54f1fd761fd00a46 100644 |
--- a/src/mips64/macro-assembler-mips64.h |
+++ b/src/mips64/macro-assembler-mips64.h |
@@ -1355,16 +1355,24 @@ const Operand& rt = Operand(zero_reg), BranchDelaySlot bd = PROTECT |
void CallRuntime(const Runtime::Function* f, int num_arguments, |
SaveFPRegsMode save_doubles = kDontSaveFPRegs, |
BranchDelaySlot bd = PROTECT); |
- void CallRuntimeSaveDoubles(Runtime::FunctionId id) { |
- const Runtime::Function* function = Runtime::FunctionForId(id); |
+ void CallRuntimeSaveDoubles(Runtime::FunctionId fid) { |
+ const Runtime::Function* function = Runtime::FunctionForId(fid); |
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 fid, |
SaveFPRegsMode save_doubles = kDontSaveFPRegs, |
BranchDelaySlot bd = PROTECT) { |
- CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles, bd); |
+ const Runtime::Function* function = Runtime::FunctionForId(fid); |
+ CallRuntime(function, function->nargs, save_doubles, bd); |
+ } |
+ |
+ // Convenience function: Same as above, but takes the fid instead. |
+ void CallRuntime(Runtime::FunctionId fid, int num_arguments, |
+ SaveFPRegsMode save_doubles = kDontSaveFPRegs, |
+ BranchDelaySlot bd = PROTECT) { |
+ CallRuntime(Runtime::FunctionForId(fid), num_arguments, save_doubles, bd); |
} |
// Convenience function: call an external reference. |
@@ -1372,14 +1380,8 @@ const Operand& rt = Operand(zero_reg), BranchDelaySlot bd = PROTECT |
int num_arguments, |
BranchDelaySlot bd = PROTECT); |
- // Tail call of a runtime routine (jump). |
- // Like JumpToExternalReference, but also takes care of passing the number |
- // of parameters. |
- void TailCallExternalReference(const ExternalReference& ext, |
- int num_arguments); |
- |
// Convenience function: tail call a runtime routine (jump). |
- void TailCallRuntime(Runtime::FunctionId fid, int num_arguments); |
+ void TailCallRuntime(Runtime::FunctionId fid); |
int CalculateStackPassedWords(int num_reg_arguments, |
int num_double_arguments); |