Index: src/compiler/js-global-object-specialization.h |
diff --git a/src/compiler/js-global-object-specialization.h b/src/compiler/js-global-object-specialization.h |
index a6c511e9e5f039a7aa3a3be87fec73a6b9967fd3..50bdd80a88cd613047b739117fd1edd1af643a71 100644 |
--- a/src/compiler/js-global-object-specialization.h |
+++ b/src/compiler/js-global-object-specialization.h |
@@ -28,7 +28,7 @@ class TypeCache; |
class JSGlobalObjectSpecialization final : public AdvancedReducer { |
public: |
JSGlobalObjectSpecialization(Editor* editor, JSGraph* jsgraph, |
- MaybeHandle<Context> native_context, |
+ Handle<JSGlobalObject> global_object, |
CompilationDependencies* dependencies); |
Reduction Reduce(Node* node) final; |
@@ -37,12 +37,8 @@ class JSGlobalObjectSpecialization final : public AdvancedReducer { |
Reduction ReduceJSLoadGlobal(Node* node); |
Reduction ReduceJSStoreGlobal(Node* node); |
- // Retrieve the global object from the given {node} if known. |
- MaybeHandle<JSGlobalObject> GetGlobalObject(Node* node); |
- |
struct ScriptContextTableLookupResult; |
- bool LookupInScriptContextTable(Handle<JSGlobalObject> global_object, |
- Handle<Name> name, |
+ bool LookupInScriptContextTable(Handle<Name> name, |
ScriptContextTableLookupResult* result); |
Graph* graph() const; |
@@ -51,11 +47,11 @@ class JSGlobalObjectSpecialization final : public AdvancedReducer { |
CommonOperatorBuilder* common() const; |
JSOperatorBuilder* javascript() const; |
SimplifiedOperatorBuilder* simplified() const; |
- MaybeHandle<Context> native_context() const { return native_context_; } |
+ Handle<JSGlobalObject> global_object() const { return global_object_; } |
CompilationDependencies* dependencies() const { return dependencies_; } |
JSGraph* const jsgraph_; |
- MaybeHandle<Context> native_context_; |
+ Handle<JSGlobalObject> const global_object_; |
CompilationDependencies* const dependencies_; |
TypeCache const& type_cache_; |