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 6af65e2cf20595238bbf448cbf0eca939b787988..6ce69cb59787f3b0c0f5b6e6cc1a6ffba3d02644 100644 |
--- a/src/ic/arm/handler-compiler-arm.cc |
+++ b/src/ic/arm/handler-compiler-arm.cc |
@@ -223,10 +223,9 @@ static void PushInterceptorArguments(MacroAssembler* masm, Register receiver, |
static void CompileCallLoadPropertyWithInterceptor( |
MacroAssembler* masm, Register receiver, Register holder, Register name, |
- Handle<JSObject> holder_obj, IC::UtilityId id) { |
+ Handle<JSObject> holder_obj, Runtime::FunctionId id) { |
PushInterceptorArguments(masm, receiver, holder, name, holder_obj); |
- __ CallExternalReference(ExternalReference(IC_Utility(id), masm->isolate()), |
- NamedLoadHandlerCompiler::kInterceptorArgsLength); |
+ __ CallRuntime(id, NamedLoadHandlerCompiler::kInterceptorArgsLength); |
} |
@@ -315,9 +314,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. |
- ExternalReference ref = |
- ExternalReference(IC_Utility(IC::kStoreIC_Slow), masm->isolate()); |
- __ TailCallExternalReference(ref, 3, 1); |
+ __ TailCallRuntime(Runtime::kStoreIC_Slow, 3, 1); |
} |
@@ -328,9 +325,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. |
- ExternalReference ref = |
- ExternalReference(IC_Utility(IC::kKeyedStoreIC_Slow), masm->isolate()); |
- __ TailCallExternalReference(ref, 3, 1); |
+ __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow, 3, 1); |
} |
@@ -664,7 +659,7 @@ void NamedLoadHandlerCompiler::GenerateLoadInterceptorWithFollowup( |
// of this method.) |
CompileCallLoadPropertyWithInterceptor( |
masm(), receiver(), holder_reg, this->name(), holder(), |
- IC::kLoadPropertyWithInterceptorOnly); |
+ Runtime::kLoadPropertyWithInterceptorOnly); |
// Check if interceptor provided a value for property. If it's |
// the case, return immediately. |
@@ -696,10 +691,8 @@ void NamedLoadHandlerCompiler::GenerateLoadInterceptor(Register holder_reg) { |
PushInterceptorArguments(masm(), receiver(), holder_reg, this->name(), |
holder()); |
- ExternalReference ref = ExternalReference( |
- IC_Utility(IC::kLoadPropertyWithInterceptor), isolate()); |
- __ TailCallExternalReference( |
- ref, NamedLoadHandlerCompiler::kInterceptorArgsLength, 1); |
+ __ TailCallRuntime(Runtime::kLoadPropertyWithInterceptor, |
+ NamedLoadHandlerCompiler::kInterceptorArgsLength, 1); |
} |
@@ -724,9 +717,7 @@ Handle<Code> NamedStoreHandlerCompiler::CompileStoreCallback( |
__ Push(ip, value()); |
// Do tail-call to the runtime system. |
- ExternalReference store_callback_property = |
- ExternalReference(IC_Utility(IC::kStoreCallbackProperty), isolate()); |
- __ TailCallExternalReference(store_callback_property, 5, 1); |
+ __ TailCallRuntime(Runtime::kStoreCallbackProperty, 5, 1); |
// Return the generated code. |
return GetCode(kind(), Code::FAST, name); |
@@ -738,9 +729,7 @@ Handle<Code> NamedStoreHandlerCompiler::CompileStoreInterceptor( |
__ Push(receiver(), this->name(), value()); |
// Do tail-call to the runtime system. |
- ExternalReference store_ic_property = ExternalReference( |
- IC_Utility(IC::kStorePropertyWithInterceptor), isolate()); |
- __ TailCallExternalReference(store_ic_property, 3, 1); |
+ __ TailCallRuntime(Runtime::kStorePropertyWithInterceptor, 3, 1); |
// Return the generated code. |
return GetCode(kind(), Code::FAST, name); |