| Index: src/compiler/pipeline.cc
|
| diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
|
| index 281c9994b70dc2ebc118e9339c0284d02a1a4b65..82be26821b30c92d94515393a013ef90945dfa1d 100644
|
| --- a/src/compiler/pipeline.cc
|
| +++ b/src/compiler/pipeline.cc
|
| @@ -352,14 +352,16 @@ struct GraphBuilderPhase {
|
|
|
|
|
| struct ContextSpecializerPhase {
|
| - static const char* phase_name() { return nullptr; }
|
| + static const char* phase_name() { return "context specializing"; }
|
|
|
| void Run(PipelineData* data, Zone* temp_zone) {
|
| SourcePositionTable::Scope pos(data->source_positions(),
|
| SourcePosition::Unknown());
|
| JSContextSpecializer spec(data->info(), data->jsgraph(),
|
| data->context_node());
|
| - spec.SpecializeToContext();
|
| + GraphReducer graph_reducer(data->graph(), temp_zone);
|
| + graph_reducer.AddReducer(&spec);
|
| + graph_reducer.ReduceGraph();
|
| }
|
| };
|
|
|
|
|