Index: src/ic/call-optimization.cc |
diff --git a/src/ic/call-optimization.cc b/src/ic/call-optimization.cc |
index 45717b50a7bf6af607ac25a67023c167514166e3..a2945e7292c284b5e3aa219061289a0ba32b48d1 100644 |
--- a/src/ic/call-optimization.cc |
+++ b/src/ic/call-optimization.cc |
@@ -27,9 +27,8 @@ Handle<JSObject> CallOptimization::LookupHolderOfExpectedType( |
return Handle<JSObject>::null(); |
} |
for (int depth = 1; true; depth++) { |
- if (!object_map->prototype()->IsJSObject()) break; |
+ if (!object_map->has_hidden_prototype()) break; |
Handle<JSObject> prototype(JSObject::cast(object_map->prototype())); |
- if (!prototype->map()->is_hidden_prototype()) break; |
object_map = handle(prototype->map()); |
if (expected_receiver_type_->IsTemplateFor(*object_map)) { |
*holder_lookup = kHolderFound; |