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_JS_BUILTIN_REDUCER_H_ | 5 #ifndef V8_COMPILER_JS_BUILTIN_REDUCER_H_ |
6 #define V8_COMPILER_JS_BUILTIN_REDUCER_H_ | 6 #define V8_COMPILER_JS_BUILTIN_REDUCER_H_ |
7 | 7 |
| 8 #include "src/base/compiler-specific.h" |
8 #include "src/base/flags.h" | 9 #include "src/base/flags.h" |
9 #include "src/compiler/graph-reducer.h" | 10 #include "src/compiler/graph-reducer.h" |
| 11 #include "src/globals.h" |
10 | 12 |
11 namespace v8 { | 13 namespace v8 { |
12 namespace internal { | 14 namespace internal { |
13 | 15 |
14 // Forward declarations. | 16 // Forward declarations. |
15 class CompilationDependencies; | 17 class CompilationDependencies; |
16 class Factory; | 18 class Factory; |
17 | 19 |
18 namespace compiler { | 20 namespace compiler { |
19 | 21 |
20 // Forward declarations. | 22 // Forward declarations. |
21 class CommonOperatorBuilder; | 23 class CommonOperatorBuilder; |
22 struct FieldAccess; | 24 struct FieldAccess; |
23 class JSGraph; | 25 class JSGraph; |
24 class JSOperatorBuilder; | 26 class JSOperatorBuilder; |
25 class SimplifiedOperatorBuilder; | 27 class SimplifiedOperatorBuilder; |
26 class TypeCache; | 28 class TypeCache; |
27 | 29 |
28 class JSBuiltinReducer final : public AdvancedReducer { | 30 class V8_EXPORT_PRIVATE JSBuiltinReducer final |
| 31 : public NON_EXPORTED_BASE(AdvancedReducer) { |
29 public: | 32 public: |
30 // Flags that control the mode of operation. | 33 // Flags that control the mode of operation. |
31 enum Flag { | 34 enum Flag { |
32 kNoFlags = 0u, | 35 kNoFlags = 0u, |
33 kDeoptimizationEnabled = 1u << 0, | 36 kDeoptimizationEnabled = 1u << 0, |
34 }; | 37 }; |
35 typedef base::Flags<Flag> Flags; | 38 typedef base::Flags<Flag> Flags; |
36 | 39 |
37 JSBuiltinReducer(Editor* editor, JSGraph* jsgraph, Flags flags, | 40 JSBuiltinReducer(Editor* editor, JSGraph* jsgraph, Flags flags, |
38 CompilationDependencies* dependencies); | 41 CompilationDependencies* dependencies); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 TypeCache const& type_cache_; | 114 TypeCache const& type_cache_; |
112 }; | 115 }; |
113 | 116 |
114 DEFINE_OPERATORS_FOR_FLAGS(JSBuiltinReducer::Flags) | 117 DEFINE_OPERATORS_FOR_FLAGS(JSBuiltinReducer::Flags) |
115 | 118 |
116 } // namespace compiler | 119 } // namespace compiler |
117 } // namespace internal | 120 } // namespace internal |
118 } // namespace v8 | 121 } // namespace v8 |
119 | 122 |
120 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ | 123 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ |
OLD | NEW |