Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index cdedebb174db7dcebcd749eeb4f2b85c88eca1ab..9b9d7ea28ace280a588095a0fc9ed7faf2fe5ba2 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -1798,8 +1798,7 @@ Handle<Code> StoreIC::CompileHandler(LookupIterator* lookup, |
if (lookup->representation().IsHeapObject()) { |
// Only use a generic stub if no types need to be tracked. |
Handle<FieldType> field_type = lookup->GetFieldType(); |
- FieldType::Iterator it = field_type->Classes(); |
- use_stub = it.Done(); |
+ use_stub = !field_type->IsClass(); |
} |
if (use_stub) { |
StoreFieldStub stub(isolate(), lookup->GetFieldIndex(), |