Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 2ca585d63537d803afa097ac34f52a0580f26919..1a715a16d9a19fa28d1ebb3b30e81cb6a830c7f9 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -2460,9 +2460,8 @@ void LCodeGen::DoInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr) { |
Register map = ToRegister(instr->temp()); |
__ movq(map, FieldOperand(object, HeapObject::kMapOffset)); |
__ bind(deferred->map_check()); // Label for calculating code patching. |
- Handle<JSGlobalPropertyCell> cache_cell = |
- factory()->NewJSGlobalPropertyCell(factory()->the_hole_value()); |
- __ movq(kScratchRegister, cache_cell, RelocInfo::GLOBAL_PROPERTY_CELL); |
+ Handle<Cell> cache_cell = factory()->NewCell(factory()->the_hole_value()); |
+ __ movq(kScratchRegister, cache_cell, RelocInfo::CELL); |
__ cmpq(map, Operand(kScratchRegister, 0)); |
__ j(not_equal, &cache_miss, Label::kNear); |
// Patched to load either true or false. |
@@ -2631,7 +2630,7 @@ void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
void LCodeGen::DoStoreGlobalCell(LStoreGlobalCell* instr) { |
Register value = ToRegister(instr->value()); |
- Handle<JSGlobalPropertyCell> cell_handle = instr->hydrogen()->cell(); |
+ Handle<Cell> cell_handle = instr->hydrogen()->cell(); |
// If the cell we are storing to contains the hole it could have |
// been deleted from the property dictionary. In that case, we need |
@@ -2641,14 +2640,14 @@ void LCodeGen::DoStoreGlobalCell(LStoreGlobalCell* instr) { |
// We have a temp because CompareRoot might clobber kScratchRegister. |
Register cell = ToRegister(instr->temp()); |
ASSERT(!value.is(cell)); |
- __ movq(cell, cell_handle, RelocInfo::GLOBAL_PROPERTY_CELL); |
+ __ movq(cell, cell_handle, RelocInfo::CELL); |
__ CompareRoot(Operand(cell, 0), Heap::kTheHoleValueRootIndex); |
DeoptimizeIf(equal, instr->environment()); |
// Store the value. |
__ movq(Operand(cell, 0), value); |
} else { |
// Store the value. |
- __ movq(kScratchRegister, cell_handle, RelocInfo::GLOBAL_PROPERTY_CELL); |
+ __ movq(kScratchRegister, cell_handle, RelocInfo::CELL); |
__ movq(Operand(kScratchRegister, 0), value); |
} |
// Cells are always rescanned, so no write barrier here. |