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 #if V8_TARGET_ARCH_X64 | 9 #if V8_TARGET_ARCH_X64 |
10 | 10 |
(...skipping 2555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2566 | 2566 |
2567 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { | 2567 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { |
2568 LOperand* object = UseFixed(instr->value(), rax); | 2568 LOperand* object = UseFixed(instr->value(), rax); |
2569 LToFastProperties* result = new(zone()) LToFastProperties(object); | 2569 LToFastProperties* result = new(zone()) LToFastProperties(object); |
2570 return MarkAsCall(DefineFixed(result, rax), instr); | 2570 return MarkAsCall(DefineFixed(result, rax), instr); |
2571 } | 2571 } |
2572 | 2572 |
2573 | 2573 |
2574 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { | 2574 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { |
2575 LOperand* context = UseFixed(instr->context(), rsi); | 2575 LOperand* context = UseFixed(instr->context(), rsi); |
2576 LOperand* value = UseAtStart(instr->value()); | 2576 LOperand* value = UseFixed(instr->value(), rbx); |
2577 LTypeof* result = new(zone()) LTypeof(context, value); | 2577 LTypeof* result = new(zone()) LTypeof(context, value); |
2578 return MarkAsCall(DefineFixed(result, rax), instr); | 2578 return MarkAsCall(DefineFixed(result, rax), instr); |
2579 } | 2579 } |
2580 | 2580 |
2581 | 2581 |
2582 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { | 2582 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { |
2583 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value())); | 2583 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value())); |
2584 } | 2584 } |
2585 | 2585 |
2586 | 2586 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2693 LOperand* function = UseRegisterAtStart(instr->function()); | 2693 LOperand* function = UseRegisterAtStart(instr->function()); |
2694 LAllocateBlockContext* result = | 2694 LAllocateBlockContext* result = |
2695 new(zone()) LAllocateBlockContext(context, function); | 2695 new(zone()) LAllocateBlockContext(context, function); |
2696 return MarkAsCall(DefineFixed(result, rsi), instr); | 2696 return MarkAsCall(DefineFixed(result, rsi), instr); |
2697 } | 2697 } |
2698 | 2698 |
2699 | 2699 |
2700 } } // namespace v8::internal | 2700 } } // namespace v8::internal |
2701 | 2701 |
2702 #endif // V8_TARGET_ARCH_X64 | 2702 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |