Index: src/ic/ppc/handler-compiler-ppc.cc |
diff --git a/src/ic/ppc/handler-compiler-ppc.cc b/src/ic/ppc/handler-compiler-ppc.cc |
index 50f3854946a3de6b079910fc981d0b21e79d519e..8b48755bbff35ba854e205da7ab4d282d03c9544 100644 |
--- a/src/ic/ppc/handler-compiler-ppc.cc |
+++ b/src/ic/ppc/handler-compiler-ppc.cc |
@@ -220,8 +220,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); |
} |
@@ -324,7 +326,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); |
} |
@@ -333,7 +335,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); |
} |
@@ -704,8 +706,7 @@ void NamedLoadHandlerCompiler::GenerateLoadInterceptor(Register holder_reg) { |
PushInterceptorArguments(masm(), receiver(), holder_reg, this->name(), |
holder()); |
- __ TailCallRuntime(Runtime::kLoadPropertyWithInterceptor, |
- NamedLoadHandlerCompiler::kInterceptorArgsLength); |
+ __ TailCallRuntime(Runtime::kLoadPropertyWithInterceptor); |
} |
@@ -729,7 +730,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); |
@@ -741,7 +742,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); |