Index: src/ic/arm64/handler-compiler-arm64.cc |
diff --git a/src/ic/arm64/handler-compiler-arm64.cc b/src/ic/arm64/handler-compiler-arm64.cc |
index 4ec1a574e139c233415aa8b845b771e821e42f9d..7b3fdec5dcd09ebb936ef367265d41a324a354cb 100644 |
--- a/src/ic/arm64/handler-compiler-arm64.cc |
+++ b/src/ic/arm64/handler-compiler-arm64.cc |
@@ -223,9 +223,8 @@ void PropertyHandlerCompiler::GenerateApiAccessorCall( |
void NamedStoreHandlerCompiler::GenerateStoreViaSetter( |
- MacroAssembler* masm, Handle<HeapType> type, Register receiver, |
- Register holder, int accessor_index, int expected_arguments, |
- Register scratch) { |
+ MacroAssembler* masm, Handle<Map> map, Register receiver, Register holder, |
+ int accessor_index, int expected_arguments, Register scratch) { |
// ----------- S t a t e ------------- |
// -- lr : return address |
// ----------------------------------- |
@@ -241,7 +240,7 @@ void NamedStoreHandlerCompiler::GenerateStoreViaSetter( |
DCHECK(!AreAliased(receiver, scratch)); |
DCHECK(!AreAliased(value(), scratch)); |
// Call the JavaScript setter with receiver and value on the stack. |
- if (IC::TypeToMap(*type, masm->isolate())->IsJSGlobalObjectMap()) { |
+ if (map->IsJSGlobalObjectMap()) { |
// Swap in the global receiver. |
__ Ldr(scratch, |
FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); |
@@ -269,9 +268,8 @@ void NamedStoreHandlerCompiler::GenerateStoreViaSetter( |
void NamedLoadHandlerCompiler::GenerateLoadViaGetter( |
- MacroAssembler* masm, Handle<HeapType> type, Register receiver, |
- Register holder, int accessor_index, int expected_arguments, |
- Register scratch) { |
+ MacroAssembler* masm, Handle<Map> map, Register receiver, Register holder, |
+ int accessor_index, int expected_arguments, Register scratch) { |
{ |
FrameScope scope(masm, StackFrame::INTERNAL); |
@@ -279,7 +277,7 @@ void NamedLoadHandlerCompiler::GenerateLoadViaGetter( |
DCHECK(!AreAliased(holder, scratch)); |
DCHECK(!AreAliased(receiver, scratch)); |
// Call the JavaScript getter with the receiver on the stack. |
- if (IC::TypeToMap(*type, masm->isolate())->IsJSGlobalObjectMap()) { |
+ if (map->IsJSGlobalObjectMap()) { |
// Swap in the global receiver. |
__ Ldr(scratch, |
FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); |
@@ -465,7 +463,7 @@ Register PropertyHandlerCompiler::CheckPrototypes( |
Register object_reg, Register holder_reg, Register scratch1, |
Register scratch2, Handle<Name> name, Label* miss, |
PrototypeCheckType check) { |
- Handle<Map> receiver_map(IC::TypeToMap(*type(), isolate())); |
+ Handle<Map> receiver_map = map(); |
// object_reg and holder_reg registers can alias. |
DCHECK(!AreAliased(object_reg, scratch1, scratch2)); |
@@ -476,8 +474,8 @@ Register PropertyHandlerCompiler::CheckPrototypes( |
int depth = 0; |
Handle<JSObject> current = Handle<JSObject>::null(); |
- if (type()->IsConstant()) { |
- current = Handle<JSObject>::cast(type()->AsConstant()->Value()); |
+ if (receiver_map->IsJSGlobalObjectMap()) { |
+ current = isolate()->global_object(); |
} |
Handle<JSObject> prototype = Handle<JSObject>::null(); |
Handle<Map> current_map = receiver_map; |