Index: src/compiler/js-context-specialization.h |
diff --git a/src/compiler/js-context-specialization.h b/src/compiler/js-context-specialization.h |
index b707755fc7cb2b9d14f80e66106e2161dbdd347d..520a3cf80b9e60db4c2a4f5ed1c731032e74eeac 100644 |
--- a/src/compiler/js-context-specialization.h |
+++ b/src/compiler/js-context-specialization.h |
@@ -9,6 +9,8 @@ |
#include "src/compiler/js-graph.h" |
#include "src/contexts.h" |
+#include "src/compiler.h" |
+ |
namespace v8 { |
namespace internal { |
namespace compiler { |
@@ -17,8 +19,8 @@ namespace compiler { |
// some {LoadContext} nodes or strength reducing some {StoreContext} nodes. |
class JSContextSpecializer : public Reducer { |
public: |
- JSContextSpecializer(CompilationInfo* info, JSGraph* jsgraph, Node* context) |
- : info_(info), jsgraph_(jsgraph), context_(context) {} |
+ JSContextSpecializer(Handle<Context> ctx, JSGraph* jsgraph, Node* context) |
+ : ctx_(ctx), jsgraph_(jsgraph), context_(context) {} |
Reduction Reduce(Node* node) OVERRIDE; |
@@ -27,7 +29,7 @@ class JSContextSpecializer : public Reducer { |
Reduction ReduceJSStoreContext(Node* node); |
private: |
- CompilationInfo* info_; |
+ Handle<Context> ctx_; |
JSGraph* jsgraph_; |
Node* context_; |
}; |