| Index: src/x64/stub-cache-x64.cc
|
| diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc
|
| index 0981114ec404c100760795ba8ae82c403f33bba3..88e7f38c487f5ee1bd99d108348a7cf44e724f0f 100644
|
| --- a/src/x64/stub-cache-x64.cc
|
| +++ b/src/x64/stub-cache-x64.cc
|
| @@ -496,8 +496,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);
|
| @@ -647,8 +646,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);
|
| @@ -755,9 +753,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());
|
|
|