| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #include "src/arm64/lithium-codegen-arm64.h" | 7 #include "src/arm64/lithium-codegen-arm64.h" |
| 8 #include "src/hydrogen-osr.h" | 8 #include "src/hydrogen-osr.h" |
| 9 #include "src/lithium-inl.h" | 9 #include "src/lithium-inl.h" |
| 10 | 10 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 } | 198 } |
| 199 | 199 |
| 200 | 200 |
| 201 void LHasInstanceTypeAndBranch::PrintDataTo(StringStream* stream) { | 201 void LHasInstanceTypeAndBranch::PrintDataTo(StringStream* stream) { |
| 202 stream->Add("if has_instance_type("); | 202 stream->Add("if has_instance_type("); |
| 203 value()->PrintTo(stream); | 203 value()->PrintTo(stream); |
| 204 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); | 204 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); |
| 205 } | 205 } |
| 206 | 206 |
| 207 | 207 |
| 208 void LIsObjectAndBranch::PrintDataTo(StringStream* stream) { | |
| 209 stream->Add("if is_object("); | |
| 210 value()->PrintTo(stream); | |
| 211 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); | |
| 212 } | |
| 213 | |
| 214 | |
| 215 void LIsStringAndBranch::PrintDataTo(StringStream* stream) { | 208 void LIsStringAndBranch::PrintDataTo(StringStream* stream) { |
| 216 stream->Add("if is_string("); | 209 stream->Add("if is_string("); |
| 217 value()->PrintTo(stream); | 210 value()->PrintTo(stream); |
| 218 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); | 211 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); |
| 219 } | 212 } |
| 220 | 213 |
| 221 | 214 |
| 222 void LIsSmiAndBranch::PrintDataTo(StringStream* stream) { | 215 void LIsSmiAndBranch::PrintDataTo(StringStream* stream) { |
| 223 stream->Add("if is_smi("); | 216 stream->Add("if is_smi("); |
| 224 value()->PrintTo(stream); | 217 value()->PrintTo(stream); |
| (...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1613 | 1606 |
| 1614 | 1607 |
| 1615 LInstruction* LChunkBuilder::DoCompareMinusZeroAndBranch( | 1608 LInstruction* LChunkBuilder::DoCompareMinusZeroAndBranch( |
| 1616 HCompareMinusZeroAndBranch* instr) { | 1609 HCompareMinusZeroAndBranch* instr) { |
| 1617 LOperand* value = UseRegister(instr->value()); | 1610 LOperand* value = UseRegister(instr->value()); |
| 1618 LOperand* scratch = TempRegister(); | 1611 LOperand* scratch = TempRegister(); |
| 1619 return new(zone()) LCompareMinusZeroAndBranch(value, scratch); | 1612 return new(zone()) LCompareMinusZeroAndBranch(value, scratch); |
| 1620 } | 1613 } |
| 1621 | 1614 |
| 1622 | 1615 |
| 1623 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { | |
| 1624 DCHECK(instr->value()->representation().IsTagged()); | |
| 1625 LOperand* value = UseRegisterAtStart(instr->value()); | |
| 1626 LOperand* temp1 = TempRegister(); | |
| 1627 LOperand* temp2 = TempRegister(); | |
| 1628 return new(zone()) LIsObjectAndBranch(value, temp1, temp2); | |
| 1629 } | |
| 1630 | |
| 1631 | |
| 1632 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { | 1616 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { |
| 1633 DCHECK(instr->value()->representation().IsTagged()); | 1617 DCHECK(instr->value()->representation().IsTagged()); |
| 1634 LOperand* value = UseRegisterAtStart(instr->value()); | 1618 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1635 LOperand* temp = TempRegister(); | 1619 LOperand* temp = TempRegister(); |
| 1636 return new(zone()) LIsStringAndBranch(value, temp); | 1620 return new(zone()) LIsStringAndBranch(value, temp); |
| 1637 } | 1621 } |
| 1638 | 1622 |
| 1639 | 1623 |
| 1640 LInstruction* LChunkBuilder::DoIsSmiAndBranch(HIsSmiAndBranch* instr) { | 1624 LInstruction* LChunkBuilder::DoIsSmiAndBranch(HIsSmiAndBranch* instr) { |
| 1641 DCHECK(instr->value()->representation().IsTagged()); | 1625 DCHECK(instr->value()->representation().IsTagged()); |
| (...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2802 LOperand* context = UseFixed(instr->context(), cp); | 2786 LOperand* context = UseFixed(instr->context(), cp); |
| 2803 LOperand* function = UseRegisterAtStart(instr->function()); | 2787 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2804 LAllocateBlockContext* result = | 2788 LAllocateBlockContext* result = |
| 2805 new(zone()) LAllocateBlockContext(context, function); | 2789 new(zone()) LAllocateBlockContext(context, function); |
| 2806 return MarkAsCall(DefineFixed(result, cp), instr); | 2790 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2807 } | 2791 } |
| 2808 | 2792 |
| 2809 | 2793 |
| 2810 } // namespace internal | 2794 } // namespace internal |
| 2811 } // namespace v8 | 2795 } // namespace v8 |
| OLD | NEW |