Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index c42e6517e8b0e30bdb540e432646c4e1178c7412..9b6a4a72a672798bf203017fb6517eef25b00041 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -2830,8 +2830,7 @@ void LCodeGen::DoInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr) { |
// root array to force relocation to be able to later patch with |
// the cached map. |
PredictableCodeSizeScope predictable(masm_, 5 * Assembler::kInstrSize); |
- Handle<JSGlobalPropertyCell> cell = |
- factory()->NewJSGlobalPropertyCell(factory()->the_hole_value()); |
+ Handle<Cell> cell = factory()->NewCell(factory()->the_hole_value()); |
__ mov(ip, Operand(Handle<Object>(cell))); |
__ ldr(ip, FieldMemOperand(ip, JSGlobalPropertyCell::kValueOffset)); |
__ cmp(map, Operand(ip)); |
@@ -2993,7 +2992,7 @@ void LCodeGen::DoReturn(LReturn* instr) { |
void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) { |
Register result = ToRegister(instr->result()); |
__ mov(ip, Operand(Handle<Object>(instr->hydrogen()->cell()))); |
- __ ldr(result, FieldMemOperand(ip, JSGlobalPropertyCell::kValueOffset)); |
+ __ ldr(result, FieldMemOperand(ip, Cell::kValueOffset)); |
if (instr->hydrogen()->RequiresHoleCheck()) { |
__ LoadRoot(ip, Heap::kTheHoleValueRootIndex); |
__ cmp(result, ip); |
@@ -3028,13 +3027,13 @@ void LCodeGen::DoStoreGlobalCell(LStoreGlobalCell* instr) { |
if (instr->hydrogen()->RequiresHoleCheck()) { |
// We use a temp to check the payload (CompareRoot might clobber ip). |
Register payload = ToRegister(instr->temp()); |
- __ ldr(payload, FieldMemOperand(cell, JSGlobalPropertyCell::kValueOffset)); |
+ __ ldr(payload, FieldMemOperand(cell, Cell::kValueOffset)); |
__ CompareRoot(payload, Heap::kTheHoleValueRootIndex); |
DeoptimizeIf(eq, instr->environment()); |
} |
// Store the value. |
- __ str(value, FieldMemOperand(cell, JSGlobalPropertyCell::kValueOffset)); |
+ __ str(value, FieldMemOperand(cell, Cell::kValueOffset)); |
// Cells are always rescanned, so no write barrier here. |
} |
@@ -5304,10 +5303,9 @@ void LCodeGen::DoCheckFunction(LCheckFunction* instr) { |
AllowDeferredHandleDereference smi_check; |
if (isolate()->heap()->InNewSpace(*target)) { |
Register reg = ToRegister(instr->value()); |
- Handle<JSGlobalPropertyCell> cell = |
- isolate()->factory()->NewJSGlobalPropertyCell(target); |
+ Handle<Cell> cell = isolate()->factory()->NewJSGlobalPropertyCell(target); |
__ mov(ip, Operand(Handle<Object>(cell))); |
- __ ldr(ip, FieldMemOperand(ip, JSGlobalPropertyCell::kValueOffset)); |
+ __ ldr(ip, FieldMemOperand(ip, Cell::kValueOffset)); |
__ cmp(reg, ip); |
} else { |
__ cmp(reg, Operand(target)); |