Index: src/ic/ia32/handler-compiler-ia32.cc |
diff --git a/src/ic/ia32/handler-compiler-ia32.cc b/src/ic/ia32/handler-compiler-ia32.cc |
index 8f5200aee63b8d4f119e97eabf75d33bd38efd19..ea76fe0d5f8bd2044e7a669af3f8a128c3374b95 100644 |
--- a/src/ic/ia32/handler-compiler-ia32.cc |
+++ b/src/ic/ia32/handler-compiler-ia32.cc |
@@ -294,10 +294,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); |
} |
@@ -321,8 +320,7 @@ void NamedStoreHandlerCompiler::GenerateSlow(MacroAssembler* masm) { |
StoreIC_PushArgs(masm); |
// Do tail-call to runtime routine. |
- ExternalReference ref(IC_Utility(IC::kStoreIC_Slow), masm->isolate()); |
- __ TailCallExternalReference(ref, 3, 1); |
+ __ TailCallRuntime(Runtime::kStoreIC_Slow, 3, 1); |
} |
@@ -331,8 +329,7 @@ void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { |
StoreIC_PushArgs(masm); |
// Do tail-call to runtime routine. |
- ExternalReference ref(IC_Utility(IC::kKeyedStoreIC_Slow), masm->isolate()); |
- __ TailCallExternalReference(ref, 3, 1); |
+ __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow, 3, 1); |
} |
@@ -669,7 +666,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. |
@@ -710,10 +707,8 @@ void NamedLoadHandlerCompiler::GenerateLoadInterceptor(Register holder_reg) { |
holder()); |
__ push(scratch2()); // restore old return address |
- ExternalReference ref = ExternalReference( |
- IC_Utility(IC::kLoadPropertyWithInterceptor), isolate()); |
- __ TailCallExternalReference( |
- ref, NamedLoadHandlerCompiler::kInterceptorArgsLength, 1); |
+ __ TailCallRuntime(Runtime::kLoadPropertyWithInterceptor, |
+ NamedLoadHandlerCompiler::kInterceptorArgsLength, 1); |
} |
@@ -738,9 +733,7 @@ Handle<Code> NamedStoreHandlerCompiler::CompileStoreCallback( |
__ push(scratch1()); // restore return address |
// 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); |
@@ -756,9 +749,7 @@ Handle<Code> NamedStoreHandlerCompiler::CompileStoreInterceptor( |
__ push(scratch1()); // restore return address |
// 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); |