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 2649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2660 | 2660 |
2661 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2661 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2662 LOperand* object = UseRegister(instr->object()); | 2662 LOperand* object = UseRegister(instr->object()); |
2663 LOperand* index = UseTempRegister(instr->index()); | 2663 LOperand* index = UseTempRegister(instr->index()); |
2664 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2664 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2665 LInstruction* result = DefineSameAsFirst(load); | 2665 LInstruction* result = DefineSameAsFirst(load); |
2666 return AssignPointerMap(result); | 2666 return AssignPointerMap(result); |
2667 } | 2667 } |
2668 | 2668 |
2669 | 2669 |
| 2670 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
| 2671 LOperand* context = UseRegisterAtStart(instr->context()); |
| 2672 return new(zone()) LStoreFrameContext(context); |
| 2673 } |
| 2674 |
| 2675 |
| 2676 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
| 2677 HAllocateBlockContext* instr) { |
| 2678 LOperand* context = UseFixed(instr->context(), esi); |
| 2679 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2680 LAllocateBlockContext* result = |
| 2681 new(zone()) LAllocateBlockContext(context, function); |
| 2682 return MarkAsCall(DefineFixed(result, esi), instr); |
| 2683 } |
| 2684 |
| 2685 |
2670 } } // namespace v8::internal | 2686 } } // namespace v8::internal |
2671 | 2687 |
2672 #endif // V8_TARGET_ARCH_IA32 | 2688 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |