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/lithium-allocator-inl.h" | 9 #include "src/lithium-allocator-inl.h" |
10 #include "src/x87/lithium-x87.h" | 10 #include "src/x87/lithium-x87.h" |
(...skipping 2621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2632 | 2632 |
2633 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2633 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2634 LOperand* object = UseRegister(instr->object()); | 2634 LOperand* object = UseRegister(instr->object()); |
2635 LOperand* index = UseTempRegister(instr->index()); | 2635 LOperand* index = UseTempRegister(instr->index()); |
2636 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2636 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2637 LInstruction* result = DefineSameAsFirst(load); | 2637 LInstruction* result = DefineSameAsFirst(load); |
2638 return AssignPointerMap(result); | 2638 return AssignPointerMap(result); |
2639 } | 2639 } |
2640 | 2640 |
2641 | 2641 |
| 2642 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
| 2643 LOperand* context = UseRegisterAtStart(instr->context()); |
| 2644 return new(zone()) LStoreFrameContext(context); |
| 2645 } |
| 2646 |
| 2647 |
| 2648 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
| 2649 HAllocateBlockContext* instr) { |
| 2650 LOperand* context = UseFixed(instr->context(), esi); |
| 2651 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2652 LAllocateBlockContext* result = |
| 2653 new(zone()) LAllocateBlockContext(context, function); |
| 2654 return MarkAsCall(DefineFixed(result, esi), instr); |
| 2655 } |
| 2656 |
| 2657 |
2642 } } // namespace v8::internal | 2658 } } // namespace v8::internal |
2643 | 2659 |
2644 #endif // V8_TARGET_ARCH_X87 | 2660 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |