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

Side by Side Diff: runtime/vm/constant_propagator.cc

Issue 1739593002: Revert "Move precompilation-related flags to flags list." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 | « runtime/vm/compiler_test.cc ('k') | runtime/vm/dart_api_impl.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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/constant_propagator.h" 5 #include "vm/constant_propagator.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/flow_graph_builder.h" 8 #include "vm/flow_graph_builder.h"
9 #include "vm/flow_graph_compiler.h" 9 #include "vm/flow_graph_compiler.h"
10 #include "vm/flow_graph_range_analysis.h" 10 #include "vm/flow_graph_range_analysis.h"
11 #include "vm/il_printer.h" 11 #include "vm/il_printer.h"
12 #include "vm/intermediate_language.h" 12 #include "vm/intermediate_language.h"
13 #include "vm/parser.h" 13 #include "vm/parser.h"
14 #include "vm/symbols.h" 14 #include "vm/symbols.h"
15 15
16 namespace dart { 16 namespace dart {
17 17
18 DEFINE_FLAG(bool, remove_redundant_phis, true, "Remove redundant phis."); 18 DEFINE_FLAG(bool, remove_redundant_phis, true, "Remove redundant phis.");
19 DEFINE_FLAG(bool, trace_constant_propagation, false, 19 DEFINE_FLAG(bool, trace_constant_propagation, false,
20 "Print constant propagation and useless code elimination."); 20 "Print constant propagation and useless code elimination.");
21 21
22 DECLARE_FLAG(bool, fields_may_be_reset);
23
22 // Quick access to the current zone and isolate. 24 // Quick access to the current zone and isolate.
23 #define I (isolate()) 25 #define I (isolate())
24 #define Z (graph_->zone()) 26 #define Z (graph_->zone())
25 27
26 28
27 ConstantPropagator::ConstantPropagator( 29 ConstantPropagator::ConstantPropagator(
28 FlowGraph* graph, 30 FlowGraph* graph,
29 const GrowableArray<BlockEntryInstr*>& ignored) 31 const GrowableArray<BlockEntryInstr*>& ignored)
30 : FlowGraphVisitor(ignored), 32 : FlowGraphVisitor(ignored),
31 graph_(graph), 33 graph_(graph),
(...skipping 1648 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 graph_->MergeBlocks(); 1682 graph_->MergeBlocks();
1681 GrowableArray<BitVector*> dominance_frontier; 1683 GrowableArray<BitVector*> dominance_frontier;
1682 graph_->ComputeDominators(&dominance_frontier); 1684 graph_->ComputeDominators(&dominance_frontier);
1683 1685
1684 if (FLAG_trace_constant_propagation) { 1686 if (FLAG_trace_constant_propagation) {
1685 FlowGraphPrinter::PrintGraph("After CP", graph_); 1687 FlowGraphPrinter::PrintGraph("After CP", graph_);
1686 } 1688 }
1687 } 1689 }
1688 1690
1689 } // namespace dart 1691 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/compiler_test.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698