| 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 2254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2265 instr->key()->representation(), elements_kind); | 2265 instr->key()->representation(), elements_kind); |
| 2266 LOperand* key = clobbers_key | 2266 LOperand* key = clobbers_key |
| 2267 ? UseTempRegister(instr->key()) | 2267 ? UseTempRegister(instr->key()) |
| 2268 : UseRegisterOrConstantAtStart(instr->key()); | 2268 : UseRegisterOrConstantAtStart(instr->key()); |
| 2269 return new(zone()) LStoreKeyed(backing_store, key, val); | 2269 return new(zone()) LStoreKeyed(backing_store, key, val); |
| 2270 } | 2270 } |
| 2271 | 2271 |
| 2272 | 2272 |
| 2273 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) { | 2273 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) { |
| 2274 LOperand* context = UseFixed(instr->context(), esi); | 2274 LOperand* context = UseFixed(instr->context(), esi); |
| 2275 LOperand* object = UseFixed(instr->object(), edx); | 2275 LOperand* object = UseFixed(instr->object(), |
| 2276 LOperand* key = UseFixed(instr->key(), ecx); | 2276 KeyedStoreIC::ReceiverRegister()); |
| 2277 LOperand* value = UseFixed(instr->value(), eax); | 2277 LOperand* key = UseFixed(instr->key(), KeyedStoreIC::NameRegister()); |
| 2278 LOperand* value = UseFixed(instr->value(), KeyedStoreIC::ValueRegister()); |
| 2278 | 2279 |
| 2279 ASSERT(instr->object()->representation().IsTagged()); | 2280 ASSERT(instr->object()->representation().IsTagged()); |
| 2280 ASSERT(instr->key()->representation().IsTagged()); | 2281 ASSERT(instr->key()->representation().IsTagged()); |
| 2281 ASSERT(instr->value()->representation().IsTagged()); | 2282 ASSERT(instr->value()->representation().IsTagged()); |
| 2282 | 2283 |
| 2283 LStoreKeyedGeneric* result = | 2284 LStoreKeyedGeneric* result = |
| 2284 new(zone()) LStoreKeyedGeneric(context, object, key, value); | 2285 new(zone()) LStoreKeyedGeneric(context, object, key, value); |
| 2285 return MarkAsCall(result, instr); | 2286 return MarkAsCall(result, instr); |
| 2286 } | 2287 } |
| 2287 | 2288 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2369 | 2370 |
| 2370 // We need a temporary register for write barrier of the map field. | 2371 // We need a temporary register for write barrier of the map field. |
| 2371 LOperand* temp_map = needs_write_barrier_for_map ? TempRegister() : NULL; | 2372 LOperand* temp_map = needs_write_barrier_for_map ? TempRegister() : NULL; |
| 2372 | 2373 |
| 2373 return new(zone()) LStoreNamedField(obj, val, temp, temp_map); | 2374 return new(zone()) LStoreNamedField(obj, val, temp, temp_map); |
| 2374 } | 2375 } |
| 2375 | 2376 |
| 2376 | 2377 |
| 2377 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 2378 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { |
| 2378 LOperand* context = UseFixed(instr->context(), esi); | 2379 LOperand* context = UseFixed(instr->context(), esi); |
| 2379 LOperand* object = UseFixed(instr->object(), edx); | 2380 LOperand* object = UseFixed(instr->object(), StoreIC::ReceiverRegister()); |
| 2380 LOperand* value = UseFixed(instr->value(), eax); | 2381 LOperand* value = UseFixed(instr->value(), StoreIC::ValueRegister()); |
| 2381 | 2382 |
| 2382 LStoreNamedGeneric* result = | 2383 LStoreNamedGeneric* result = |
| 2383 new(zone()) LStoreNamedGeneric(context, object, value); | 2384 new(zone()) LStoreNamedGeneric(context, object, value); |
| 2384 return MarkAsCall(result, instr); | 2385 return MarkAsCall(result, instr); |
| 2385 } | 2386 } |
| 2386 | 2387 |
| 2387 | 2388 |
| 2388 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { | 2389 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { |
| 2389 LOperand* context = UseFixed(instr->context(), esi); | 2390 LOperand* context = UseFixed(instr->context(), esi); |
| 2390 LOperand* left = UseFixed(instr->left(), edx); | 2391 LOperand* left = UseFixed(instr->left(), edx); |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2653 LOperand* function = UseRegisterAtStart(instr->function()); | 2654 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2654 LAllocateBlockContext* result = | 2655 LAllocateBlockContext* result = |
| 2655 new(zone()) LAllocateBlockContext(context, function); | 2656 new(zone()) LAllocateBlockContext(context, function); |
| 2656 return MarkAsCall(DefineFixed(result, esi), instr); | 2657 return MarkAsCall(DefineFixed(result, esi), instr); |
| 2657 } | 2658 } |
| 2658 | 2659 |
| 2659 | 2660 |
| 2660 } } // namespace v8::internal | 2661 } } // namespace v8::internal |
| 2661 | 2662 |
| 2662 #endif // V8_TARGET_ARCH_X87 | 2663 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |