[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}
This commit is contained in:
Benedikt Meurer 2014-12-02 13:45:08 +01:00
parent 0a020550c6
commit 5a37253b1a

View File

@ -391,7 +391,7 @@ struct TypedLoweringPhase {
void Run(PipelineData* data, Zone* temp_zone) { void Run(PipelineData* data, Zone* temp_zone) {
SourcePositionTable::Scope pos(data->source_positions(), SourcePositionTable::Scope pos(data->source_positions(),
SourcePosition::Unknown()); SourcePosition::Unknown());
ValueNumberingReducer vn_reducer(data->graph_zone()); ValueNumberingReducer vn_reducer(temp_zone);
JSTypedLowering lowering(data->jsgraph()); JSTypedLowering lowering(data->jsgraph());
SimplifiedOperatorReducer simple_reducer(data->jsgraph()); SimplifiedOperatorReducer simple_reducer(data->jsgraph());
GraphReducer graph_reducer(data->graph(), temp_zone); GraphReducer graph_reducer(data->graph(), temp_zone);
@ -411,7 +411,7 @@ struct SimplifiedLoweringPhase {
SourcePosition::Unknown()); SourcePosition::Unknown());
SimplifiedLowering lowering(data->jsgraph()); SimplifiedLowering lowering(data->jsgraph());
lowering.LowerAllNodes(); lowering.LowerAllNodes();
ValueNumberingReducer vn_reducer(data->graph_zone()); ValueNumberingReducer vn_reducer(temp_zone);
SimplifiedOperatorReducer simple_reducer(data->jsgraph()); SimplifiedOperatorReducer simple_reducer(data->jsgraph());
GraphReducer graph_reducer(data->graph(), temp_zone); GraphReducer graph_reducer(data->graph(), temp_zone);
graph_reducer.AddReducer(&vn_reducer); graph_reducer.AddReducer(&vn_reducer);
@ -428,7 +428,7 @@ struct ChangeLoweringPhase {
SourcePositionTable::Scope pos(data->source_positions(), SourcePositionTable::Scope pos(data->source_positions(),
SourcePosition::Unknown()); SourcePosition::Unknown());
Linkage linkage(data->graph_zone(), data->info()); Linkage linkage(data->graph_zone(), data->info());
ValueNumberingReducer vn_reducer(data->graph_zone()); ValueNumberingReducer vn_reducer(temp_zone);
SimplifiedOperatorReducer simple_reducer(data->jsgraph()); SimplifiedOperatorReducer simple_reducer(data->jsgraph());
ChangeLowering lowering(data->jsgraph(), &linkage); ChangeLowering lowering(data->jsgraph(), &linkage);
MachineOperatorReducer mach_reducer(data->jsgraph()); MachineOperatorReducer mach_reducer(data->jsgraph());