Index: src/arm64/stub-cache-arm64.cc |
diff --git a/src/arm64/stub-cache-arm64.cc b/src/arm64/stub-cache-arm64.cc |
index bf128409816b211b4385890089030c69e6dae2bc..e5383f166dbe21ff085ce286e3c69c8461851974 100644 |
--- a/src/arm64/stub-cache-arm64.cc |
+++ b/src/arm64/stub-cache-arm64.cc |
@@ -394,7 +394,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)); |
@@ -550,7 +550,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)); |
@@ -802,7 +802,7 @@ Register StubCompiler::CheckPrototypes(Handle<HeapType> type, |
Handle<JSObject> current = Handle<JSObject>::null(); |
if (type->IsConstant()) { |
- current = Handle<JSObject>::cast(type->AsConstant()->Value()); |
+ current = Handle<JSObject>::cast(type->AsConstant()); |
} |
Handle<JSObject> prototype = Handle<JSObject>::null(); |
Handle<Map> current_map = receiver_map; |