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

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

Issue 1728713002: VM: Fix product build. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: make flags constant correctly in non-precompiled, product mode" 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') | no next file » | 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 FLAG_inlining_depth_threshold = 2; 121 FLAG_inlining_depth_threshold = 2;
122 FLAG_inlining_caller_size_threshold = 1000; 122 FLAG_inlining_caller_size_threshold = 1000;
123 123
124 FLAG_inlining_constant_arguments_max_size_threshold = 100; 124 FLAG_inlining_constant_arguments_max_size_threshold = 100;
125 FLAG_inlining_constant_arguments_min_size_threshold = 30; 125 FLAG_inlining_constant_arguments_min_size_threshold = 30;
126 126
127 // Background compilation relies on two-stage compilation pipeline, 127 // Background compilation relies on two-stage compilation pipeline,
128 // while precompilation has only one. 128 // while precompilation has only one.
129 FLAG_background_compilation = false; 129 FLAG_background_compilation = false;
130 FLAG_collect_dynamic_function_names = true; 130 FLAG_collect_dynamic_function_names = true;
131 #if !defined(DART_PRECOMPILED_RUNTIME) 131 #if !defined(DART_PRECOMPILED_RUNTIME) && !defined(PRODUCT)
132 FLAG_lazy_dispatchers = false; 132 FLAG_lazy_dispatchers = false;
133 FLAG_polymorphic_with_deopt = false; 133 FLAG_polymorphic_with_deopt = false;
134 // Precompilation finalizes all classes and thus allows CHA optimizations. 134 // Precompilation finalizes all classes and thus allows CHA optimizations.
135 // Do not require CHA triggered deoptimization. 135 // Do not require CHA triggered deoptimization.
136 FLAG_use_cha_deopt = false; 136 FLAG_use_cha_deopt = false;
137 #else 137 #elif defined(DART_PRECOMPILED_RUNTIME)
138 // Precompiled product and release mode.
138 COMPILE_ASSERT(!FLAG_lazy_dispatchers); 139 COMPILE_ASSERT(!FLAG_lazy_dispatchers);
139 COMPILE_ASSERT(!FLAG_polymorphic_with_deopt); 140 COMPILE_ASSERT(!FLAG_polymorphic_with_deopt);
140 COMPILE_ASSERT(!FLAG_use_cha_deopt); 141 COMPILE_ASSERT(!FLAG_use_cha_deopt);
142 #elif defined(PRODUCT)
143 // Jit product and release mode.
144 COMPILE_ASSERT(FLAG_lazy_dispatchers);
145 COMPILE_ASSERT(FLAG_polymorphic_with_deopt);
146 COMPILE_ASSERT(FLAG_use_cha_deopt);
141 #endif 147 #endif
142 } 148 }
143 } 149 }
144 150
145 151
146 DEFINE_FLAG_HANDLER(PrecompilationModeHandler, 152 DEFINE_FLAG_HANDLER(PrecompilationModeHandler,
147 precompilation, 153 precompilation,
148 "Precompilation mode"); 154 "Precompilation mode");
149 155
150 156
(...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1875 1881
1876 1882
1877 void FlowGraphCompiler::FrameStateClear() { 1883 void FlowGraphCompiler::FrameStateClear() {
1878 ASSERT(!is_optimizing()); 1884 ASSERT(!is_optimizing());
1879 frame_state_.TruncateTo(0); 1885 frame_state_.TruncateTo(0);
1880 } 1886 }
1881 #endif 1887 #endif
1882 1888
1883 1889
1884 } // namespace dart 1890 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698