| Index: src/ic/x87/handler-compiler-x87.cc
|
| diff --git a/src/ic/x87/handler-compiler-x87.cc b/src/ic/x87/handler-compiler-x87.cc
|
| index 1316c97074c0a7c87f08c92bb6748ddcb5420cb3..2f9251172c5eccf51e3303efcc82194a3b560498 100644
|
| --- a/src/ic/x87/handler-compiler-x87.cc
|
| +++ b/src/ic/x87/handler-compiler-x87.cc
|
| @@ -407,20 +407,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()) {
|
| - Label do_store;
|
| + if (field_type->IsClass()) {
|
| __ mov(map_reg, FieldOperand(value_reg, HeapObject::kMapOffset));
|
| - while (true) {
|
| - __ CmpWeakValue(map_reg, Map::WeakCellForMap(it.Current()), scratch);
|
| - it.Advance();
|
| - if (it.Done()) {
|
| - __ j(not_equal, miss_label);
|
| - break;
|
| - }
|
| - __ j(equal, &do_store, Label::kNear);
|
| - }
|
| - __ bind(&do_store);
|
| + __ CmpWeakValue(map_reg, Map::WeakCellForMap(field_type->AsClass()),
|
| + scratch);
|
| + __ j(not_equal, miss_label);
|
| }
|
| }
|
|
|
|
|