Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index 7ced8e67b261d83606059dbc4192dbdb6d4ada4a..321cdd004caf509d7d1646de2e7c6d017ede69f3 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -365,9 +365,9 @@ class AstGraphBuilderWithPositions final : public AstGraphBuilder { |
source_positions_(source_positions), |
start_position_(info->shared_info()->start_position()) {} |
- bool CreateGraph(bool constant_context, bool stack_check) { |
+ bool CreateGraph(bool stack_check) { |
SourcePositionTable::Scope pos_scope(source_positions_, start_position_); |
- return AstGraphBuilder::CreateGraph(constant_context, stack_check); |
+ return AstGraphBuilder::CreateGraph(stack_check); |
} |
#define DEF_VISIT(type) \ |
@@ -474,12 +474,12 @@ struct LoopAssignmentAnalysisPhase { |
struct GraphBuilderPhase { |
static const char* phase_name() { return "graph builder"; } |
- void Run(PipelineData* data, Zone* temp_zone, bool constant_context) { |
+ void Run(PipelineData* data, Zone* temp_zone) { |
AstGraphBuilderWithPositions graph_builder( |
temp_zone, data->info(), data->jsgraph(), data->loop_assignment(), |
data->js_type_feedback(), data->source_positions()); |
bool stack_check = !data->info()->IsStub(); |
- if (!graph_builder.CreateGraph(constant_context, stack_check)) { |
+ if (!graph_builder.CreateGraph(stack_check)) { |
data->set_compilation_failed(); |
} |
} |
@@ -495,7 +495,9 @@ struct InliningPhase { |
data->common()); |
CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), |
data->common(), data->machine()); |
- JSContextSpecializer context_specializer(&graph_reducer, data->jsgraph()); |
+ JSContextSpecializer context_specializer( |
+ &graph_reducer, data->jsgraph(), |
+ data->info()->num_parameters_including_this(), data->info()->context()); |
JSInliner inliner(&graph_reducer, data->info()->is_inlining_enabled() |
? JSInliner::kGeneralInlining |
: JSInliner::kRestrictedInlining, |
@@ -1031,7 +1033,7 @@ Handle<Code> Pipeline::GenerateCode() { |
Run<LoopAssignmentAnalysisPhase>(); |
} |
- Run<GraphBuilderPhase>(info()->is_context_specializing()); |
+ Run<GraphBuilderPhase>(); |
if (data.compilation_failed()) return Handle<Code>::null(); |
RunPrintAndVerify("Initial untyped", true); |