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 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 #include "src/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
10 #include "src/lithium-inl.h" | 10 #include "src/lithium-inl.h" |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 void LCompareNumericAndBranch::PrintDataTo(StringStream* stream) { | 169 void LCompareNumericAndBranch::PrintDataTo(StringStream* stream) { |
170 stream->Add("if "); | 170 stream->Add("if "); |
171 left()->PrintTo(stream); | 171 left()->PrintTo(stream); |
172 stream->Add(" %s ", Token::String(op())); | 172 stream->Add(" %s ", Token::String(op())); |
173 right()->PrintTo(stream); | 173 right()->PrintTo(stream); |
174 stream->Add(" then B%d else B%d", true_block_id(), false_block_id()); | 174 stream->Add(" then B%d else B%d", true_block_id(), false_block_id()); |
175 } | 175 } |
176 | 176 |
177 | 177 |
178 void LIsObjectAndBranch::PrintDataTo(StringStream* stream) { | |
179 stream->Add("if is_object("); | |
180 value()->PrintTo(stream); | |
181 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); | |
182 } | |
183 | |
184 | |
185 void LIsStringAndBranch::PrintDataTo(StringStream* stream) { | 178 void LIsStringAndBranch::PrintDataTo(StringStream* stream) { |
186 stream->Add("if is_string("); | 179 stream->Add("if is_string("); |
187 value()->PrintTo(stream); | 180 value()->PrintTo(stream); |
188 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); | 181 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); |
189 } | 182 } |
190 | 183 |
191 | 184 |
192 void LIsSmiAndBranch::PrintDataTo(StringStream* stream) { | 185 void LIsSmiAndBranch::PrintDataTo(StringStream* stream) { |
193 stream->Add("if is_smi("); | 186 stream->Add("if is_smi("); |
194 value()->PrintTo(stream); | 187 value()->PrintTo(stream); |
(...skipping 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1722 | 1715 |
1723 | 1716 |
1724 LInstruction* LChunkBuilder::DoCompareMinusZeroAndBranch( | 1717 LInstruction* LChunkBuilder::DoCompareMinusZeroAndBranch( |
1725 HCompareMinusZeroAndBranch* instr) { | 1718 HCompareMinusZeroAndBranch* instr) { |
1726 LOperand* value = UseRegister(instr->value()); | 1719 LOperand* value = UseRegister(instr->value()); |
1727 LOperand* scratch = TempRegister(); | 1720 LOperand* scratch = TempRegister(); |
1728 return new(zone()) LCompareMinusZeroAndBranch(value, scratch); | 1721 return new(zone()) LCompareMinusZeroAndBranch(value, scratch); |
1729 } | 1722 } |
1730 | 1723 |
1731 | 1724 |
1732 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { | |
1733 DCHECK(instr->value()->representation().IsTagged()); | |
1734 LOperand* temp = TempRegister(); | |
1735 return new(zone()) LIsObjectAndBranch(UseRegisterAtStart(instr->value()), | |
1736 temp); | |
1737 } | |
1738 | |
1739 | |
1740 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { | 1725 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { |
1741 DCHECK(instr->value()->representation().IsTagged()); | 1726 DCHECK(instr->value()->representation().IsTagged()); |
1742 LOperand* temp = TempRegister(); | 1727 LOperand* temp = TempRegister(); |
1743 return new(zone()) LIsStringAndBranch(UseRegisterAtStart(instr->value()), | 1728 return new(zone()) LIsStringAndBranch(UseRegisterAtStart(instr->value()), |
1744 temp); | 1729 temp); |
1745 } | 1730 } |
1746 | 1731 |
1747 | 1732 |
1748 LInstruction* LChunkBuilder::DoIsSmiAndBranch(HIsSmiAndBranch* instr) { | 1733 LInstruction* LChunkBuilder::DoIsSmiAndBranch(HIsSmiAndBranch* instr) { |
1749 DCHECK(instr->value()->representation().IsTagged()); | 1734 DCHECK(instr->value()->representation().IsTagged()); |
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2662 LAllocateBlockContext* result = | 2647 LAllocateBlockContext* result = |
2663 new(zone()) LAllocateBlockContext(context, function); | 2648 new(zone()) LAllocateBlockContext(context, function); |
2664 return MarkAsCall(DefineFixed(result, cp), instr); | 2649 return MarkAsCall(DefineFixed(result, cp), instr); |
2665 } | 2650 } |
2666 | 2651 |
2667 | 2652 |
2668 } // namespace internal | 2653 } // namespace internal |
2669 } // namespace v8 | 2654 } // namespace v8 |
2670 | 2655 |
2671 #endif // V8_TARGET_ARCH_MIPS64 | 2656 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |