Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index 6875dcf5ab14de0c3ee2ce2a04f229cebc1e57b7..ebbfce683c3dfecdbad1317d2f69bcd7daafdfa8 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -432,7 +432,7 @@ void StoreStubCompiler::GenerateStoreTransition(MacroAssembler* masm, |
} else if (representation.IsHeapObject()) { |
HeapType* field_type = descriptors->GetFieldType(descriptor); |
if (field_type->IsClass()) { |
- __ CheckMap(value_reg, scratch1, field_type->AsClass()->Map(), |
+ __ CheckMap(value_reg, scratch1, field_type->AsClass(), |
miss_label, DO_SMI_CHECK); |
} else { |
ASSERT(HeapType::Any()->Is(field_type)); |
@@ -601,7 +601,7 @@ void StoreStubCompiler::GenerateStoreField(MacroAssembler* masm, |
} else if (representation.IsHeapObject()) { |
HeapType* field_type = lookup->GetFieldType(); |
if (field_type->IsClass()) { |
- __ CheckMap(value_reg, scratch1, field_type->AsClass()->Map(), |
+ __ CheckMap(value_reg, scratch1, field_type->AsClass(), |
miss_label, DO_SMI_CHECK); |
} else { |
ASSERT(HeapType::Any()->Is(field_type)); |
@@ -850,9 +850,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()); |