| 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/compiler/common-operator.h" | 5 #include "src/compiler/common-operator.h" |
| 6 #include "src/compiler/graph.h" | 6 #include "src/compiler/graph.h" |
| 7 #include "src/compiler/instruction.h" | 7 #include "src/compiler/instruction.h" |
| 8 #include "src/compiler/schedule.h" | 8 #include "src/compiler/schedule.h" |
| 9 #include "src/compiler/state-values-utils.h" | 9 #include "src/compiler/state-values-utils.h" |
| 10 | 10 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 } else if (op.IsFPStackSlot()) { | 139 } else if (op.IsFPStackSlot()) { |
| 140 os << "[fp_stack:" << allocated.index(); | 140 os << "[fp_stack:" << allocated.index(); |
| 141 } else if (op.IsRegister()) { | 141 } else if (op.IsRegister()) { |
| 142 os << "[" | 142 os << "[" |
| 143 << GetRegConfig()->GetGeneralRegisterName(allocated.register_code()) | 143 << GetRegConfig()->GetGeneralRegisterName(allocated.register_code()) |
| 144 << "|R"; | 144 << "|R"; |
| 145 } else if (op.IsDoubleRegister()) { | 145 } else if (op.IsDoubleRegister()) { |
| 146 os << "[" | 146 os << "[" |
| 147 << GetRegConfig()->GetDoubleRegisterName(allocated.register_code()) | 147 << GetRegConfig()->GetDoubleRegisterName(allocated.register_code()) |
| 148 << "|R"; | 148 << "|R"; |
| 149 } else { | 149 } else if (op.IsFloatRegister()) { |
| 150 DCHECK(op.IsFloatRegister()); | |
| 151 os << "[" | 150 os << "[" |
| 152 << GetRegConfig()->GetFloatRegisterName(allocated.register_code()) | 151 << GetRegConfig()->GetFloatRegisterName(allocated.register_code()) |
| 153 << "|R"; | 152 << "|R"; |
| 153 } else { |
| 154 DCHECK(op.IsSimd128Register()); |
| 155 os << "[" |
| 156 << GetRegConfig()->GetSimd128RegisterName(allocated.register_code()) |
| 157 << "|R"; |
| 154 } | 158 } |
| 155 if (allocated.IsExplicit()) { | 159 if (allocated.IsExplicit()) { |
| 156 os << "|E"; | 160 os << "|E"; |
| 157 } | 161 } |
| 158 switch (allocated.representation()) { | 162 switch (allocated.representation()) { |
| 159 case MachineRepresentation::kNone: | 163 case MachineRepresentation::kNone: |
| 160 os << "|-"; | 164 os << "|-"; |
| 161 break; | 165 break; |
| 162 case MachineRepresentation::kBit: | 166 case MachineRepresentation::kBit: |
| 163 os << "|b"; | 167 os << "|b"; |
| (...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 } | 1027 } |
| 1024 for (int i = 0; i < code.InstructionBlockCount(); i++) { | 1028 for (int i = 0; i < code.InstructionBlockCount(); i++) { |
| 1025 printable.sequence_->PrintBlock(printable.register_configuration_, i); | 1029 printable.sequence_->PrintBlock(printable.register_configuration_, i); |
| 1026 } | 1030 } |
| 1027 return os; | 1031 return os; |
| 1028 } | 1032 } |
| 1029 | 1033 |
| 1030 } // namespace compiler | 1034 } // namespace compiler |
| 1031 } // namespace internal | 1035 } // namespace internal |
| 1032 } // namespace v8 | 1036 } // namespace v8 |
| OLD | NEW |