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 #include "src/lithium-allocator-inl.h" | 7 #include "src/lithium-allocator-inl.h" |
8 #include "src/mips/lithium-mips.h" | 8 #include "src/mips/lithium-mips.h" |
9 #include "src/mips/lithium-codegen-mips.h" | 9 #include "src/mips/lithium-codegen-mips.h" |
10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
(...skipping 2508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2519 | 2519 |
2520 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2520 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2521 LOperand* object = UseRegister(instr->object()); | 2521 LOperand* object = UseRegister(instr->object()); |
2522 LOperand* index = UseTempRegister(instr->index()); | 2522 LOperand* index = UseTempRegister(instr->index()); |
2523 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2523 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2524 LInstruction* result = DefineSameAsFirst(load); | 2524 LInstruction* result = DefineSameAsFirst(load); |
2525 return AssignPointerMap(result); | 2525 return AssignPointerMap(result); |
2526 } | 2526 } |
2527 | 2527 |
2528 | 2528 |
| 2529 |
| 2530 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
| 2531 LOperand* context = UseRegisterAtStart(instr->context()); |
| 2532 return new(zone()) LStoreFrameContext(context); |
| 2533 } |
| 2534 |
| 2535 |
| 2536 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
| 2537 HAllocateBlockContext* instr) { |
| 2538 LOperand* context = UseFixed(instr->context(), cp); |
| 2539 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2540 LAllocateBlockContext* result = |
| 2541 new(zone()) LAllocateBlockContext(context, function); |
| 2542 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2543 } |
| 2544 |
2529 } } // namespace v8::internal | 2545 } } // namespace v8::internal |
OLD | NEW |