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