Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index d638dcae5cd9eade61e480f142886102b77572b8..38fe3314b0630eaf0d8e244c2e190108b6ac65b4 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -1085,12 +1085,8 @@ void LoadIC::UpdateCaches(LookupIterator* lookup) { |
} else { |
if (kind() == Code::LOAD_GLOBAL_IC && |
lookup->state() == LookupIterator::DATA && |
- lookup->GetHolder<Object>()->IsJSGlobalObject()) { |
-#if DEBUG |
- Handle<Object> holder = lookup->GetHolder<Object>(); |
- Handle<Object> receiver = lookup->GetReceiver(); |
- DCHECK_EQ(*receiver, *holder); |
-#endif |
+ lookup->GetReceiver().is_identical_to(lookup->GetHolder<Object>())) { |
+ DCHECK(lookup->GetReceiver()->IsJSGlobalObject()); |
// Now update the cell in the feedback vector. |
LoadGlobalICNexus* nexus = casted_nexus<LoadGlobalICNexus>(); |
nexus->ConfigurePropertyCellMode(lookup->GetPropertyCell()); |