Index: src/ic/arm/handler-compiler-arm.cc |
diff --git a/src/ic/arm/handler-compiler-arm.cc b/src/ic/arm/handler-compiler-arm.cc |
index 08710d0de1d36eb5a9983d9e901416cac56a9fa5..fa6152524418d1f9ba1a4bf789281bb0ea267b89 100644 |
--- a/src/ic/arm/handler-compiler-arm.cc |
+++ b/src/ic/arm/handler-compiler-arm.cc |
@@ -402,20 +402,11 @@ void NamedStoreHandlerCompiler::GenerateFieldTypeChecks(FieldType* field_type, |
DCHECK(!value_reg.is(map_reg)); |
DCHECK(!value_reg.is(scratch)); |
__ JumpIfSmi(value_reg, miss_label); |
- FieldType::Iterator it = field_type->Classes(); |
- if (!it.Done()) { |
+ if (field_type->IsClass()) { |
__ ldr(map_reg, FieldMemOperand(value_reg, HeapObject::kMapOffset)); |
- Label do_store; |
- while (true) { |
- __ CmpWeakValue(map_reg, Map::WeakCellForMap(it.Current()), scratch); |
- it.Advance(); |
- if (it.Done()) { |
- __ b(ne, miss_label); |
- break; |
- } |
- __ b(eq, &do_store); |
- } |
- __ bind(&do_store); |
+ __ CmpWeakValue(map_reg, Map::WeakCellForMap(field_type->AsClass()), |
+ scratch); |
+ __ b(ne, miss_label); |
} |
} |