Chromium Code Reviews| Index: src/arm/stub-cache-arm.cc |
| diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
| index 3595b5233f1572c938d6b2e81659375c6f8cfeb0..b8abdd2b9bcab9cc786c7b33ecf3069f03812005 100644 |
| --- a/src/arm/stub-cache-arm.cc |
| +++ b/src/arm/stub-cache-arm.cc |
| @@ -427,12 +427,10 @@ static void GenerateCheckPropertyCell(MacroAssembler* masm, |
| Handle<Name> name, |
| Register scratch, |
| Label* miss) { |
| - Handle<JSGlobalPropertyCell> cell = |
| - GlobalObject::EnsurePropertyCell(global, name); |
| + Handle<Cell> cell = GlobalObject::EnsurePropertyCell(global, name); |
| ASSERT(cell->value()->IsTheHole()); |
| __ mov(scratch, Operand(cell)); |
| - __ ldr(scratch, |
| - FieldMemOperand(scratch, JSGlobalPropertyCell::kValueOffset)); |
| + __ ldr(scratch, FieldMemOperand(scratch, Cell::kValueOffset)); |
| __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); |
| __ cmp(scratch, ip); |
| __ b(ne, miss); |
| @@ -1586,12 +1584,12 @@ void CallStubCompiler::GenerateGlobalReceiverCheck(Handle<JSObject> object, |
| void CallStubCompiler::GenerateLoadFunctionFromCell( |
| - Handle<JSGlobalPropertyCell> cell, |
| + Handle<Cell> cell, |
| Handle<JSFunction> function, |
| Label* miss) { |
| // Get the value from the cell. |
| __ mov(r3, Operand(cell)); |
| - __ ldr(r1, FieldMemOperand(r3, JSGlobalPropertyCell::kValueOffset)); |
| + __ ldr(r1, FieldMemOperand(r3, Cell::kValueOffset)); |
| // Check that the cell contains the same function. |
| if (heap()->InNewSpace(*function)) { |
| @@ -1662,7 +1660,7 @@ Handle<Code> CallStubCompiler::CompileCallField(Handle<JSObject> object, |
| Handle<Code> CallStubCompiler::CompileArrayPushCall( |
| Handle<Object> object, |
| Handle<JSObject> holder, |
| - Handle<JSGlobalPropertyCell> cell, |
| + Handle<Cell> cell, |
| Handle<JSFunction> function, |
| Handle<String> name) { |
| // ----------- S t a t e ------------- |
| @@ -1915,7 +1913,7 @@ Handle<Code> CallStubCompiler::CompileArrayPushCall( |
| Handle<Code> CallStubCompiler::CompileArrayPopCall( |
| Handle<Object> object, |
| Handle<JSObject> holder, |
| - Handle<JSGlobalPropertyCell> cell, |
| + Handle<Cell> cell, |
| Handle<JSFunction> function, |
| Handle<String> name) { |
| // ----------- S t a t e ------------- |
| @@ -1997,7 +1995,7 @@ Handle<Code> CallStubCompiler::CompileArrayPopCall( |
| Handle<Code> CallStubCompiler::CompileStringCharCodeAtCall( |
| Handle<Object> object, |
| Handle<JSObject> holder, |
| - Handle<JSGlobalPropertyCell> cell, |
| + Handle<Cell> cell, |
| Handle<JSFunction> function, |
| Handle<String> name) { |
| // ----------- S t a t e ------------- |
| @@ -2079,7 +2077,7 @@ Handle<Code> CallStubCompiler::CompileStringCharCodeAtCall( |
| Handle<Code> CallStubCompiler::CompileStringCharAtCall( |
| Handle<Object> object, |
| Handle<JSObject> holder, |
| - Handle<JSGlobalPropertyCell> cell, |
| + Handle<Cell> cell, |
| Handle<JSFunction> function, |
| Handle<String> name) { |
| // ----------- S t a t e ------------- |
| @@ -2162,7 +2160,7 @@ Handle<Code> CallStubCompiler::CompileStringCharAtCall( |
| Handle<Code> CallStubCompiler::CompileStringFromCharCodeCall( |
| Handle<Object> object, |
| Handle<JSObject> holder, |
| - Handle<JSGlobalPropertyCell> cell, |
| + Handle<Cell> cell, |
| Handle<JSFunction> function, |
| Handle<String> name) { |
| // ----------- S t a t e ------------- |
| @@ -2234,7 +2232,7 @@ Handle<Code> CallStubCompiler::CompileStringFromCharCodeCall( |
| Handle<Code> CallStubCompiler::CompileMathFloorCall( |
| Handle<Object> object, |
| Handle<JSObject> holder, |
| - Handle<JSGlobalPropertyCell> cell, |
| + Handle<Cell> cell, |
| Handle<JSFunction> function, |
| Handle<String> name) { |
| // ----------- S t a t e ------------- |
| @@ -2342,7 +2340,7 @@ Handle<Code> CallStubCompiler::CompileMathFloorCall( |
| Handle<Code> CallStubCompiler::CompileMathAbsCall( |
| Handle<Object> object, |
| Handle<JSObject> holder, |
| - Handle<JSGlobalPropertyCell> cell, |
| + Handle<Cell> cell, |
| Handle<JSFunction> function, |
| Handle<String> name) { |
| // ----------- S t a t e ------------- |
| @@ -2441,7 +2439,7 @@ Handle<Code> CallStubCompiler::CompileFastApiCall( |
| const CallOptimization& optimization, |
| Handle<Object> object, |
| Handle<JSObject> holder, |
| - Handle<JSGlobalPropertyCell> cell, |
| + Handle<Cell> cell, |
| Handle<JSFunction> function, |
| Handle<String> name) { |
| Counters* counters = isolate()->counters(); |
| @@ -2613,7 +2611,7 @@ Handle<Code> CallStubCompiler::CompileCallConstant( |
| Handle<JSFunction> function) { |
| if (HasCustomCallGenerator(function)) { |
| Handle<Code> code = CompileCustomCall(object, holder, |
| - Handle<JSGlobalPropertyCell>::null(), |
| + Handle<Cell>::null(), |
| function, Handle<String>::cast(name)); |
| // A null handle means bail out to the regular compiler code below. |
| if (!code.is_null()) return code; |
| @@ -2860,13 +2858,13 @@ Handle<Code> StoreStubCompiler::CompileStoreGlobal( |
| __ mov(scratch1(), Operand(cell)); |
| __ LoadRoot(scratch2(), Heap::kTheHoleValueRootIndex); |
| __ ldr(scratch3(), |
|
Michael Starzinger
2013/06/12 13:23:25
nit: Should fit into one line now.
danno
2013/06/12 14:24:28
Done.
|
| - FieldMemOperand(scratch1(), JSGlobalPropertyCell::kValueOffset)); |
| + FieldMemOperand(scratch1(), Cell::kValueOffset)); |
| __ cmp(scratch3(), scratch2()); |
| __ b(eq, &miss); |
| // Store the value in the cell. |
| __ str(value(), |
|
Michael Starzinger
2013/06/12 13:23:25
nit: Should fit into one line now.
danno
2013/06/12 14:24:28
Done.
|
| - FieldMemOperand(scratch1(), JSGlobalPropertyCell::kValueOffset)); |
| + FieldMemOperand(scratch1(), Cell::kValueOffset)); |
| // Cells are always rescanned, so no write barrier here. |
| Counters* counters = isolate()->counters(); |
| @@ -3002,7 +3000,7 @@ Handle<Code> LoadStubCompiler::CompileLoadGlobal( |
| // Get the value from the cell. |
| __ mov(r3, Operand(cell)); |
| - __ ldr(r4, FieldMemOperand(r3, JSGlobalPropertyCell::kValueOffset)); |
| + __ ldr(r4, FieldMemOperand(r3, Cell::kValueOffset)); |
| // Check for deleted property if property can actually be deleted. |
| if (!is_dont_delete) { |