Chromium Code Reviews| Index: src/ic/arm/handler-compiler-arm.cc |
| diff --git a/src/ic/arm/handler-compiler-arm.cc b/src/ic/arm/handler-compiler-arm.cc |
| index 99ef1c9310924889e56232c1336828c2014ee3dc..e293965e6f31a612090f5ead66191ab802a9e06d 100644 |
| --- a/src/ic/arm/handler-compiler-arm.cc |
| +++ b/src/ic/arm/handler-compiler-arm.cc |
| @@ -222,8 +222,10 @@ static void PushInterceptorArguments(MacroAssembler* masm, Register receiver, |
| static void CompileCallLoadPropertyWithInterceptor( |
| MacroAssembler* masm, Register receiver, Register holder, Register name, |
| Handle<JSObject> holder_obj, Runtime::FunctionId id) { |
| + DCHECK(NamedLoadHandlerCompiler::kInterceptorArgsLength == |
|
Igor Sheludko
2015/12/30 14:48:17
DCHECK_EQ
|
| + Runtime::FunctionForId(id)->nargs); |
| PushInterceptorArguments(masm, receiver, holder, name, holder_obj); |
| - __ CallRuntime(id, NamedLoadHandlerCompiler::kInterceptorArgsLength); |
| + __ CallRuntime(id); |
| } |
| @@ -325,7 +327,7 @@ void NamedStoreHandlerCompiler::GenerateSlow(MacroAssembler* masm) { |
| // The slow case calls into the runtime to complete the store without causing |
| // an IC miss that would otherwise cause a transition to the generic stub. |
| - __ TailCallRuntime(Runtime::kStoreIC_Slow, 5); |
| + __ TailCallRuntime(Runtime::kStoreIC_Slow); |
| } |
| @@ -334,7 +336,7 @@ void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { |
| // The slow case calls into the runtime to complete the store without causing |
| // an IC miss that would otherwise cause a transition to the generic stub. |
| - __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow, 5); |
| + __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); |
| } |
| @@ -707,8 +709,7 @@ void NamedLoadHandlerCompiler::GenerateLoadInterceptor(Register holder_reg) { |
| PushInterceptorArguments(masm(), receiver(), holder_reg, this->name(), |
| holder()); |
| - __ TailCallRuntime(Runtime::kLoadPropertyWithInterceptor, |
| - NamedLoadHandlerCompiler::kInterceptorArgsLength); |
| + __ TailCallRuntime(Runtime::kLoadPropertyWithInterceptor); |
| } |
| @@ -733,7 +734,7 @@ Handle<Code> NamedStoreHandlerCompiler::CompileStoreCallback( |
| __ Push(ip, value()); |
| // Do tail-call to the runtime system. |
| - __ TailCallRuntime(Runtime::kStoreCallbackProperty, 5); |
| + __ TailCallRuntime(Runtime::kStoreCallbackProperty); |
| // Return the generated code. |
| return GetCode(kind(), Code::FAST, name); |
| @@ -745,7 +746,7 @@ Handle<Code> NamedStoreHandlerCompiler::CompileStoreInterceptor( |
| __ Push(receiver(), this->name(), value()); |
| // Do tail-call to the runtime system. |
| - __ TailCallRuntime(Runtime::kStorePropertyWithInterceptor, 3); |
| + __ TailCallRuntime(Runtime::kStorePropertyWithInterceptor); |
| // Return the generated code. |
| return GetCode(kind(), Code::FAST, name); |