Index: src/arm64/macro-assembler-arm64.h |
diff --git a/src/arm64/macro-assembler-arm64.h b/src/arm64/macro-assembler-arm64.h |
index c11edd64daef4e52f838d2d73863c3291c1a21cf..56f82b53d3c47834d7226f735ef29d8284de4ed3 100644 |
--- a/src/arm64/macro-assembler-arm64.h |
+++ b/src/arm64/macro-assembler-arm64.h |
@@ -1090,18 +1090,25 @@ class MacroAssembler : public Assembler { |
int num_arguments, |
SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
- void CallRuntime(Runtime::FunctionId id, |
- int num_arguments, |
+ // Convenience function: Same as above, but takes the fid instead. |
+ void CallRuntime(Runtime::FunctionId fid, int num_arguments, |
SaveFPRegsMode save_doubles = kDontSaveFPRegs) { |
- CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles); |
+ CallRuntime(Runtime::FunctionForId(fid), num_arguments, save_doubles); |
} |
- void CallRuntimeSaveDoubles(Runtime::FunctionId id) { |
- const Runtime::Function* function = Runtime::FunctionForId(id); |
+ // Convenience function: Same as above, but takes the fid instead. |
+ void CallRuntime(Runtime::FunctionId fid, |
+ SaveFPRegsMode save_doubles = kDontSaveFPRegs) { |
+ const Runtime::Function* function = Runtime::FunctionForId(fid); |
+ CallRuntime(function, function->nargs, save_doubles); |
+ } |
+ |
+ void CallRuntimeSaveDoubles(Runtime::FunctionId fid) { |
+ const Runtime::Function* function = Runtime::FunctionForId(fid); |
CallRuntime(function, function->nargs, kSaveFPRegs); |
} |
- void TailCallRuntime(Runtime::FunctionId fid, int num_arguments); |
+ void TailCallRuntime(Runtime::FunctionId fid); |
int ActivationFrameAlignment(); |
@@ -1121,11 +1128,8 @@ class MacroAssembler : public Assembler { |
// Jump to a runtime routine. |
void JumpToExternalReference(const ExternalReference& builtin); |
- // 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: call an external reference. |
void CallExternalReference(const ExternalReference& ext, |
int num_arguments); |