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

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

Issue 2775423005: [turbofan] Remove the --print-turbo-replay flag. (Closed)
Patch Set: Actually remove the flag Created 3 years, 8 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/graph-replay.cc ('k') | src/flag-definitions.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 <memory> 8 #include <memory>
9 #include <sstream> 9 #include <sstream>
10 10
11 #include "src/base/adapters.h" 11 #include "src/base/adapters.h"
12 #include "src/base/platform/elapsed-timer.h" 12 #include "src/base/platform/elapsed-timer.h"
13 #include "src/compilation-info.h" 13 #include "src/compilation-info.h"
14 #include "src/compiler.h" 14 #include "src/compiler.h"
15 #include "src/compiler/ast-graph-builder.h" 15 #include "src/compiler/ast-graph-builder.h"
16 #include "src/compiler/ast-loop-assignment-analyzer.h" 16 #include "src/compiler/ast-loop-assignment-analyzer.h"
17 #include "src/compiler/basic-block-instrumentor.h" 17 #include "src/compiler/basic-block-instrumentor.h"
18 #include "src/compiler/branch-elimination.h" 18 #include "src/compiler/branch-elimination.h"
19 #include "src/compiler/bytecode-graph-builder.h" 19 #include "src/compiler/bytecode-graph-builder.h"
20 #include "src/compiler/checkpoint-elimination.h" 20 #include "src/compiler/checkpoint-elimination.h"
21 #include "src/compiler/code-generator.h" 21 #include "src/compiler/code-generator.h"
22 #include "src/compiler/common-operator-reducer.h" 22 #include "src/compiler/common-operator-reducer.h"
23 #include "src/compiler/control-flow-optimizer.h" 23 #include "src/compiler/control-flow-optimizer.h"
24 #include "src/compiler/dead-code-elimination.h" 24 #include "src/compiler/dead-code-elimination.h"
25 #include "src/compiler/effect-control-linearizer.h" 25 #include "src/compiler/effect-control-linearizer.h"
26 #include "src/compiler/escape-analysis-reducer.h" 26 #include "src/compiler/escape-analysis-reducer.h"
27 #include "src/compiler/escape-analysis.h" 27 #include "src/compiler/escape-analysis.h"
28 #include "src/compiler/frame-elider.h" 28 #include "src/compiler/frame-elider.h"
29 #include "src/compiler/graph-replay.h"
30 #include "src/compiler/graph-trimmer.h" 29 #include "src/compiler/graph-trimmer.h"
31 #include "src/compiler/graph-visualizer.h" 30 #include "src/compiler/graph-visualizer.h"
32 #include "src/compiler/instruction-selector.h" 31 #include "src/compiler/instruction-selector.h"
33 #include "src/compiler/instruction.h" 32 #include "src/compiler/instruction.h"
34 #include "src/compiler/js-builtin-reducer.h" 33 #include "src/compiler/js-builtin-reducer.h"
35 #include "src/compiler/js-call-reducer.h" 34 #include "src/compiler/js-call-reducer.h"
36 #include "src/compiler/js-context-specialization.h" 35 #include "src/compiler/js-context-specialization.h"
37 #include "src/compiler/js-create-lowering.h" 36 #include "src/compiler/js-create-lowering.h"
38 #include "src/compiler/js-frame-specialization.h" 37 #include "src/compiler/js-frame-specialization.h"
39 #include "src/compiler/js-generic-lowering.h" 38 #include "src/compiler/js-generic-lowering.h"
(...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1513 } 1512 }
1514 1513
1515 // Perform function context specialization and inlining (if enabled). 1514 // Perform function context specialization and inlining (if enabled).
1516 Run<InliningPhase>(); 1515 Run<InliningPhase>();
1517 RunPrintAndVerify("Inlined", true); 1516 RunPrintAndVerify("Inlined", true);
1518 1517
1519 // Remove dead->live edges from the graph. 1518 // Remove dead->live edges from the graph.
1520 Run<EarlyGraphTrimmingPhase>(); 1519 Run<EarlyGraphTrimmingPhase>();
1521 RunPrintAndVerify("Early trimmed", true); 1520 RunPrintAndVerify("Early trimmed", true);
1522 1521
1523 if (FLAG_print_turbo_replay) {
1524 // Print a replay of the initial graph.
1525 GraphReplayPrinter::PrintReplay(data->graph());
1526 }
1527
1528 // Run the type-sensitive lowerings and optimizations on the graph. 1522 // Run the type-sensitive lowerings and optimizations on the graph.
1529 { 1523 {
1530 // Determine the Typer operation flags. 1524 // Determine the Typer operation flags.
1531 Typer::Flags flags = Typer::kNoFlags; 1525 Typer::Flags flags = Typer::kNoFlags;
1532 if (is_sloppy(info()->shared_info()->language_mode()) && 1526 if (is_sloppy(info()->shared_info()->language_mode()) &&
1533 info()->shared_info()->IsUserJavaScript()) { 1527 info()->shared_info()->IsUserJavaScript()) {
1534 // Sloppy mode functions always have an Object for this. 1528 // Sloppy mode functions always have an Object for this.
1535 flags |= Typer::kThisIsReceiver; 1529 flags |= Typer::kThisIsReceiver;
1536 } 1530 }
1537 if (IsClassConstructor(info()->shared_info()->kind())) { 1531 if (IsClassConstructor(info()->shared_info()->kind())) {
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
2028 data->DeleteRegisterAllocationZone(); 2022 data->DeleteRegisterAllocationZone();
2029 } 2023 }
2030 2024
2031 CompilationInfo* PipelineImpl::info() const { return data_->info(); } 2025 CompilationInfo* PipelineImpl::info() const { return data_->info(); }
2032 2026
2033 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } 2027 Isolate* PipelineImpl::isolate() const { return info()->isolate(); }
2034 2028
2035 } // namespace compiler 2029 } // namespace compiler
2036 } // namespace internal 2030 } // namespace internal
2037 } // namespace v8 2031 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/graph-replay.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698