Index: src/ic/x64/handler-compiler-x64.cc |
diff --git a/src/ic/x64/handler-compiler-x64.cc b/src/ic/x64/handler-compiler-x64.cc |
index da27d4cea7cd0ff9bc43c57fa146e9bf701d6c20..d451f2e032f04ebac3997c76d36210ca751b1730 100644 |
--- a/src/ic/x64/handler-compiler-x64.cc |
+++ b/src/ic/x64/handler-compiler-x64.cc |
@@ -215,9 +215,8 @@ void PropertyHandlerCompiler::GenerateCheckPropertyCell( |
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 ------------- |
// -- rsp[0] : return address |
// ----------------------------------- |
@@ -232,7 +231,7 @@ void NamedStoreHandlerCompiler::GenerateStoreViaSetter( |
DCHECK(!receiver.is(scratch)); |
DCHECK(!value().is(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. |
__ movp(scratch, |
FieldOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); |
@@ -262,9 +261,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) { |
// ----------- S t a t e ------------- |
// -- rax : receiver |
// -- rcx : name |
@@ -277,7 +275,7 @@ void NamedLoadHandlerCompiler::GenerateLoadViaGetter( |
DCHECK(!holder.is(scratch)); |
DCHECK(!receiver.is(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. |
__ movp(scratch, |
FieldOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); |
@@ -416,7 +414,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(); |
// Make sure there's no overlap between holder and object registers. |
DCHECK(!scratch1.is(object_reg) && !scratch1.is(holder_reg)); |
@@ -430,8 +428,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; |