Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index c79ea2c7cf09e9b194a27b7c18e36f9164588884..9e9aa933cb766c2dd77be376c45cdbd3dd192d82 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -938,7 +938,7 @@ Handle<Code> LoadIC::CompileHandler(LookupResult* lookup, |
} |
CallOptimization call_optimization(function); |
if (call_optimization.is_simple_api_call() && |
- call_optimization.IsCompatibleReceiver(*object)) { |
+ call_optimization.IsCompatibleReceiver(object, holder)) { |
return compiler.CompileLoadCallback( |
type, holder, name, call_optimization); |
} |
@@ -1364,7 +1364,7 @@ Handle<Code> StoreIC::CompileHandler(LookupResult* lookup, |
Handle<JSFunction> function = Handle<JSFunction>::cast(setter); |
CallOptimization call_optimization(function); |
if (call_optimization.is_simple_api_call() && |
- call_optimization.IsCompatibleReceiver(*receiver)) { |
+ call_optimization.IsCompatibleReceiver(receiver, holder)) { |
return compiler.CompileStoreCallback( |
receiver, holder, name, call_optimization); |
} |