| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X87 | 7 #if V8_TARGET_ARCH_X87 |
| 8 | 8 |
| 9 #include "src/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
| 10 #include "src/lithium-allocator-inl.h" | 10 #include "src/lithium-allocator-inl.h" |
| (...skipping 2053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2064 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) { | 2064 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) { |
| 2065 LLoadGlobalCell* result = new(zone()) LLoadGlobalCell; | 2065 LLoadGlobalCell* result = new(zone()) LLoadGlobalCell; |
| 2066 return instr->RequiresHoleCheck() | 2066 return instr->RequiresHoleCheck() |
| 2067 ? AssignEnvironment(DefineAsRegister(result)) | 2067 ? AssignEnvironment(DefineAsRegister(result)) |
| 2068 : DefineAsRegister(result); | 2068 : DefineAsRegister(result); |
| 2069 } | 2069 } |
| 2070 | 2070 |
| 2071 | 2071 |
| 2072 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { | 2072 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { |
| 2073 LOperand* context = UseFixed(instr->context(), esi); | 2073 LOperand* context = UseFixed(instr->context(), esi); |
| 2074 LOperand* global_object = UseFixed(instr->global_object(), edx); | 2074 LOperand* global_object = UseFixed(instr->global_object(), |
| 2075 LoadIC::ReceiverRegister()); |
| 2075 LLoadGlobalGeneric* result = | 2076 LLoadGlobalGeneric* result = |
| 2076 new(zone()) LLoadGlobalGeneric(context, global_object); | 2077 new(zone()) LLoadGlobalGeneric(context, global_object); |
| 2077 return MarkAsCall(DefineFixed(result, eax), instr); | 2078 return MarkAsCall(DefineFixed(result, eax), instr); |
| 2078 } | 2079 } |
| 2079 | 2080 |
| 2080 | 2081 |
| 2081 LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) { | 2082 LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) { |
| 2082 LStoreGlobalCell* result = | 2083 LStoreGlobalCell* result = |
| 2083 new(zone()) LStoreGlobalCell(UseRegister(instr->value())); | 2084 new(zone()) LStoreGlobalCell(UseRegister(instr->value())); |
| 2084 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; | 2085 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2119 LOperand* obj = (instr->access().IsExternalMemory() && | 2120 LOperand* obj = (instr->access().IsExternalMemory() && |
| 2120 instr->access().offset() == 0) | 2121 instr->access().offset() == 0) |
| 2121 ? UseRegisterOrConstantAtStart(instr->object()) | 2122 ? UseRegisterOrConstantAtStart(instr->object()) |
| 2122 : UseRegisterAtStart(instr->object()); | 2123 : UseRegisterAtStart(instr->object()); |
| 2123 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); | 2124 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); |
| 2124 } | 2125 } |
| 2125 | 2126 |
| 2126 | 2127 |
| 2127 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { | 2128 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { |
| 2128 LOperand* context = UseFixed(instr->context(), esi); | 2129 LOperand* context = UseFixed(instr->context(), esi); |
| 2129 LOperand* object = UseFixed(instr->object(), edx); | 2130 LOperand* object = UseFixed(instr->object(), LoadIC::ReceiverRegister()); |
| 2130 LLoadNamedGeneric* result = new(zone()) LLoadNamedGeneric(context, object); | 2131 LLoadNamedGeneric* result = new(zone()) LLoadNamedGeneric(context, object); |
| 2131 return MarkAsCall(DefineFixed(result, eax), instr); | 2132 return MarkAsCall(DefineFixed(result, eax), instr); |
| 2132 } | 2133 } |
| 2133 | 2134 |
| 2134 | 2135 |
| 2135 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( | 2136 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( |
| 2136 HLoadFunctionPrototype* instr) { | 2137 HLoadFunctionPrototype* instr) { |
| 2137 return AssignEnvironment(DefineAsRegister( | 2138 return AssignEnvironment(DefineAsRegister( |
| 2138 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()), | 2139 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()), |
| 2139 TempRegister()))); | 2140 TempRegister()))); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2177 // LCodeGen::DoLoadKeyedFixedArray | 2178 // LCodeGen::DoLoadKeyedFixedArray |
| 2178 instr->RequiresHoleCheck()) { | 2179 instr->RequiresHoleCheck()) { |
| 2179 result = AssignEnvironment(result); | 2180 result = AssignEnvironment(result); |
| 2180 } | 2181 } |
| 2181 return result; | 2182 return result; |
| 2182 } | 2183 } |
| 2183 | 2184 |
| 2184 | 2185 |
| 2185 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { | 2186 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { |
| 2186 LOperand* context = UseFixed(instr->context(), esi); | 2187 LOperand* context = UseFixed(instr->context(), esi); |
| 2187 LOperand* object = UseFixed(instr->object(), edx); | 2188 LOperand* object = UseFixed(instr->object(), KeyedLoadIC::ReceiverRegister()); |
| 2188 LOperand* key = UseFixed(instr->key(), ecx); | 2189 LOperand* key = UseFixed(instr->key(), KeyedLoadIC::NameRegister()); |
| 2189 | 2190 |
| 2190 LLoadKeyedGeneric* result = | 2191 LLoadKeyedGeneric* result = |
| 2191 new(zone()) LLoadKeyedGeneric(context, object, key); | 2192 new(zone()) LLoadKeyedGeneric(context, object, key); |
| 2192 return MarkAsCall(DefineFixed(result, eax), instr); | 2193 return MarkAsCall(DefineFixed(result, eax), instr); |
| 2193 } | 2194 } |
| 2194 | 2195 |
| 2195 | 2196 |
| 2196 LOperand* LChunkBuilder::GetStoreKeyedValueOperand(HStoreKeyed* instr) { | 2197 LOperand* LChunkBuilder::GetStoreKeyedValueOperand(HStoreKeyed* instr) { |
| 2197 ElementsKind elements_kind = instr->elements_kind(); | 2198 ElementsKind elements_kind = instr->elements_kind(); |
| 2198 | 2199 |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2651 LOperand* function = UseRegisterAtStart(instr->function()); | 2652 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2652 LAllocateBlockContext* result = | 2653 LAllocateBlockContext* result = |
| 2653 new(zone()) LAllocateBlockContext(context, function); | 2654 new(zone()) LAllocateBlockContext(context, function); |
| 2654 return MarkAsCall(DefineFixed(result, esi), instr); | 2655 return MarkAsCall(DefineFixed(result, esi), instr); |
| 2655 } | 2656 } |
| 2656 | 2657 |
| 2657 | 2658 |
| 2658 } } // namespace v8::internal | 2659 } } // namespace v8::internal |
| 2659 | 2660 |
| 2660 #endif // V8_TARGET_ARCH_X87 | 2661 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |