Index: src/ia32/stub-cache-ia32.cc |
diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc |
index 05a8b2f25038048048f40cf5442a8d90bcb69565..1e47af31e3b2467010c42f7f46e6150b21b54f3b 100644 |
--- a/src/ia32/stub-cache-ia32.cc |
+++ b/src/ia32/stub-cache-ia32.cc |
@@ -405,11 +405,11 @@ static void CompileCallLoadPropertyWithInterceptor( |
Register receiver, |
Register holder, |
Register name, |
- Handle<JSObject> holder_obj) { |
+ Handle<JSObject> holder_obj, |
+ IC::UtilityId id) { |
PushInterceptorArguments(masm, receiver, holder, name, holder_obj); |
__ CallExternalReference( |
- ExternalReference(IC_Utility(IC::kLoadPropertyWithInterceptorOnly), |
- masm->isolate()), |
+ ExternalReference(IC_Utility(id), masm->isolate()), |
StubCache::kInterceptorArgsLength); |
} |
@@ -797,12 +797,9 @@ class CallInterceptorCompiler BASE_EMBEDDED { |
// Save the name_ register across the call. |
__ push(name_); |
- PushInterceptorArguments(masm, receiver, holder, name_, interceptor_holder); |
- |
- __ CallExternalReference( |
- ExternalReference(IC_Utility(IC::kLoadPropertyWithInterceptorForCall), |
- masm->isolate()), |
- StubCache::kInterceptorArgsLength); |
+ CompileCallLoadPropertyWithInterceptor( |
+ masm, receiver, holder, name_, interceptor_holder, |
+ IC::kLoadPropertyWithInterceptorForCall); |
// Restore the name_ register. |
__ pop(name_); |
@@ -820,11 +817,9 @@ class CallInterceptorCompiler BASE_EMBEDDED { |
__ push(holder); // Save the holder. |
__ push(name_); // Save the name. |
- CompileCallLoadPropertyWithInterceptor(masm, |
- receiver, |
- holder, |
- name_, |
- holder_obj); |
+ CompileCallLoadPropertyWithInterceptor( |
+ masm, receiver, holder, name_, holder_obj, |
+ IC::kLoadPropertyWithInterceptorOnly); |
__ pop(name_); // Restore the name. |
__ pop(receiver); // Restore the holder. |
@@ -1553,11 +1548,9 @@ void LoadStubCompiler::GenerateLoadInterceptor( |
// Invoke an interceptor. Note: map checks from receiver to |
// interceptor's holder has been compiled before (see a caller |
// of this method.) |
- CompileCallLoadPropertyWithInterceptor(masm(), |
- receiver(), |
- holder_reg, |
- this->name(), |
- interceptor_holder); |
+ CompileCallLoadPropertyWithInterceptor( |
+ masm(), receiver(), holder_reg, this->name(), interceptor_holder, |
+ IC::kLoadPropertyWithInterceptorOnly); |
// Check if interceptor provided a value for property. If it's |
// the case, return immediately. |