Chromium Code Reviews| Index: src/ppc/macro-assembler-ppc.cc |
| diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc |
| index b34072293aac8e8928d3aab93475953bfef73d3b..88ab7326743684b6d6b6ffb338596b9e752196aa 100644 |
| --- a/src/ppc/macro-assembler-ppc.cc |
| +++ b/src/ppc/macro-assembler-ppc.cc |
| @@ -2312,20 +2312,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. |
| - mov(r3, Operand(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:18
Ditto.
|
| + mov(r3, Operand(function->nargs)); |
| + } |
| + JumpToExternalReference(ExternalReference(fid, isolate())); |
| } |