| Index: src/ia32/stub-cache-ia32.cc
|
| diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc
|
| index 9c8269259fb42f5dc20a9dd21c76d1ded64785ab..209bfa6d815d2461dc776f16c9f624b8245f6a79 100644
|
| --- a/src/ia32/stub-cache-ia32.cc
|
| +++ b/src/ia32/stub-cache-ia32.cc
|
| @@ -530,8 +530,7 @@ void StoreStubCompiler::GenerateStoreTransition(MacroAssembler* masm,
|
| } else if (representation.IsHeapObject()) {
|
| HeapType* field_type = descriptors->GetFieldType(descriptor);
|
| if (field_type->IsClass()) {
|
| - __ CheckMap(value_reg, field_type->AsClass()->Map(),
|
| - miss_label, DO_SMI_CHECK);
|
| + __ CheckMap(value_reg, field_type->AsClass(), miss_label, DO_SMI_CHECK);
|
| } else {
|
| ASSERT(HeapType::Any()->Is(field_type));
|
| __ JumpIfSmi(value_reg, miss_label);
|
| @@ -707,8 +706,7 @@ void StoreStubCompiler::GenerateStoreField(MacroAssembler* masm,
|
| } else if (representation.IsHeapObject()) {
|
| HeapType* field_type = lookup->GetFieldType();
|
| if (field_type->IsClass()) {
|
| - __ CheckMap(value_reg, field_type->AsClass()->Map(),
|
| - miss_label, DO_SMI_CHECK);
|
| + __ CheckMap(value_reg, field_type->AsClass(), miss_label, DO_SMI_CHECK);
|
| } else {
|
| ASSERT(HeapType::Any()->Is(field_type));
|
| __ JumpIfSmi(value_reg, miss_label);
|
| @@ -838,8 +836,7 @@ Register StubCompiler::CheckPrototypes(Handle<HeapType> type,
|
| int depth = 0;
|
|
|
| Handle<JSObject> current = Handle<JSObject>::null();
|
| - if (type->IsConstant()) current =
|
| - Handle<JSObject>::cast(type->AsConstant()->Value());
|
| + if (type->IsConstant()) current = Handle<JSObject>::cast(type->AsConstant());
|
| Handle<JSObject> prototype = Handle<JSObject>::null();
|
| Handle<Map> current_map = receiver_map;
|
| Handle<Map> holder_map(holder->map());
|
|
|