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

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

Issue 1660063002: Remove many features when building product mode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/flags.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 18 matching lines...) Expand all
29 #include "vm/symbols.h" 29 #include "vm/symbols.h"
30 #include "vm/token.h" 30 #include "vm/token.h"
31 #include "vm/zone.h" 31 #include "vm/zone.h"
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, support_debugger, true, "Emit code needed for debugging");
40 DEFINE_FLAG(bool, trace_type_check_elimination, false, 39 DEFINE_FLAG(bool, trace_type_check_elimination, false,
41 "Trace type check elimination at compile time."); 40 "Trace type check elimination at compile time.");
42 41
43 DECLARE_FLAG(int, optimization_counter_threshold); 42 DECLARE_FLAG(int, optimization_counter_threshold);
44 DECLARE_FLAG(bool, profile_vm); 43 DECLARE_FLAG(bool, profile_vm);
45 DECLARE_FLAG(bool, warn_on_javascript_compatibility); 44 DECLARE_FLAG(bool, warn_on_javascript_compatibility);
46 DECLARE_FLAG(bool, use_field_guards); 45 DECLARE_FLAG(bool, use_field_guards);
47 46
48 // Quick access to the locally defined zone() method. 47 // Quick access to the locally defined zone() method.
49 #define Z (zone()) 48 #define Z (zone())
(...skipping 4619 matching lines...) Expand 10 before | Expand all | Expand 10 after
4669 Script::Handle(function.script()), 4668 Script::Handle(function.script()),
4670 function.token_pos(), 4669 function.token_pos(),
4671 Report::AtLocation, 4670 Report::AtLocation,
4672 "FlowGraphBuilder Bailout: %s %s", 4671 "FlowGraphBuilder Bailout: %s %s",
4673 String::Handle(function.name()).ToCString(), 4672 String::Handle(function.name()).ToCString(),
4674 reason); 4673 reason);
4675 UNREACHABLE(); 4674 UNREACHABLE();
4676 } 4675 }
4677 4676
4678 } // namespace dart 4677 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flags.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698