OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/machine-type.h" | 8 #include "src/compiler/machine-type.h" |
9 #include "src/unique.h" | 9 #include "src/unique.h" |
10 | 10 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace internal { | 12 namespace internal { |
13 | 13 |
14 // Forward declarations. | 14 // Forward declarations. |
15 class ExternalReference; | 15 class ExternalReference; |
16 | 16 |
17 | 17 |
18 namespace compiler { | 18 namespace compiler { |
19 | 19 |
20 // Forward declarations. | 20 // Forward declarations. |
21 class CallDescriptor; | 21 class CallDescriptor; |
22 struct CommonOperatorBuilderImpl; | 22 struct CommonOperatorGlobalCache; |
23 class Operator; | 23 class Operator; |
24 | 24 |
25 | 25 |
26 // Prediction hint for branches. | 26 // Prediction hint for branches. |
27 enum class BranchHint : uint8_t { kNone, kTrue, kFalse }; | 27 enum class BranchHint : uint8_t { kNone, kTrue, kFalse }; |
28 | 28 |
29 inline size_t hash_value(BranchHint hint) { return static_cast<size_t>(hint); } | 29 inline size_t hash_value(BranchHint hint) { return static_cast<size_t>(hint); } |
30 | 30 |
31 std::ostream& operator<<(std::ostream&, BranchHint); | 31 std::ostream& operator<<(std::ostream&, BranchHint); |
32 | 32 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 const Operator* FrameState( | 165 const Operator* FrameState( |
166 FrameStateType type, BailoutId bailout_id, | 166 FrameStateType type, BailoutId bailout_id, |
167 OutputFrameStateCombine state_combine, | 167 OutputFrameStateCombine state_combine, |
168 MaybeHandle<JSFunction> jsfunction = MaybeHandle<JSFunction>()); | 168 MaybeHandle<JSFunction> jsfunction = MaybeHandle<JSFunction>()); |
169 const Operator* Call(const CallDescriptor* descriptor); | 169 const Operator* Call(const CallDescriptor* descriptor); |
170 const Operator* Projection(size_t index); | 170 const Operator* Projection(size_t index); |
171 | 171 |
172 private: | 172 private: |
173 Zone* zone() const { return zone_; } | 173 Zone* zone() const { return zone_; } |
174 | 174 |
175 const CommonOperatorBuilderImpl& impl_; | 175 const CommonOperatorGlobalCache& cache_; |
176 Zone* const zone_; | 176 Zone* const zone_; |
177 }; | 177 }; |
178 | 178 |
179 } // namespace compiler | 179 } // namespace compiler |
180 } // namespace internal | 180 } // namespace internal |
181 } // namespace v8 | 181 } // namespace v8 |
182 | 182 |
183 #endif // V8_COMPILER_COMMON_OPERATOR_H_ | 183 #endif // V8_COMPILER_COMMON_OPERATOR_H_ |
OLD | NEW |