OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_GLOBAL_OBJECT_SPECIALIZATION_H_ | 5 #ifndef V8_COMPILER_JS_GLOBAL_OBJECT_SPECIALIZATION_H_ |
6 #define V8_COMPILER_JS_GLOBAL_OBJECT_SPECIALIZATION_H_ | 6 #define V8_COMPILER_JS_GLOBAL_OBJECT_SPECIALIZATION_H_ |
7 | 7 |
8 #include "src/compiler/graph-reducer.h" | 8 #include "src/compiler/graph-reducer.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 | 12 |
13 // Forward declarations. | 13 // Forward declarations. |
14 class CompilationDependencies; | 14 class CompilationDependencies; |
15 class TypeCache; | |
16 | |
17 | 15 |
18 namespace compiler { | 16 namespace compiler { |
19 | 17 |
20 // Forward declarations. | 18 // Forward declarations. |
21 class CommonOperatorBuilder; | 19 class CommonOperatorBuilder; |
22 class JSGraph; | 20 class JSGraph; |
23 class JSOperatorBuilder; | 21 class JSOperatorBuilder; |
24 class SimplifiedOperatorBuilder; | 22 class SimplifiedOperatorBuilder; |
25 | 23 class TypeCache; |
26 | 24 |
27 // Specializes a given JSGraph to a given global object, potentially constant | 25 // Specializes a given JSGraph to a given global object, potentially constant |
28 // folding some {JSLoadGlobal} nodes or strength reducing some {JSStoreGlobal} | 26 // folding some {JSLoadGlobal} nodes or strength reducing some {JSStoreGlobal} |
29 // nodes. | 27 // nodes. |
30 class JSGlobalObjectSpecialization final : public AdvancedReducer { | 28 class JSGlobalObjectSpecialization final : public AdvancedReducer { |
31 public: | 29 public: |
32 JSGlobalObjectSpecialization(Editor* editor, JSGraph* jsgraph, | 30 JSGlobalObjectSpecialization(Editor* editor, JSGraph* jsgraph, |
33 MaybeHandle<Context> native_context, | 31 MaybeHandle<Context> native_context, |
34 CompilationDependencies* dependencies); | 32 CompilationDependencies* dependencies); |
35 | 33 |
(...skipping 26 matching lines...) Expand all Loading... |
62 TypeCache const& type_cache_; | 60 TypeCache const& type_cache_; |
63 | 61 |
64 DISALLOW_COPY_AND_ASSIGN(JSGlobalObjectSpecialization); | 62 DISALLOW_COPY_AND_ASSIGN(JSGlobalObjectSpecialization); |
65 }; | 63 }; |
66 | 64 |
67 } // namespace compiler | 65 } // namespace compiler |
68 } // namespace internal | 66 } // namespace internal |
69 } // namespace v8 | 67 } // namespace v8 |
70 | 68 |
71 #endif // V8_COMPILER_JS_GLOBAL_OBJECT_SPECIALIZATION_H_ | 69 #endif // V8_COMPILER_JS_GLOBAL_OBJECT_SPECIALIZATION_H_ |
OLD | NEW |