Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 46e2c694e835cd23fe07730bdb3ebde56892205b..d74b7f10f3d3e66ed70d148ccc3235d7490c66ae 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -2357,8 +2357,7 @@ void MacroAssembler::LoadHeapObject(Register result, |
Handle<HeapObject> object) { |
AllowDeferredHandleDereference using_raw_address; |
if (isolate()->heap()->InNewSpace(*object)) { |
- Handle<JSGlobalPropertyCell> cell = |
- isolate()->factory()->NewJSGlobalPropertyCell(object); |
+ Handle<Cell> cell = isolate()->factory()->NewCell(object); |
movq(result, cell, RelocInfo::GLOBAL_PROPERTY_CELL); |
movq(result, Operand(result, 0)); |
} else { |
@@ -2370,8 +2369,7 @@ void MacroAssembler::LoadHeapObject(Register result, |
void MacroAssembler::CmpHeapObject(Register reg, Handle<HeapObject> object) { |
AllowDeferredHandleDereference using_raw_address; |
if (isolate()->heap()->InNewSpace(*object)) { |
- Handle<JSGlobalPropertyCell> cell = |
- isolate()->factory()->NewJSGlobalPropertyCell(object); |
+ Handle<Cell> cell = isolate()->factory()->NewCell(object); |
movq(kScratchRegister, cell, RelocInfo::GLOBAL_PROPERTY_CELL); |
cmpq(reg, Operand(kScratchRegister, 0)); |
} else { |
@@ -2383,8 +2381,7 @@ void MacroAssembler::CmpHeapObject(Register reg, Handle<HeapObject> object) { |
void MacroAssembler::PushHeapObject(Handle<HeapObject> object) { |
AllowDeferredHandleDereference using_raw_address; |
if (isolate()->heap()->InNewSpace(*object)) { |
- Handle<JSGlobalPropertyCell> cell = |
- isolate()->factory()->NewJSGlobalPropertyCell(object); |
+ Handle<Cell> cell = isolate()->factory()->NewCell(object); |
movq(kScratchRegister, cell, RelocInfo::GLOBAL_PROPERTY_CELL); |
movq(kScratchRegister, Operand(kScratchRegister, 0)); |
push(kScratchRegister); |
@@ -2394,8 +2391,7 @@ void MacroAssembler::PushHeapObject(Handle<HeapObject> object) { |
} |
-void MacroAssembler::LoadGlobalCell(Register dst, |
- Handle<JSGlobalPropertyCell> cell) { |
+void MacroAssembler::LoadGlobalCell(Register dst, Handle<Cell> cell) { |
if (dst.is(rax)) { |
AllowDeferredHandleDereference embedding_raw_address; |
load_rax(cell.location(), RelocInfo::GLOBAL_PROPERTY_CELL); |