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_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "src/lithium-allocator-inl.h" | 9 #include "src/lithium-allocator-inl.h" |
10 #include "src/x64/lithium-x64.h" | 10 #include "src/x64/lithium-x64.h" |
(...skipping 2565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2576 | 2576 |
2577 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2577 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2578 LOperand* object = UseRegister(instr->object()); | 2578 LOperand* object = UseRegister(instr->object()); |
2579 LOperand* index = UseTempRegister(instr->index()); | 2579 LOperand* index = UseTempRegister(instr->index()); |
2580 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2580 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2581 LInstruction* result = DefineSameAsFirst(load); | 2581 LInstruction* result = DefineSameAsFirst(load); |
2582 return AssignPointerMap(result); | 2582 return AssignPointerMap(result); |
2583 } | 2583 } |
2584 | 2584 |
2585 | 2585 |
| 2586 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
| 2587 LOperand* context = UseRegisterAtStart(instr->context()); |
| 2588 return new(zone()) LStoreFrameContext(context); |
| 2589 } |
| 2590 |
| 2591 |
| 2592 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
| 2593 HAllocateBlockContext* instr) { |
| 2594 LOperand* context = UseFixed(instr->context(), rsi); |
| 2595 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2596 LAllocateBlockContext* result = |
| 2597 new(zone()) LAllocateBlockContext(context, function); |
| 2598 return MarkAsCall(DefineFixed(result, rsi), instr); |
| 2599 } |
| 2600 |
| 2601 |
2586 } } // namespace v8::internal | 2602 } } // namespace v8::internal |
2587 | 2603 |
2588 #endif // V8_TARGET_ARCH_X64 | 2604 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |