Chromium Code Reviews| Index: src/arm/code-stubs-arm.cc |
| diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
| index 3fbe0c5ea6d62942970d02438bda6f7fd87e56df..67d577fb1820a36b28e7e9c481d090af6f08814f 100644 |
| --- a/src/arm/code-stubs-arm.cc |
| +++ b/src/arm/code-stubs-arm.cc |
| @@ -3519,7 +3519,7 @@ void InstanceofStub::Generate(MacroAssembler* masm) { |
| // Get the map location in scratch and patch it. |
| __ GetRelocatedValueLocation(inline_site, scratch); |
| __ ldr(scratch, MemOperand(scratch)); |
| - __ str(map, FieldMemOperand(scratch, JSGlobalPropertyCell::kValueOffset)); |
| + __ str(map, FieldMemOperand(scratch, Cell::kValueOffset)); |
| } |
| // Register mapping: r3 is object map and r4 is function prototype. |
| @@ -4652,7 +4652,7 @@ static void GenerateRecordCallTargetNoArray(MacroAssembler* masm) { |
| masm->isolate()->heap()->the_hole_value()); |
| // Load the cache state into r3. |
| - __ ldr(r3, FieldMemOperand(r2, JSGlobalPropertyCell::kValueOffset)); |
| + __ ldr(r3, FieldMemOperand(r2, Cell::kValueOffset)); |
| // A monomorphic cache hit or an already megamorphic state: invoke the |
| // function without changing the state. |
| @@ -4667,10 +4667,10 @@ static void GenerateRecordCallTargetNoArray(MacroAssembler* masm) { |
| // MegamorphicSentinel is an immortal immovable object (undefined) so no |
| // write-barrier is needed. |
| __ LoadRoot(ip, Heap::kUndefinedValueRootIndex, ne); |
| - __ str(ip, FieldMemOperand(r2, JSGlobalPropertyCell::kValueOffset), ne); |
| + __ str(ip, FieldMemOperand(r2, Cell::kValueOffset), ne); |
| // An uninitialized cache is patched with the function. |
| - __ str(r1, FieldMemOperand(r2, JSGlobalPropertyCell::kValueOffset), eq); |
| + __ str(r1, FieldMemOperand(r2, Cell::kValueOffset), eq); |
| // No need for a write barrier here - cells are rescanned. |
| __ bind(&done); |
| @@ -4692,7 +4692,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) { |
| masm->isolate()->heap()->the_hole_value()); |
| // Load the cache state into r3. |
| - __ ldr(r3, FieldMemOperand(r2, JSGlobalPropertyCell::kValueOffset)); |
| + __ ldr(r3, FieldMemOperand(r2, Cell::kValueOffset)); |
| // A monomorphic cache hit or an already megamorphic state: invoke the |
| // function without changing the state. |
| @@ -4726,7 +4726,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) { |
| // write-barrier is needed. |
| __ bind(&megamorphic); |
| __ LoadRoot(ip, Heap::kUndefinedValueRootIndex); |
| - __ str(ip, FieldMemOperand(r2, JSGlobalPropertyCell::kValueOffset)); |
| + __ str(ip, FieldMemOperand(r2, Cell::kValueOffset)); |
| __ jmp(&done); |
| // An uninitialized cache is patched with the function or sentinel to |
| @@ -4744,11 +4744,11 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) { |
| TypeFeedbackCells::MonomorphicArraySentinel(masm->isolate(), |
| GetInitialFastElementsKind()); |
| __ mov(r3, Operand(initial_kind_sentinel)); |
| - __ str(r3, FieldMemOperand(r2, JSGlobalPropertyCell::kValueOffset)); |
| + __ str(r3, FieldMemOperand(r2, Cell::kValueOffset)); |
| __ b(&done); |
| __ bind(¬_array_function); |
| - __ str(r1, FieldMemOperand(r2, JSGlobalPropertyCell::kValueOffset)); |
| + __ str(r1, FieldMemOperand(r2, Cell::kValueOffset)); |
| // No need for a write barrier here - cells are rescanned. |
| __ bind(&done); |
| @@ -4824,7 +4824,7 @@ void CallFunctionStub::Generate(MacroAssembler* masm) { |
| ASSERT_EQ(*TypeFeedbackCells::MegamorphicSentinel(masm->isolate()), |
| masm->isolate()->heap()->undefined_value()); |
| __ LoadRoot(ip, Heap::kUndefinedValueRootIndex); |
| - __ str(ip, FieldMemOperand(r2, JSGlobalPropertyCell::kValueOffset)); |
| + __ str(ip, FieldMemOperand(r2, Cell::kValueOffset)); |
| } |
| // Check for function proxy. |
| __ cmp(r3, Operand(JS_FUNCTION_PROXY_TYPE)); |
| @@ -7347,14 +7347,14 @@ void ArrayConstructorStub::Generate(MacroAssembler* masm) { |
| __ CompareObjectType(r3, r3, r4, MAP_TYPE); |
| __ Assert(eq, "Unexpected initial map for Array function"); |
| - // We should either have undefined in ebx or a valid jsglobalpropertycell |
| + // We should either have undefined in ebx or a valid cell |
| Label okay_here; |
| - Handle<Map> global_property_cell_map( |
| - masm->isolate()->heap()->global_property_cell_map()); |
| + Handle<Map> cell_map( |
|
Michael Starzinger
2013/06/12 13:23:25
nit: Should fit into one line now. Also, better us
danno
2013/06/12 14:24:28
Done.
|
| + masm->isolate()->heap()->cell_map()); |
| __ cmp(r2, Operand(undefined_sentinel)); |
| __ b(eq, &okay_here); |
| __ ldr(r3, FieldMemOperand(r2, 0)); |
| - __ cmp(r3, Operand(global_property_cell_map)); |
| + __ cmp(r3, Operand(cell_map)); |
| __ Assert(eq, "Expected property cell in register ebx"); |
| __ bind(&okay_here); |
| } |