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 #ifndef V8_COMPILER_COMMON_OPERATOR_H_ | 5 #ifndef V8_COMPILER_COMMON_OPERATOR_H_ |
6 #define V8_COMPILER_COMMON_OPERATOR_H_ | 6 #define V8_COMPILER_COMMON_OPERATOR_H_ |
7 | 7 |
8 #include "src/compiler/frame-states.h" | 8 #include "src/compiler/frame-states.h" |
9 #include "src/compiler/machine-type.h" | 9 #include "src/compiler/machine-type.h" |
10 #include "src/unique.h" | 10 #include "src/unique.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 const ParameterInfo& ParameterInfoOf(const Operator* const); | 82 const ParameterInfo& ParameterInfoOf(const Operator* const); |
83 | 83 |
84 | 84 |
85 // Interface for building common operators that can be used at any level of IR, | 85 // Interface for building common operators that can be used at any level of IR, |
86 // including JavaScript, mid-level, and low-level. | 86 // including JavaScript, mid-level, and low-level. |
87 class CommonOperatorBuilder final : public ZoneObject { | 87 class CommonOperatorBuilder final : public ZoneObject { |
88 public: | 88 public: |
89 explicit CommonOperatorBuilder(Zone* zone); | 89 explicit CommonOperatorBuilder(Zone* zone); |
90 | 90 |
91 const Operator* Dead(); | 91 const Operator* Dead(); |
92 const Operator* End(); | 92 const Operator* End(size_t control_input_count); |
93 const Operator* Branch(BranchHint = BranchHint::kNone); | 93 const Operator* Branch(BranchHint = BranchHint::kNone); |
94 const Operator* IfTrue(); | 94 const Operator* IfTrue(); |
95 const Operator* IfFalse(); | 95 const Operator* IfFalse(); |
96 const Operator* IfSuccess(); | 96 const Operator* IfSuccess(); |
97 const Operator* IfException(); | 97 const Operator* IfException(); |
98 const Operator* Switch(size_t control_output_count); | 98 const Operator* Switch(size_t control_output_count); |
99 const Operator* IfValue(int32_t value); | 99 const Operator* IfValue(int32_t value); |
100 const Operator* IfDefault(); | 100 const Operator* IfDefault(); |
101 const Operator* Throw(); | 101 const Operator* Throw(); |
102 const Operator* Deoptimize(); | 102 const Operator* Deoptimize(); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 Zone* const zone_; | 145 Zone* const zone_; |
146 | 146 |
147 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); | 147 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); |
148 }; | 148 }; |
149 | 149 |
150 } // namespace compiler | 150 } // namespace compiler |
151 } // namespace internal | 151 } // namespace internal |
152 } // namespace v8 | 152 } // namespace v8 |
153 | 153 |
154 #endif // V8_COMPILER_COMMON_OPERATOR_H_ | 154 #endif // V8_COMPILER_COMMON_OPERATOR_H_ |
OLD | NEW |