Chromium Code Reviews| Index: src/ic/x87/handler-compiler-x87.cc |
| diff --git a/src/ic/x87/handler-compiler-x87.cc b/src/ic/x87/handler-compiler-x87.cc |
| index d007ac5ee834069b0f666b42871ed9712ed5bbbc..cc43ed298d159c9a4916fab0c503100d23a6742f 100644 |
| --- a/src/ic/x87/handler-compiler-x87.cc |
| +++ b/src/ic/x87/handler-compiler-x87.cc |
| @@ -297,8 +297,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
Ditto.
|
| + Runtime::FunctionForId(id)->nargs); |
| PushInterceptorArguments(masm, receiver, holder, name, holder_obj); |
| - __ CallRuntime(id, NamedLoadHandlerCompiler::kInterceptorArgsLength); |
| + __ CallRuntime(id); |
| } |
| @@ -323,7 +325,7 @@ void NamedStoreHandlerCompiler::GenerateSlow(MacroAssembler* masm) { |
| StoreIC_PushArgs(masm); |
| // Do tail-call to runtime routine. |
| - __ TailCallRuntime(Runtime::kStoreIC_Slow, 5); |
| + __ TailCallRuntime(Runtime::kStoreIC_Slow); |
| } |
| @@ -332,7 +334,7 @@ void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { |
| StoreIC_PushArgs(masm); |
| // Do tail-call to runtime routine. |
| - __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow, 5); |
| + __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); |
| } |
| @@ -724,8 +726,7 @@ void NamedLoadHandlerCompiler::GenerateLoadInterceptor(Register holder_reg) { |
| holder()); |
| __ push(scratch2()); // restore old return address |
| - __ TailCallRuntime(Runtime::kLoadPropertyWithInterceptor, |
| - NamedLoadHandlerCompiler::kInterceptorArgsLength); |
| + __ TailCallRuntime(Runtime::kLoadPropertyWithInterceptor); |
| } |
| @@ -750,7 +751,7 @@ Handle<Code> NamedStoreHandlerCompiler::CompileStoreCallback( |
| __ push(scratch1()); // restore return address |
| // Do tail-call to the runtime system. |
| - __ TailCallRuntime(Runtime::kStoreCallbackProperty, 5); |
| + __ TailCallRuntime(Runtime::kStoreCallbackProperty); |
| // Return the generated code. |
| return GetCode(kind(), Code::FAST, name); |
| @@ -766,7 +767,7 @@ Handle<Code> NamedStoreHandlerCompiler::CompileStoreInterceptor( |
| __ push(scratch1()); // restore return address |
| // Do tail-call to the runtime system. |
| - __ TailCallRuntime(Runtime::kStorePropertyWithInterceptor, 3); |
| + __ TailCallRuntime(Runtime::kStorePropertyWithInterceptor); |
| // Return the generated code. |
| return GetCode(kind(), Code::FAST, name); |