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

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

Issue 1261673004: Non-tree-shaking --precompile. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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_builder.cc ('k') | runtime/vm/flow_graph_type_propagator.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/globals.h" // Needed here to get TARGET_ARCH_XXX. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX.
6 6
7 #include "vm/flow_graph_compiler.h" 7 #include "vm/flow_graph_compiler.h"
8 8
9 #include "vm/bit_vector.h" 9 #include "vm/bit_vector.h"
10 #include "vm/cha.h" 10 #include "vm/cha.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 DECLARE_FLAG(bool, propagate_ic_data); 59 DECLARE_FLAG(bool, propagate_ic_data);
60 DECLARE_FLAG(int, regexp_optimization_counter_threshold); 60 DECLARE_FLAG(int, regexp_optimization_counter_threshold);
61 DECLARE_FLAG(int, reoptimization_counter_threshold); 61 DECLARE_FLAG(int, reoptimization_counter_threshold);
62 DECLARE_FLAG(int, stacktrace_every); 62 DECLARE_FLAG(int, stacktrace_every);
63 DECLARE_FLAG(charp, stacktrace_filter); 63 DECLARE_FLAG(charp, stacktrace_filter);
64 DECLARE_FLAG(bool, support_debugger); 64 DECLARE_FLAG(bool, support_debugger);
65 DECLARE_FLAG(bool, use_field_guards); 65 DECLARE_FLAG(bool, use_field_guards);
66 DECLARE_FLAG(bool, use_cha_deopt); 66 DECLARE_FLAG(bool, use_cha_deopt);
67 DECLARE_FLAG(bool, use_osr); 67 DECLARE_FLAG(bool, use_osr);
68 DECLARE_FLAG(bool, warn_on_javascript_compatibility); 68 DECLARE_FLAG(bool, warn_on_javascript_compatibility);
69 DECLARE_FLAG(bool, precompile_collect_closures);
69 70
70 71
71 static void NooptModeHandler(bool value) { 72 static void NooptModeHandler(bool value) {
72 if (value) { 73 if (value) {
73 FLAG_always_megamorphic_calls = true; 74 FLAG_always_megamorphic_calls = true;
74 FLAG_polymorphic_with_deopt = false; 75 FLAG_polymorphic_with_deopt = false;
75 FLAG_optimization_counter_threshold = -1; 76 FLAG_optimization_counter_threshold = -1;
76 FLAG_use_field_guards = false; 77 FLAG_use_field_guards = false;
77 FLAG_use_osr = false; 78 FLAG_use_osr = false;
78 FLAG_emit_edge_counters = false; 79 FLAG_emit_edge_counters = false;
(...skipping 28 matching lines...) Expand all
107 DECLARE_FLAG(bool, interpret_irregexp); 108 DECLARE_FLAG(bool, interpret_irregexp);
108 DECLARE_FLAG(bool, enable_mirrors); 109 DECLARE_FLAG(bool, enable_mirrors);
109 110
110 111
111 static void PrecompileModeHandler(bool value) { 112 static void PrecompileModeHandler(bool value) {
112 if (value) { 113 if (value) {
113 NooptModeHandler(true); 114 NooptModeHandler(true);
114 FLAG_lazy_dispatchers = false; 115 FLAG_lazy_dispatchers = false;
115 FLAG_interpret_irregexp = true; 116 FLAG_interpret_irregexp = true;
116 FLAG_enable_mirrors = false; 117 FLAG_enable_mirrors = false;
118 FLAG_precompile_collect_closures = true;
117 } 119 }
118 } 120 }
119 121
120 122
121 DEFINE_FLAG_HANDLER(PrecompileModeHandler, 123 DEFINE_FLAG_HANDLER(PrecompileModeHandler,
122 precompile, 124 precompile,
123 "Precompilation mode"); 125 "Precompilation mode");
124 126
125 127
126 // Assign locations to incoming arguments, i.e., values pushed above spill slots 128 // Assign locations to incoming arguments, i.e., values pushed above spill slots
(...skipping 1672 matching lines...) Expand 10 before | Expand all | Expand 10 after
1799 1801
1800 1802
1801 void FlowGraphCompiler::FrameStateClear() { 1803 void FlowGraphCompiler::FrameStateClear() {
1802 ASSERT(!is_optimizing()); 1804 ASSERT(!is_optimizing());
1803 frame_state_.TruncateTo(0); 1805 frame_state_.TruncateTo(0);
1804 } 1806 }
1805 #endif 1807 #endif
1806 1808
1807 1809
1808 } // namespace dart 1810 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/flow_graph_type_propagator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698