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

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

Issue 872363002: [turbofan] Add new JSIntrinsicsLowering reducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 months 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-intrinsic-lowering.cc ('k') | src/compiler/simplified-lowering.cc » ('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/bootstrapper.h" // TODO(mstarzinger): Only temporary. 11 #include "src/bootstrapper.h" // TODO(mstarzinger): Only temporary.
12 #include "src/compiler/ast-graph-builder.h" 12 #include "src/compiler/ast-graph-builder.h"
13 #include "src/compiler/ast-loop-assignment-analyzer.h" 13 #include "src/compiler/ast-loop-assignment-analyzer.h"
14 #include "src/compiler/basic-block-instrumentor.h" 14 #include "src/compiler/basic-block-instrumentor.h"
15 #include "src/compiler/change-lowering.h" 15 #include "src/compiler/change-lowering.h"
16 #include "src/compiler/code-generator.h" 16 #include "src/compiler/code-generator.h"
17 #include "src/compiler/common-operator-reducer.h" 17 #include "src/compiler/common-operator-reducer.h"
18 #include "src/compiler/control-reducer.h" 18 #include "src/compiler/control-reducer.h"
19 #include "src/compiler/graph-replay.h" 19 #include "src/compiler/graph-replay.h"
20 #include "src/compiler/graph-visualizer.h" 20 #include "src/compiler/graph-visualizer.h"
21 #include "src/compiler/instruction.h" 21 #include "src/compiler/instruction.h"
22 #include "src/compiler/instruction-selector.h" 22 #include "src/compiler/instruction-selector.h"
23 #include "src/compiler/js-builtin-reducer.h" 23 #include "src/compiler/js-builtin-reducer.h"
24 #include "src/compiler/js-context-specialization.h" 24 #include "src/compiler/js-context-specialization.h"
25 #include "src/compiler/js-generic-lowering.h" 25 #include "src/compiler/js-generic-lowering.h"
26 #include "src/compiler/js-inlining.h" 26 #include "src/compiler/js-inlining.h"
27 #include "src/compiler/js-intrinsic-lowering.h"
27 #include "src/compiler/js-typed-lowering.h" 28 #include "src/compiler/js-typed-lowering.h"
28 #include "src/compiler/jump-threading.h" 29 #include "src/compiler/jump-threading.h"
29 #include "src/compiler/load-elimination.h" 30 #include "src/compiler/load-elimination.h"
30 #include "src/compiler/loop-analysis.h" 31 #include "src/compiler/loop-analysis.h"
31 #include "src/compiler/loop-peeling.h" 32 #include "src/compiler/loop-peeling.h"
32 #include "src/compiler/machine-operator-reducer.h" 33 #include "src/compiler/machine-operator-reducer.h"
33 #include "src/compiler/move-optimizer.h" 34 #include "src/compiler/move-optimizer.h"
34 #include "src/compiler/osr.h" 35 #include "src/compiler/osr.h"
35 #include "src/compiler/pipeline-statistics.h" 36 #include "src/compiler/pipeline-statistics.h"
36 #include "src/compiler/register-allocator.h" 37 #include "src/compiler/register-allocator.h"
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 struct TypedLoweringPhase { 422 struct TypedLoweringPhase {
422 static const char* phase_name() { return "typed lowering"; } 423 static const char* phase_name() { return "typed lowering"; }
423 424
424 void Run(PipelineData* data, Zone* temp_zone) { 425 void Run(PipelineData* data, Zone* temp_zone) {
425 SourcePositionTable::Scope pos(data->source_positions(), 426 SourcePositionTable::Scope pos(data->source_positions(),
426 SourcePosition::Unknown()); 427 SourcePosition::Unknown());
427 ValueNumberingReducer vn_reducer(temp_zone); 428 ValueNumberingReducer vn_reducer(temp_zone);
428 LoadElimination load_elimination; 429 LoadElimination load_elimination;
429 JSBuiltinReducer builtin_reducer(data->jsgraph()); 430 JSBuiltinReducer builtin_reducer(data->jsgraph());
430 JSTypedLowering typed_lowering(data->jsgraph(), temp_zone); 431 JSTypedLowering typed_lowering(data->jsgraph(), temp_zone);
432 JSIntrinsicLowering intrinsic_lowering(data->jsgraph());
431 SimplifiedOperatorReducer simple_reducer(data->jsgraph()); 433 SimplifiedOperatorReducer simple_reducer(data->jsgraph());
432 CommonOperatorReducer common_reducer; 434 CommonOperatorReducer common_reducer;
433 GraphReducer graph_reducer(data->graph(), temp_zone); 435 GraphReducer graph_reducer(data->graph(), temp_zone);
434 graph_reducer.AddReducer(&vn_reducer); 436 graph_reducer.AddReducer(&vn_reducer);
435 graph_reducer.AddReducer(&builtin_reducer); 437 graph_reducer.AddReducer(&builtin_reducer);
436 graph_reducer.AddReducer(&typed_lowering); 438 graph_reducer.AddReducer(&typed_lowering);
439 graph_reducer.AddReducer(&intrinsic_lowering);
437 graph_reducer.AddReducer(&load_elimination); 440 graph_reducer.AddReducer(&load_elimination);
438 graph_reducer.AddReducer(&simple_reducer); 441 graph_reducer.AddReducer(&simple_reducer);
439 graph_reducer.AddReducer(&common_reducer); 442 graph_reducer.AddReducer(&common_reducer);
440 graph_reducer.ReduceGraph(); 443 graph_reducer.ReduceGraph();
441 } 444 }
442 }; 445 };
443 446
444 447
445 struct SimplifiedLoweringPhase { 448 struct SimplifiedLoweringPhase {
446 static const char* phase_name() { return "simplified lowering"; } 449 static const char* phase_name() { return "simplified lowering"; }
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 } 1114 }
1112 1115
1113 1116
1114 void Pipeline::TearDown() { 1117 void Pipeline::TearDown() {
1115 InstructionOperand::TearDownCaches(); 1118 InstructionOperand::TearDownCaches();
1116 } 1119 }
1117 1120
1118 } // namespace compiler 1121 } // namespace compiler
1119 } // namespace internal 1122 } // namespace internal
1120 } // namespace v8 1123 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-intrinsic-lowering.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698