| Index: src/ic/ppc/handler-compiler-ppc.cc
|
| diff --git a/src/ic/ppc/handler-compiler-ppc.cc b/src/ic/ppc/handler-compiler-ppc.cc
|
| index 79e488243200e9958fc988ed5cbdc02be6bee4c8..fc82a09ef025224b40add2354b8f8c2cfa97a660 100644
|
| --- a/src/ic/ppc/handler-compiler-ppc.cc
|
| +++ b/src/ic/ppc/handler-compiler-ppc.cc
|
| @@ -401,20 +401,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()) {
|
| __ LoadP(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()) {
|
| - __ bne(miss_label);
|
| - break;
|
| - }
|
| - __ beq(&do_store);
|
| - }
|
| - __ bind(&do_store);
|
| + __ CmpWeakValue(map_reg, Map::WeakCellForMap(field_type->AsClass()),
|
| + scratch);
|
| + __ bne(miss_label);
|
| }
|
| }
|
|
|
|
|