From 5a37253b1ac93b246435bc4164b054a9f25368ad Mon Sep 17 00:00:00 2001 From: Benedikt Meurer Date: Tue, 2 Dec 2014 13:45:08 +0100 Subject: [PATCH] [turbofan] Use the temporary zone for the VN cache. R=dcarney@chromium.org Review URL: https://codereview.chromium.org/760403003 Cr-Commit-Position: refs/heads/master@{#25611} --- src/compiler/pipeline.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc index 82be26821b..caeab18b1f 100644 --- a/src/compiler/pipeline.cc +++ b/src/compiler/pipeline.cc @@ -391,7 +391,7 @@ struct TypedLoweringPhase { void Run(PipelineData* data, Zone* temp_zone) { SourcePositionTable::Scope pos(data->source_positions(), SourcePosition::Unknown()); - ValueNumberingReducer vn_reducer(data->graph_zone()); + ValueNumberingReducer vn_reducer(temp_zone); JSTypedLowering lowering(data->jsgraph()); SimplifiedOperatorReducer simple_reducer(data->jsgraph()); GraphReducer graph_reducer(data->graph(), temp_zone); @@ -411,7 +411,7 @@ struct SimplifiedLoweringPhase { SourcePosition::Unknown()); SimplifiedLowering lowering(data->jsgraph()); lowering.LowerAllNodes(); - ValueNumberingReducer vn_reducer(data->graph_zone()); + ValueNumberingReducer vn_reducer(temp_zone); SimplifiedOperatorReducer simple_reducer(data->jsgraph()); GraphReducer graph_reducer(data->graph(), temp_zone); graph_reducer.AddReducer(&vn_reducer); @@ -428,7 +428,7 @@ struct ChangeLoweringPhase { SourcePositionTable::Scope pos(data->source_positions(), SourcePosition::Unknown()); Linkage linkage(data->graph_zone(), data->info()); - ValueNumberingReducer vn_reducer(data->graph_zone()); + ValueNumberingReducer vn_reducer(temp_zone); SimplifiedOperatorReducer simple_reducer(data->jsgraph()); ChangeLowering lowering(data->jsgraph(), &linkage); MachineOperatorReducer mach_reducer(data->jsgraph());