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/crankshaft/x87/lithium-x87.h" | 5 #include "src/crankshaft/x87/lithium-x87.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_X87 | 9 #if V8_TARGET_ARCH_X87 |
10 | 10 |
(...skipping 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1708 } | 1708 } |
1709 | 1709 |
1710 | 1710 |
1711 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( | 1711 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( |
1712 HCompareHoleAndBranch* instr) { | 1712 HCompareHoleAndBranch* instr) { |
1713 LOperand* value = UseRegisterAtStart(instr->value()); | 1713 LOperand* value = UseRegisterAtStart(instr->value()); |
1714 return new (zone()) LCmpHoleAndBranch(value); | 1714 return new (zone()) LCmpHoleAndBranch(value); |
1715 } | 1715 } |
1716 | 1716 |
1717 | 1717 |
1718 LInstruction* LChunkBuilder::DoCompareMinusZeroAndBranch( | |
1719 HCompareMinusZeroAndBranch* instr) { | |
1720 LOperand* value = UseRegisterAtStart(instr->value()); | |
1721 return new (zone()) LCompareMinusZeroAndBranch(value); | |
1722 } | |
1723 | |
1724 | |
1725 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { | 1718 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { |
1726 DCHECK(instr->value()->representation().IsTagged()); | 1719 DCHECK(instr->value()->representation().IsTagged()); |
1727 LOperand* temp = TempRegister(); | 1720 LOperand* temp = TempRegister(); |
1728 return new(zone()) LIsStringAndBranch(UseRegister(instr->value()), temp); | 1721 return new(zone()) LIsStringAndBranch(UseRegister(instr->value()), temp); |
1729 } | 1722 } |
1730 | 1723 |
1731 | 1724 |
1732 LInstruction* LChunkBuilder::DoIsSmiAndBranch(HIsSmiAndBranch* instr) { | 1725 LInstruction* LChunkBuilder::DoIsSmiAndBranch(HIsSmiAndBranch* instr) { |
1733 DCHECK(instr->value()->representation().IsTagged()); | 1726 DCHECK(instr->value()->representation().IsTagged()); |
1734 return new(zone()) LIsSmiAndBranch(Use(instr->value())); | 1727 return new(zone()) LIsSmiAndBranch(Use(instr->value())); |
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2692 LAllocateBlockContext* result = | 2685 LAllocateBlockContext* result = |
2693 new(zone()) LAllocateBlockContext(context, function); | 2686 new(zone()) LAllocateBlockContext(context, function); |
2694 return MarkAsCall(DefineFixed(result, esi), instr); | 2687 return MarkAsCall(DefineFixed(result, esi), instr); |
2695 } | 2688 } |
2696 | 2689 |
2697 | 2690 |
2698 } // namespace internal | 2691 } // namespace internal |
2699 } // namespace v8 | 2692 } // namespace v8 |
2700 | 2693 |
2701 #endif // V8_TARGET_ARCH_X87 | 2694 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |