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/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/compiler/frame-states.h" | 9 #include "src/compiler/frame-states.h" |
10 #include "src/machine-type.h" | 10 #include "src/machine-type.h" |
11 #include "src/zone-containers.h" | 11 #include "src/zone-containers.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 | |
16 // Forward declarations. | |
17 class Type; | |
18 | |
19 namespace compiler { | 15 namespace compiler { |
20 | 16 |
21 // Forward declarations. | 17 // Forward declarations. |
22 class CallDescriptor; | 18 class CallDescriptor; |
23 struct CommonOperatorGlobalCache; | 19 struct CommonOperatorGlobalCache; |
24 class Operator; | 20 class Operator; |
25 | 21 |
26 | 22 |
27 // Prediction hint for branches. | 23 // Prediction hint for branches. |
28 enum class BranchHint : uint8_t { kNone, kTrue, kFalse }; | 24 enum class BranchHint : uint8_t { kNone, kTrue, kFalse }; |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 const Operator* RelocatableInt32Constant(int32_t value, | 180 const Operator* RelocatableInt32Constant(int32_t value, |
185 RelocInfo::Mode rmode); | 181 RelocInfo::Mode rmode); |
186 const Operator* RelocatableInt64Constant(int64_t value, | 182 const Operator* RelocatableInt64Constant(int64_t value, |
187 RelocInfo::Mode rmode); | 183 RelocInfo::Mode rmode); |
188 | 184 |
189 const Operator* Select(MachineRepresentation, BranchHint = BranchHint::kNone); | 185 const Operator* Select(MachineRepresentation, BranchHint = BranchHint::kNone); |
190 const Operator* Phi(MachineRepresentation representation, | 186 const Operator* Phi(MachineRepresentation representation, |
191 int value_input_count); | 187 int value_input_count); |
192 const Operator* EffectPhi(int effect_input_count); | 188 const Operator* EffectPhi(int effect_input_count); |
193 const Operator* CheckPoint(); | 189 const Operator* CheckPoint(); |
194 const Operator* Guard(Type* type); | |
195 const Operator* BeginRegion(); | 190 const Operator* BeginRegion(); |
196 const Operator* FinishRegion(); | 191 const Operator* FinishRegion(); |
197 const Operator* StateValues(int arguments); | 192 const Operator* StateValues(int arguments); |
198 const Operator* ObjectState(int pointer_slots, int id); | 193 const Operator* ObjectState(int pointer_slots, int id); |
199 const Operator* TypedStateValues(const ZoneVector<MachineType>* types); | 194 const Operator* TypedStateValues(const ZoneVector<MachineType>* types); |
200 const Operator* FrameState(BailoutId bailout_id, | 195 const Operator* FrameState(BailoutId bailout_id, |
201 OutputFrameStateCombine state_combine, | 196 OutputFrameStateCombine state_combine, |
202 const FrameStateFunctionInfo* function_info); | 197 const FrameStateFunctionInfo* function_info); |
203 const Operator* Call(const CallDescriptor* descriptor); | 198 const Operator* Call(const CallDescriptor* descriptor); |
204 const Operator* TailCall(const CallDescriptor* descriptor); | 199 const Operator* TailCall(const CallDescriptor* descriptor); |
(...skipping 15 matching lines...) Expand all Loading... |
220 Zone* const zone_; | 215 Zone* const zone_; |
221 | 216 |
222 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); | 217 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); |
223 }; | 218 }; |
224 | 219 |
225 } // namespace compiler | 220 } // namespace compiler |
226 } // namespace internal | 221 } // namespace internal |
227 } // namespace v8 | 222 } // namespace v8 |
228 | 223 |
229 #endif // V8_COMPILER_COMMON_OPERATOR_H_ | 224 #endif // V8_COMPILER_COMMON_OPERATOR_H_ |
OLD | NEW |