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_SPECIALIZATION_H_ | 5 #ifndef V8_COMPILER_JS_GLOBAL_SPECIALIZATION_H_ |
6 #define V8_COMPILER_JS_GLOBAL_SPECIALIZATION_H_ | 6 #define V8_COMPILER_JS_GLOBAL_SPECIALIZATION_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 #include "src/compiler/simplified-operator.h" | 10 #include "src/compiler/simplified-operator.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 struct ScriptContextTableLookupResult; | 56 struct ScriptContextTableLookupResult; |
57 bool LookupInScriptContextTable(Handle<Name> name, | 57 bool LookupInScriptContextTable(Handle<Name> name, |
58 ScriptContextTableLookupResult* result); | 58 ScriptContextTableLookupResult* result); |
59 | 59 |
60 Graph* graph() const; | 60 Graph* graph() const; |
61 JSGraph* jsgraph() const { return jsgraph_; } | 61 JSGraph* jsgraph() const { return jsgraph_; } |
62 Isolate* isolate() const; | 62 Isolate* isolate() const; |
63 CommonOperatorBuilder* common() const; | 63 CommonOperatorBuilder* common() const; |
64 JSOperatorBuilder* javascript() const; | 64 JSOperatorBuilder* javascript() const; |
65 SimplifiedOperatorBuilder* simplified() { return &simplified_; } | 65 SimplifiedOperatorBuilder* simplified() const; |
66 Flags flags() const { return flags_; } | 66 Flags flags() const { return flags_; } |
67 Handle<GlobalObject> global_object() const { return global_object_; } | 67 Handle<GlobalObject> global_object() const { return global_object_; } |
68 CompilationDependencies* dependencies() const { return dependencies_; } | 68 CompilationDependencies* dependencies() const { return dependencies_; } |
69 | 69 |
70 JSGraph* const jsgraph_; | 70 JSGraph* const jsgraph_; |
71 Flags const flags_; | 71 Flags const flags_; |
72 Handle<GlobalObject> global_object_; | 72 Handle<GlobalObject> global_object_; |
73 CompilationDependencies* const dependencies_; | 73 CompilationDependencies* const dependencies_; |
74 SimplifiedOperatorBuilder simplified_; | |
75 | 74 |
76 DISALLOW_COPY_AND_ASSIGN(JSGlobalSpecialization); | 75 DISALLOW_COPY_AND_ASSIGN(JSGlobalSpecialization); |
77 }; | 76 }; |
78 | 77 |
79 DEFINE_OPERATORS_FOR_FLAGS(JSGlobalSpecialization::Flags) | 78 DEFINE_OPERATORS_FOR_FLAGS(JSGlobalSpecialization::Flags) |
80 | 79 |
81 } // namespace compiler | 80 } // namespace compiler |
82 } // namespace internal | 81 } // namespace internal |
83 } // namespace v8 | 82 } // namespace v8 |
84 | 83 |
85 #endif // V8_COMPILER_JS_GLOBAL_SPECIALIZATION_H_ | 84 #endif // V8_COMPILER_JS_GLOBAL_SPECIALIZATION_H_ |
OLD | NEW |