Index: src/mips/macro-assembler-mips.h |
diff --git a/src/mips/macro-assembler-mips.h b/src/mips/macro-assembler-mips.h |
index 581f3020457a7bc96e01e9395d2debeb8ac00011..557f6f37b678f2da9727b17bdbc30bb7b231b9e5 100644 |
--- a/src/mips/macro-assembler-mips.h |
+++ b/src/mips/macro-assembler-mips.h |
@@ -1245,6 +1245,14 @@ const Operand& rt = Operand(zero_reg), BranchDelaySlot bd = PROTECT |
} |
// Convenience function: Same as above, but takes the fid instead. |
+ void CallRuntime(Runtime::FunctionId fid, |
+ SaveFPRegsMode save_doubles = kDontSaveFPRegs, |
+ BranchDelaySlot bd = PROTECT) { |
+ 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 id, int num_arguments, |
SaveFPRegsMode save_doubles = kDontSaveFPRegs, |
BranchDelaySlot bd = PROTECT) { |
@@ -1256,14 +1264,9 @@ 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); |