| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 135 |
| 136 | 136 |
| 137 std::ostream& operator<<(std::ostream& os, ParameterInfo const& i) { | 137 std::ostream& operator<<(std::ostream& os, ParameterInfo const& i) { |
| 138 if (i.debug_name()) os << i.debug_name() << '#'; | 138 if (i.debug_name()) os << i.debug_name() << '#'; |
| 139 os << i.index(); | 139 os << i.index(); |
| 140 return os; | 140 return os; |
| 141 } | 141 } |
| 142 | 142 |
| 143 | 143 |
| 144 #define CACHED_OP_LIST(V) \ | 144 #define CACHED_OP_LIST(V) \ |
| 145 V(Always, Operator::kPure, 0, 0, 0, 1, 0, 0) \ | |
| 146 V(Dead, Operator::kFoldable, 0, 0, 0, 0, 0, 1) \ | 145 V(Dead, Operator::kFoldable, 0, 0, 0, 0, 0, 1) \ |
| 147 V(End, Operator::kKontrol, 0, 0, 1, 0, 0, 0) \ | 146 V(End, Operator::kKontrol, 0, 0, 1, 0, 0, 0) \ |
| 148 V(IfTrue, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ | 147 V(IfTrue, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ |
| 149 V(IfFalse, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ | 148 V(IfFalse, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ |
| 150 V(IfSuccess, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ | 149 V(IfSuccess, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ |
| 151 V(IfException, Operator::kKontrol, 0, 0, 1, 1, 0, 1) \ | 150 V(IfException, Operator::kKontrol, 0, 0, 1, 1, 0, 1) \ |
| 152 V(IfDefault, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ | 151 V(IfDefault, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \ |
| 153 V(Throw, Operator::kKontrol, 1, 1, 1, 0, 0, 1) \ | 152 V(Throw, Operator::kKontrol, 1, 1, 1, 0, 0, 1) \ |
| 154 V(Deoptimize, Operator::kNoThrow, 1, 1, 1, 0, 0, 1) \ | 153 V(Deoptimize, Operator::kNoThrow, 1, 1, 1, 0, 0, 1) \ |
| 155 V(Return, Operator::kNoThrow, 1, 1, 1, 0, 0, 1) \ | 154 V(Return, Operator::kNoThrow, 1, 1, 1, 0, 0, 1) \ |
| 155 V(Terminate, Operator::kNoThrow, 0, 1, 1, 0, 0, 1) \ |
| 156 V(OsrNormalEntry, Operator::kFoldable, 0, 1, 1, 0, 1, 1) \ | 156 V(OsrNormalEntry, Operator::kFoldable, 0, 1, 1, 0, 1, 1) \ |
| 157 V(OsrLoopEntry, Operator::kFoldable, 0, 1, 1, 0, 1, 1) | 157 V(OsrLoopEntry, Operator::kFoldable, 0, 1, 1, 0, 1, 1) |
| 158 | 158 |
| 159 | 159 |
| 160 #define CACHED_EFFECT_PHI_LIST(V) \ | 160 #define CACHED_EFFECT_PHI_LIST(V) \ |
| 161 V(1) \ | 161 V(1) \ |
| 162 V(2) \ | 162 V(2) \ |
| 163 V(3) \ | 163 V(3) \ |
| 164 V(4) \ | 164 V(4) \ |
| 165 V(5) \ | 165 V(5) \ |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 } else { | 731 } else { |
| 732 UNREACHABLE(); | 732 UNREACHABLE(); |
| 733 return nullptr; | 733 return nullptr; |
| 734 } | 734 } |
| 735 } | 735 } |
| 736 | 736 |
| 737 | 737 |
| 738 } // namespace compiler | 738 } // namespace compiler |
| 739 } // namespace internal | 739 } // namespace internal |
| 740 } // namespace v8 | 740 } // namespace v8 |
| OLD | NEW |