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/instruction.h" | 5 #include "src/compiler/instruction.h" |
6 | 6 |
7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 case kUnorderedNotEqual: | 232 case kUnorderedNotEqual: |
233 return os << "unordered not equal"; | 233 return os << "unordered not equal"; |
234 case kUnorderedLessThan: | 234 case kUnorderedLessThan: |
235 return os << "unordered less than"; | 235 return os << "unordered less than"; |
236 case kUnorderedGreaterThanOrEqual: | 236 case kUnorderedGreaterThanOrEqual: |
237 return os << "unordered greater than or equal"; | 237 return os << "unordered greater than or equal"; |
238 case kUnorderedLessThanOrEqual: | 238 case kUnorderedLessThanOrEqual: |
239 return os << "unordered less than or equal"; | 239 return os << "unordered less than or equal"; |
240 case kUnorderedGreaterThan: | 240 case kUnorderedGreaterThan: |
241 return os << "unordered greater than"; | 241 return os << "unordered greater than"; |
| 242 case kOverflow: |
| 243 return os << "overflow"; |
| 244 case kNotOverflow: |
| 245 return os << "not overflow"; |
242 } | 246 } |
243 UNREACHABLE(); | 247 UNREACHABLE(); |
244 return os; | 248 return os; |
245 } | 249 } |
246 | 250 |
247 | 251 |
248 OStream& operator<<(OStream& os, const Instruction& instr) { | 252 OStream& operator<<(OStream& os, const Instruction& instr) { |
249 if (instr.OutputCount() > 1) os << "("; | 253 if (instr.OutputCount() > 1) os << "("; |
250 for (size_t i = 0; i < instr.OutputCount(); i++) { | 254 for (size_t i = 0; i < instr.OutputCount(); i++) { |
251 if (i > 0) os << ", "; | 255 if (i > 0) os << ", "; |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 os << " B" << (*iter)->id(); | 474 os << " B" << (*iter)->id(); |
471 } | 475 } |
472 os << "\n"; | 476 os << "\n"; |
473 } | 477 } |
474 return os; | 478 return os; |
475 } | 479 } |
476 | 480 |
477 } // namespace compiler | 481 } // namespace compiler |
478 } // namespace internal | 482 } // namespace internal |
479 } // namespace v8 | 483 } // namespace v8 |
OLD | NEW |