Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: src/compiler/pipeline.cc

Issue 797903003: [turbofan] Various cleanups. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/pipeline.h" 5 #include "src/compiler/pipeline.h"
6 6
7 #include <fstream> // NOLINT(readability/streams) 7 #include <fstream> // NOLINT(readability/streams)
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/base/platform/elapsed-timer.h" 10 #include "src/base/platform/elapsed-timer.h"
11 #include "src/compiler/ast-graph-builder.h" 11 #include "src/compiler/ast-graph-builder.h"
12 #include "src/compiler/ast-loop-assignment-analyzer.h" 12 #include "src/compiler/ast-loop-assignment-analyzer.h"
13 #include "src/compiler/basic-block-instrumentor.h" 13 #include "src/compiler/basic-block-instrumentor.h"
14 #include "src/compiler/change-lowering.h" 14 #include "src/compiler/change-lowering.h"
15 #include "src/compiler/code-generator.h" 15 #include "src/compiler/code-generator.h"
16 #include "src/compiler/control-reducer.h" 16 #include "src/compiler/control-reducer.h"
17 #include "src/compiler/graph-replay.h" 17 #include "src/compiler/graph-replay.h"
18 #include "src/compiler/graph-visualizer.h" 18 #include "src/compiler/graph-visualizer.h"
19 #include "src/compiler/instruction.h" 19 #include "src/compiler/instruction.h"
20 #include "src/compiler/instruction-selector.h" 20 #include "src/compiler/instruction-selector.h"
21 #include "src/compiler/js-builtin-reducer.h"
21 #include "src/compiler/js-context-specialization.h" 22 #include "src/compiler/js-context-specialization.h"
22 #include "src/compiler/js-generic-lowering.h" 23 #include "src/compiler/js-generic-lowering.h"
23 #include "src/compiler/js-inlining.h" 24 #include "src/compiler/js-inlining.h"
24 #include "src/compiler/js-typed-lowering.h" 25 #include "src/compiler/js-typed-lowering.h"
25 #include "src/compiler/jump-threading.h" 26 #include "src/compiler/jump-threading.h"
26 #include "src/compiler/load-elimination.h" 27 #include "src/compiler/load-elimination.h"
27 #include "src/compiler/machine-operator-reducer.h" 28 #include "src/compiler/machine-operator-reducer.h"
28 #include "src/compiler/move-optimizer.h" 29 #include "src/compiler/move-optimizer.h"
29 #include "src/compiler/pipeline-statistics.h" 30 #include "src/compiler/pipeline-statistics.h"
30 #include "src/compiler/register-allocator.h" 31 #include "src/compiler/register-allocator.h"
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 411
411 412
412 struct TypedLoweringPhase { 413 struct TypedLoweringPhase {
413 static const char* phase_name() { return "typed lowering"; } 414 static const char* phase_name() { return "typed lowering"; }
414 415
415 void Run(PipelineData* data, Zone* temp_zone) { 416 void Run(PipelineData* data, Zone* temp_zone) {
416 SourcePositionTable::Scope pos(data->source_positions(), 417 SourcePositionTable::Scope pos(data->source_positions(),
417 SourcePosition::Unknown()); 418 SourcePosition::Unknown());
418 ValueNumberingReducer vn_reducer(temp_zone); 419 ValueNumberingReducer vn_reducer(temp_zone);
419 LoadElimination load_elimination; 420 LoadElimination load_elimination;
420 JSTypedLowering lowering(data->jsgraph()); 421 JSBuiltinReducer builtin_reducer(data->jsgraph());
422 JSTypedLowering typed_lowering(data->jsgraph());
421 SimplifiedOperatorReducer simple_reducer(data->jsgraph()); 423 SimplifiedOperatorReducer simple_reducer(data->jsgraph());
422 GraphReducer graph_reducer(data->graph(), temp_zone); 424 GraphReducer graph_reducer(data->graph(), temp_zone);
423 graph_reducer.AddReducer(&vn_reducer); 425 graph_reducer.AddReducer(&vn_reducer);
424 graph_reducer.AddReducer(&lowering); 426 graph_reducer.AddReducer(&builtin_reducer);
427 graph_reducer.AddReducer(&typed_lowering);
425 graph_reducer.AddReducer(&load_elimination); 428 graph_reducer.AddReducer(&load_elimination);
426 graph_reducer.AddReducer(&simple_reducer); 429 graph_reducer.AddReducer(&simple_reducer);
427 graph_reducer.ReduceGraph(); 430 graph_reducer.ReduceGraph();
428 } 431 }
429 }; 432 };
430 433
431 434
432 struct SimplifiedLoweringPhase { 435 struct SimplifiedLoweringPhase {
433 static const char* phase_name() { return "simplified lowering"; } 436 static const char* phase_name() { return "simplified lowering"; }
434 437
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 } 1075 }
1073 1076
1074 1077
1075 void Pipeline::TearDown() { 1078 void Pipeline::TearDown() {
1076 InstructionOperand::TearDownCaches(); 1079 InstructionOperand::TearDownCaches();
1077 } 1080 }
1078 1081
1079 } // namespace compiler 1082 } // namespace compiler
1080 } // namespace internal 1083 } // namespace internal
1081 } // namespace v8 1084 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698