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 <sstream> | 5 #include <sstream> |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/arm/lithium-codegen-arm.h" | 9 #include "src/arm/lithium-codegen-arm.h" |
10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
(...skipping 2523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2534 | 2534 |
2535 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { | 2535 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { |
2536 LOperand* object = UseFixed(instr->value(), r0); | 2536 LOperand* object = UseFixed(instr->value(), r0); |
2537 LToFastProperties* result = new(zone()) LToFastProperties(object); | 2537 LToFastProperties* result = new(zone()) LToFastProperties(object); |
2538 return MarkAsCall(DefineFixed(result, r0), instr); | 2538 return MarkAsCall(DefineFixed(result, r0), instr); |
2539 } | 2539 } |
2540 | 2540 |
2541 | 2541 |
2542 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { | 2542 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { |
2543 LOperand* context = UseFixed(instr->context(), cp); | 2543 LOperand* context = UseFixed(instr->context(), cp); |
2544 LTypeof* result = new(zone()) LTypeof(context, UseFixed(instr->value(), r0)); | 2544 LOperand* value = UseFixed(instr->value(), r3); |
| 2545 LTypeof* result = new (zone()) LTypeof(context, value); |
2545 return MarkAsCall(DefineFixed(result, r0), instr); | 2546 return MarkAsCall(DefineFixed(result, r0), instr); |
2546 } | 2547 } |
2547 | 2548 |
2548 | 2549 |
2549 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { | 2550 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { |
2550 return new(zone()) LTypeofIsAndBranch(UseRegister(instr->value())); | 2551 return new(zone()) LTypeofIsAndBranch(UseRegister(instr->value())); |
2551 } | 2552 } |
2552 | 2553 |
2553 | 2554 |
2554 LInstruction* LChunkBuilder::DoIsConstructCallAndBranch( | 2555 LInstruction* LChunkBuilder::DoIsConstructCallAndBranch( |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2655 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2656 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
2656 HAllocateBlockContext* instr) { | 2657 HAllocateBlockContext* instr) { |
2657 LOperand* context = UseFixed(instr->context(), cp); | 2658 LOperand* context = UseFixed(instr->context(), cp); |
2658 LOperand* function = UseRegisterAtStart(instr->function()); | 2659 LOperand* function = UseRegisterAtStart(instr->function()); |
2659 LAllocateBlockContext* result = | 2660 LAllocateBlockContext* result = |
2660 new(zone()) LAllocateBlockContext(context, function); | 2661 new(zone()) LAllocateBlockContext(context, function); |
2661 return MarkAsCall(DefineFixed(result, cp), instr); | 2662 return MarkAsCall(DefineFixed(result, cp), instr); |
2662 } | 2663 } |
2663 | 2664 |
2664 } } // namespace v8::internal | 2665 } } // namespace v8::internal |
OLD | NEW |