Index: src/compiler/js-call-reducer.h |
diff --git a/src/compiler/js-call-reducer.h b/src/compiler/js-call-reducer.h |
index e39433a020c024fbba5c7070e5fce31e90959276..e31d9d79fdbea9e882f3ce2bc87f399643e495b4 100644 |
--- a/src/compiler/js-call-reducer.h |
+++ b/src/compiler/js-call-reducer.h |
@@ -10,6 +10,11 @@ |
namespace v8 { |
namespace internal { |
+ |
+// Forward declarations. |
+class CompilationDependencies; |
+class Factory; |
+ |
namespace compiler { |
// Forward declarations. |
@@ -30,11 +35,13 @@ class JSCallReducer final : public AdvancedReducer { |
typedef base::Flags<Flag> Flags; |
JSCallReducer(Editor* editor, JSGraph* jsgraph, Flags flags, |
- Handle<Context> native_context) |
+ Handle<Context> native_context, |
+ CompilationDependencies* dependencies) |
: AdvancedReducer(editor), |
jsgraph_(jsgraph), |
flags_(flags), |
- native_context_(native_context) {} |
+ native_context_(native_context), |
+ dependencies_(dependencies) {} |
Reduction Reduce(Node* node) final; |
@@ -49,6 +56,7 @@ class JSCallReducer final : public AdvancedReducer { |
Reduction ReduceFunctionPrototypeHasInstance(Node* node); |
Reduction ReduceObjectPrototypeGetProto(Node* node); |
Reduction ReduceJSCallConstruct(Node* node); |
+ Reduction ReduceJSCallConstructWithSpread(Node* node); |
Reduction ReduceJSCallFunction(Node* node); |
enum HolderLookup { kHolderNotFound, kHolderIsReceiver, kHolderFound }; |
@@ -61,14 +69,17 @@ class JSCallReducer final : public AdvancedReducer { |
Flags flags() const { return flags_; } |
JSGraph* jsgraph() const { return jsgraph_; } |
Isolate* isolate() const; |
+ Factory* factory() const; |
Handle<Context> native_context() const { return native_context_; } |
CommonOperatorBuilder* common() const; |
JSOperatorBuilder* javascript() const; |
SimplifiedOperatorBuilder* simplified() const; |
+ CompilationDependencies* dependencies() const { return dependencies_; } |
JSGraph* const jsgraph_; |
Flags const flags_; |
Handle<Context> const native_context_; |
+ CompilationDependencies* const dependencies_; |
}; |
DEFINE_OPERATORS_FOR_FLAGS(JSCallReducer::Flags) |