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/mips64/lithium-mips64.h" | 5 #include "src/crankshaft/mips64/lithium-mips64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1689 } | 1689 } |
1690 | 1690 |
1691 | 1691 |
1692 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( | 1692 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( |
1693 HCompareHoleAndBranch* instr) { | 1693 HCompareHoleAndBranch* instr) { |
1694 LOperand* value = UseRegisterAtStart(instr->value()); | 1694 LOperand* value = UseRegisterAtStart(instr->value()); |
1695 return new(zone()) LCmpHoleAndBranch(value); | 1695 return new(zone()) LCmpHoleAndBranch(value); |
1696 } | 1696 } |
1697 | 1697 |
1698 | 1698 |
1699 LInstruction* LChunkBuilder::DoCompareMinusZeroAndBranch( | |
1700 HCompareMinusZeroAndBranch* instr) { | |
1701 LOperand* value = UseRegister(instr->value()); | |
1702 LOperand* scratch = TempRegister(); | |
1703 return new(zone()) LCompareMinusZeroAndBranch(value, scratch); | |
1704 } | |
1705 | |
1706 | |
1707 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { | 1699 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { |
1708 DCHECK(instr->value()->representation().IsTagged()); | 1700 DCHECK(instr->value()->representation().IsTagged()); |
1709 LOperand* temp = TempRegister(); | 1701 LOperand* temp = TempRegister(); |
1710 return new(zone()) LIsStringAndBranch(UseRegisterAtStart(instr->value()), | 1702 return new(zone()) LIsStringAndBranch(UseRegisterAtStart(instr->value()), |
1711 temp); | 1703 temp); |
1712 } | 1704 } |
1713 | 1705 |
1714 | 1706 |
1715 LInstruction* LChunkBuilder::DoIsSmiAndBranch(HIsSmiAndBranch* instr) { | 1707 LInstruction* LChunkBuilder::DoIsSmiAndBranch(HIsSmiAndBranch* instr) { |
1716 DCHECK(instr->value()->representation().IsTagged()); | 1708 DCHECK(instr->value()->representation().IsTagged()); |
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2575 LAllocateBlockContext* result = | 2567 LAllocateBlockContext* result = |
2576 new(zone()) LAllocateBlockContext(context, function); | 2568 new(zone()) LAllocateBlockContext(context, function); |
2577 return MarkAsCall(DefineFixed(result, cp), instr); | 2569 return MarkAsCall(DefineFixed(result, cp), instr); |
2578 } | 2570 } |
2579 | 2571 |
2580 | 2572 |
2581 } // namespace internal | 2573 } // namespace internal |
2582 } // namespace v8 | 2574 } // namespace v8 |
2583 | 2575 |
2584 #endif // V8_TARGET_ARCH_MIPS64 | 2576 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |