| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/ppc/lithium-ppc.h" | 5 #include "src/crankshaft/ppc/lithium-ppc.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/crankshaft/hydrogen-osr.h" | 9 #include "src/crankshaft/hydrogen-osr.h" |
| 10 #include "src/crankshaft/lithium-inl.h" | 10 #include "src/crankshaft/lithium-inl.h" |
| (...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1699 } | 1699 } |
| 1700 | 1700 |
| 1701 | 1701 |
| 1702 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( | 1702 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( |
| 1703 HCompareHoleAndBranch* instr) { | 1703 HCompareHoleAndBranch* instr) { |
| 1704 LOperand* value = UseRegisterAtStart(instr->value()); | 1704 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1705 return new (zone()) LCmpHoleAndBranch(value); | 1705 return new (zone()) LCmpHoleAndBranch(value); |
| 1706 } | 1706 } |
| 1707 | 1707 |
| 1708 | 1708 |
| 1709 LInstruction* LChunkBuilder::DoCompareMinusZeroAndBranch( | |
| 1710 HCompareMinusZeroAndBranch* instr) { | |
| 1711 LOperand* value = UseRegister(instr->value()); | |
| 1712 LOperand* scratch = TempRegister(); | |
| 1713 return new (zone()) LCompareMinusZeroAndBranch(value, scratch); | |
| 1714 } | |
| 1715 | |
| 1716 | |
| 1717 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { | 1709 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { |
| 1718 DCHECK(instr->value()->representation().IsTagged()); | 1710 DCHECK(instr->value()->representation().IsTagged()); |
| 1719 LOperand* value = UseRegisterAtStart(instr->value()); | 1711 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1720 LOperand* temp = TempRegister(); | 1712 LOperand* temp = TempRegister(); |
| 1721 return new (zone()) LIsStringAndBranch(value, temp); | 1713 return new (zone()) LIsStringAndBranch(value, temp); |
| 1722 } | 1714 } |
| 1723 | 1715 |
| 1724 | 1716 |
| 1725 LInstruction* LChunkBuilder::DoIsSmiAndBranch(HIsSmiAndBranch* instr) { | 1717 LInstruction* LChunkBuilder::DoIsSmiAndBranch(HIsSmiAndBranch* instr) { |
| 1726 DCHECK(instr->value()->representation().IsTagged()); | 1718 DCHECK(instr->value()->representation().IsTagged()); |
| (...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2571 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2563 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
| 2572 HAllocateBlockContext* instr) { | 2564 HAllocateBlockContext* instr) { |
| 2573 LOperand* context = UseFixed(instr->context(), cp); | 2565 LOperand* context = UseFixed(instr->context(), cp); |
| 2574 LOperand* function = UseRegisterAtStart(instr->function()); | 2566 LOperand* function = UseRegisterAtStart(instr->function()); |
| 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 } // namespace internal | 2571 } // namespace internal |
| 2580 } // namespace v8 | 2572 } // namespace v8 |
| OLD | NEW |