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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
8 | 8 |
9 #include "lithium-allocator-inl.h" | 9 #include "lithium-allocator-inl.h" |
10 #include "ia32/lithium-ia32.h" | 10 #include "ia32/lithium-ia32.h" |
(...skipping 2337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2348 } else { | 2348 } else { |
2349 LOperand* object = UseFixed(instr->object(), eax); | 2349 LOperand* object = UseFixed(instr->object(), eax); |
2350 LOperand* context = UseFixed(instr->context(), esi); | 2350 LOperand* context = UseFixed(instr->context(), esi); |
2351 LTransitionElementsKind* result = | 2351 LTransitionElementsKind* result = |
2352 new(zone()) LTransitionElementsKind(object, context, NULL, NULL); | 2352 new(zone()) LTransitionElementsKind(object, context, NULL, NULL); |
2353 return MarkAsCall(result, instr); | 2353 return MarkAsCall(result, instr); |
2354 } | 2354 } |
2355 } | 2355 } |
2356 | 2356 |
2357 | 2357 |
| 2358 LInstruction* LChunkBuilder::DoArrayShift(HArrayShift* instr) { |
| 2359 LOperand* object = UseFixed(instr->object(), eax); |
| 2360 LOperand* context = UseFixed(instr->context(), esi); |
| 2361 LArrayShift* result = new(zone()) LArrayShift(context, object); |
| 2362 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY); |
| 2363 } |
| 2364 |
| 2365 |
2358 LInstruction* LChunkBuilder::DoTrapAllocationMemento( | 2366 LInstruction* LChunkBuilder::DoTrapAllocationMemento( |
2359 HTrapAllocationMemento* instr) { | 2367 HTrapAllocationMemento* instr) { |
2360 LOperand* object = UseRegister(instr->object()); | 2368 LOperand* object = UseRegister(instr->object()); |
2361 LOperand* temp = TempRegister(); | 2369 LOperand* temp = TempRegister(); |
2362 LTrapAllocationMemento* result = | 2370 LTrapAllocationMemento* result = |
2363 new(zone()) LTrapAllocationMemento(object, temp); | 2371 new(zone()) LTrapAllocationMemento(object, temp); |
2364 return AssignEnvironment(result); | 2372 return AssignEnvironment(result); |
2365 } | 2373 } |
2366 | 2374 |
2367 | 2375 |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2697 LOperand* index = UseTempRegister(instr->index()); | 2705 LOperand* index = UseTempRegister(instr->index()); |
2698 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2706 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2699 LInstruction* result = DefineSameAsFirst(load); | 2707 LInstruction* result = DefineSameAsFirst(load); |
2700 return AssignPointerMap(result); | 2708 return AssignPointerMap(result); |
2701 } | 2709 } |
2702 | 2710 |
2703 | 2711 |
2704 } } // namespace v8::internal | 2712 } } // namespace v8::internal |
2705 | 2713 |
2706 #endif // V8_TARGET_ARCH_IA32 | 2714 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |