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

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

Issue 1731743003: Move precompilation-related flags to flags list. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: make print_stop_message default false to fix build 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/flow_graph.cc ('k') | runtime/vm/flow_graph_compiler.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/flow_graph_builder.h" 5 #include "vm/flow_graph_builder.h"
6 6
7 #include "lib/invocation_mirror.h" 7 #include "lib/invocation_mirror.h"
8 #include "vm/ast_printer.h" 8 #include "vm/ast_printer.h"
9 #include "vm/bit_vector.h" 9 #include "vm/bit_vector.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 21 matching lines...) Expand all
32 32
33 namespace dart { 33 namespace dart {
34 34
35 DEFINE_FLAG(bool, eliminate_type_checks, true, 35 DEFINE_FLAG(bool, eliminate_type_checks, true,
36 "Eliminate type checks when allowed by static type analysis."); 36 "Eliminate type checks when allowed by static type analysis.");
37 DEFINE_FLAG(bool, print_ast, false, "Print abstract syntax tree."); 37 DEFINE_FLAG(bool, print_ast, false, "Print abstract syntax tree.");
38 DEFINE_FLAG(bool, print_scopes, false, "Print scopes of local variables."); 38 DEFINE_FLAG(bool, print_scopes, false, "Print scopes of local variables.");
39 DEFINE_FLAG(bool, trace_type_check_elimination, false, 39 DEFINE_FLAG(bool, trace_type_check_elimination, false,
40 "Trace type check elimination at compile time."); 40 "Trace type check elimination at compile time.");
41 41
42 DECLARE_FLAG(int, optimization_counter_threshold);
43 DECLARE_FLAG(bool, profile_vm); 42 DECLARE_FLAG(bool, profile_vm);
44 DECLARE_FLAG(bool, use_field_guards);
45 43
46 // Quick access to the locally defined zone() method. 44 // Quick access to the locally defined zone() method.
47 #define Z (zone()) 45 #define Z (zone())
48 46
49 // Quick synthetic token position. 47 // Quick synthetic token position.
50 #define ST(token_pos) ((token_pos).ToSynthetic()) 48 #define ST(token_pos) ((token_pos).ToSynthetic())
51 49
52 // TODO(srdjan): Allow compiler to add constants as they are encountered in 50 // TODO(srdjan): Allow compiler to add constants as they are encountered in
53 // the compilation. 51 // the compilation.
54 const double kCommonDoubleConstants[] = 52 const double kCommonDoubleConstants[] =
(...skipping 4596 matching lines...) Expand 10 before | Expand all | Expand 10 after
4651 Script::Handle(function.script()), 4649 Script::Handle(function.script()),
4652 function.token_pos(), 4650 function.token_pos(),
4653 Report::AtLocation, 4651 Report::AtLocation,
4654 "FlowGraphBuilder Bailout: %s %s", 4652 "FlowGraphBuilder Bailout: %s %s",
4655 String::Handle(function.name()).ToCString(), 4653 String::Handle(function.name()).ToCString(),
4656 reason); 4654 reason);
4657 UNREACHABLE(); 4655 UNREACHABLE();
4658 } 4656 }
4659 4657
4660 } // namespace dart 4658 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698