OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_TYPED_OPTIMIZATION_H_ | 5 #ifndef V8_COMPILER_TYPED_OPTIMIZATION_H_ |
6 #define V8_COMPILER_TYPED_OPTIMIZATION_H_ | 6 #define V8_COMPILER_TYPED_OPTIMIZATION_H_ |
7 | 7 |
8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
9 #include "src/compiler/graph-reducer.h" | 9 #include "src/compiler/graph-reducer.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 CompilationDependencies; | 15 class CompilationDependencies; |
16 class Factory; | 16 class Factory; |
17 class Isolate; | 17 class Isolate; |
18 class TypeCache; | |
19 | 18 |
20 namespace compiler { | 19 namespace compiler { |
21 | 20 |
22 // Forward declarations. | 21 // Forward declarations. |
23 class JSGraph; | 22 class JSGraph; |
24 class SimplifiedOperatorBuilder; | 23 class SimplifiedOperatorBuilder; |
| 24 class TypeCache; |
25 | 25 |
26 class TypedOptimization final : public AdvancedReducer { | 26 class TypedOptimization final : public AdvancedReducer { |
27 public: | 27 public: |
28 // Flags that control the mode of operation. | 28 // Flags that control the mode of operation. |
29 enum Flag { | 29 enum Flag { |
30 kNoFlags = 0u, | 30 kNoFlags = 0u, |
31 kDeoptimizationEnabled = 1u << 0, | 31 kDeoptimizationEnabled = 1u << 0, |
32 }; | 32 }; |
33 typedef base::Flags<Flag> Flags; | 33 typedef base::Flags<Flag> Flags; |
34 | 34 |
(...skipping 29 matching lines...) Expand all Loading... |
64 DISALLOW_COPY_AND_ASSIGN(TypedOptimization); | 64 DISALLOW_COPY_AND_ASSIGN(TypedOptimization); |
65 }; | 65 }; |
66 | 66 |
67 DEFINE_OPERATORS_FOR_FLAGS(TypedOptimization::Flags) | 67 DEFINE_OPERATORS_FOR_FLAGS(TypedOptimization::Flags) |
68 | 68 |
69 } // namespace compiler | 69 } // namespace compiler |
70 } // namespace internal | 70 } // namespace internal |
71 } // namespace v8 | 71 } // namespace v8 |
72 | 72 |
73 #endif // V8_COMPILER_TYPED_OPTIMIZATION_H_ | 73 #endif // V8_COMPILER_TYPED_OPTIMIZATION_H_ |
OLD | NEW |