Chromium Code Reviews| Index: src/mips64/macro-assembler-mips64.cc |
| diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
| index 785f3017bfd5a49dd143e5a2a2aaf09413ab4309..43f4bd25ac7cb0e36761f2d4d847dc73c422ffa3 100644 |
| --- a/src/mips64/macro-assembler-mips64.cc |
| +++ b/src/mips64/macro-assembler-mips64.cc |
| @@ -5054,20 +5054,13 @@ void MacroAssembler::CallExternalReference(const ExternalReference& ext, |
| } |
| -void MacroAssembler::TailCallExternalReference(const ExternalReference& ext, |
| - int num_arguments) { |
| - // TODO(1236192): Most runtime routines don't need the number of |
| - // arguments passed in because it is constant. At some point we |
| - // should remove this need and make the runtime routine entry code |
| - // smarter. |
| - PrepareCEntryArgs(num_arguments); |
| - JumpToExternalReference(ext); |
| -} |
| - |
| - |
| -void MacroAssembler::TailCallRuntime(Runtime::FunctionId fid, |
| - int num_arguments) { |
| - TailCallExternalReference(ExternalReference(fid, isolate()), num_arguments); |
| +void MacroAssembler::TailCallRuntime(Runtime::FunctionId fid) { |
| + const Runtime::Function* function = Runtime::FunctionForId(fid); |
| + DCHECK_EQ(1, function->result_size); |
| + if (function->nargs >= 0) { |
|
Igor Sheludko
2015/12/30 14:48:17
Ditto.
|
| + PrepareCEntryArgs(function->nargs); |
| + } |
| + JumpToExternalReference(ExternalReference(fid, isolate())); |
| } |