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 | 6 |
7 #include "src/assembler.h" | 7 #include "src/assembler.h" |
8 #include "src/base/lazy-instance.h" | 8 #include "src/base/lazy-instance.h" |
9 #include "src/compiler/linkage.h" | 9 #include "src/compiler/linkage.h" |
10 #include "src/compiler/opcodes.h" | 10 #include "src/compiler/opcodes.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 | 110 |
111 std::ostream& operator<<(std::ostream& os, ParameterInfo const& i) { | 111 std::ostream& operator<<(std::ostream& os, ParameterInfo const& i) { |
112 if (i.debug_name()) os << i.debug_name() << '#'; | 112 if (i.debug_name()) os << i.debug_name() << '#'; |
113 os << i.index(); | 113 os << i.index(); |
114 return os; | 114 return os; |
115 } | 115 } |
116 | 116 |
117 | 117 |
118 #define CACHED_OP_LIST(V) \ | 118 #define CACHED_OP_LIST(V) \ |
119 V(Dead, Operator::kFoldable, 0, 0, 0, 0, 0, 1) \ | 119 V(DeadValue, Operator::kPure, 0, 0, 0, 1, 0, 0) \ |
| 120 V(DeadEffect, Operator::kPure, 0, 0, 0, 0, 1, 0) \ |
| 121 V(DeadControl, Operator::kFoldable, 0, 0, 0, 0, 0, 1) \ |
120 V(IfTrue, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ | 122 V(IfTrue, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ |
121 V(IfFalse, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ | 123 V(IfFalse, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ |
122 V(IfSuccess, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ | 124 V(IfSuccess, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ |
123 V(IfDefault, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ | 125 V(IfDefault, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ |
124 V(Throw, Operator::kKontrol, 1, 1, 1, 0, 0, 1) \ | 126 V(Throw, Operator::kKontrol, 1, 1, 1, 0, 0, 1) \ |
125 V(Deoptimize, Operator::kNoThrow, 1, 1, 1, 0, 0, 1) \ | 127 V(Deoptimize, Operator::kNoThrow, 1, 1, 1, 0, 0, 1) \ |
126 V(Return, Operator::kNoThrow, 1, 1, 1, 0, 0, 1) \ | 128 V(Return, Operator::kNoThrow, 1, 1, 1, 0, 0, 1) \ |
127 V(Terminate, Operator::kKontrol, 0, 1, 1, 0, 0, 1) \ | 129 V(Terminate, Operator::kKontrol, 0, 1, 1, 0, 0, 1) \ |
128 V(OsrNormalEntry, Operator::kFoldable, 0, 1, 1, 0, 1, 1) \ | 130 V(OsrNormalEntry, Operator::kFoldable, 0, 1, 1, 0, 1, 1) \ |
129 V(OsrLoopEntry, Operator::kFoldable, 0, 1, 1, 0, 1, 1) | 131 V(OsrLoopEntry, Operator::kFoldable, 0, 1, 1, 0, 1, 1) |
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 } else { | 774 } else { |
773 UNREACHABLE(); | 775 UNREACHABLE(); |
774 return nullptr; | 776 return nullptr; |
775 } | 777 } |
776 } | 778 } |
777 | 779 |
778 | 780 |
779 } // namespace compiler | 781 } // namespace compiler |
780 } // namespace internal | 782 } // namespace internal |
781 } // namespace v8 | 783 } // namespace v8 |
OLD | NEW |