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 30 matching lines...) Expand all Loading... |
41 case kFloatGreaterThanOrUnordered: | 41 case kFloatGreaterThanOrUnordered: |
42 return kFloatLessThanOrUnordered; | 42 return kFloatLessThanOrUnordered; |
43 case kFloatLessThan: | 43 case kFloatLessThan: |
44 return kFloatGreaterThan; | 44 return kFloatGreaterThan; |
45 case kFloatGreaterThanOrEqualOrUnordered: | 45 case kFloatGreaterThanOrEqualOrUnordered: |
46 return kFloatLessThanOrEqualOrUnordered; | 46 return kFloatLessThanOrEqualOrUnordered; |
47 case kFloatLessThanOrEqualOrUnordered: | 47 case kFloatLessThanOrEqualOrUnordered: |
48 return kFloatGreaterThanOrEqualOrUnordered; | 48 return kFloatGreaterThanOrEqualOrUnordered; |
49 case kFloatGreaterThan: | 49 case kFloatGreaterThan: |
50 return kFloatLessThan; | 50 return kFloatLessThan; |
| 51 case kPositiveOrZero: |
| 52 case kNegative: |
| 53 UNREACHABLE(); |
| 54 break; |
51 case kEqual: | 55 case kEqual: |
52 case kNotEqual: | 56 case kNotEqual: |
53 case kOverflow: | 57 case kOverflow: |
54 case kNotOverflow: | 58 case kNotOverflow: |
55 case kUnorderedEqual: | 59 case kUnorderedEqual: |
56 case kUnorderedNotEqual: | 60 case kUnorderedNotEqual: |
57 return condition; | 61 return condition; |
58 } | 62 } |
59 UNREACHABLE(); | 63 UNREACHABLE(); |
60 return condition; | 64 return condition; |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 case kFloatGreaterThan: | 447 case kFloatGreaterThan: |
444 return os << "greater than (FP)"; | 448 return os << "greater than (FP)"; |
445 case kUnorderedEqual: | 449 case kUnorderedEqual: |
446 return os << "unordered equal"; | 450 return os << "unordered equal"; |
447 case kUnorderedNotEqual: | 451 case kUnorderedNotEqual: |
448 return os << "unordered not equal"; | 452 return os << "unordered not equal"; |
449 case kOverflow: | 453 case kOverflow: |
450 return os << "overflow"; | 454 return os << "overflow"; |
451 case kNotOverflow: | 455 case kNotOverflow: |
452 return os << "not overflow"; | 456 return os << "not overflow"; |
| 457 case kPositiveOrZero: |
| 458 return os << "positive or zero"; |
| 459 case kNegative: |
| 460 return os << "negative"; |
453 } | 461 } |
454 UNREACHABLE(); | 462 UNREACHABLE(); |
455 return os; | 463 return os; |
456 } | 464 } |
457 | 465 |
458 | 466 |
459 std::ostream& operator<<(std::ostream& os, | 467 std::ostream& operator<<(std::ostream& os, |
460 const PrintableInstruction& printable) { | 468 const PrintableInstruction& printable) { |
461 const Instruction& instr = *printable.instr_; | 469 const Instruction& instr = *printable.instr_; |
462 PrintableInstructionOperand printable_op = {printable.register_configuration_, | 470 PrintableInstructionOperand printable_op = {printable.register_configuration_, |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1020 } | 1028 } |
1021 for (int i = 0; i < code.InstructionBlockCount(); i++) { | 1029 for (int i = 0; i < code.InstructionBlockCount(); i++) { |
1022 printable.sequence_->PrintBlock(printable.register_configuration_, i); | 1030 printable.sequence_->PrintBlock(printable.register_configuration_, i); |
1023 } | 1031 } |
1024 return os; | 1032 return os; |
1025 } | 1033 } |
1026 | 1034 |
1027 } // namespace compiler | 1035 } // namespace compiler |
1028 } // namespace internal | 1036 } // namespace internal |
1029 } // namespace v8 | 1037 } // namespace v8 |
OLD | NEW |