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

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

Issue 1714743002: VM: Separate precompilation-specific code, make flags const. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix build after merge 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/flow_graph_type_propagator.cc ('k') | runtime/vm/object.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/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/bootstrap.h" 8 #include "vm/bootstrap.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/constant_propagator.h" 10 #include "vm/constant_propagator.h"
(...skipping 24 matching lines...) Expand all
35 "for binary and unary arithmetic operations"); 35 "for binary and unary arithmetic operations");
36 DEFINE_FLAG(bool, propagate_ic_data, true, 36 DEFINE_FLAG(bool, propagate_ic_data, true,
37 "Propagate IC data from unoptimized to optimized IC calls."); 37 "Propagate IC data from unoptimized to optimized IC calls.");
38 DEFINE_FLAG(bool, two_args_smi_icd, true, 38 DEFINE_FLAG(bool, two_args_smi_icd, true,
39 "Generate special IC stubs for two args Smi operations"); 39 "Generate special IC stubs for two args Smi operations");
40 DEFINE_FLAG(bool, unbox_numeric_fields, true, 40 DEFINE_FLAG(bool, unbox_numeric_fields, true,
41 "Support unboxed double and float32x4 fields."); 41 "Support unboxed double and float32x4 fields.");
42 DEFINE_FLAG(bool, fields_may_be_reset, false, 42 DEFINE_FLAG(bool, fields_may_be_reset, false,
43 "Don't optimize away static field initialization"); 43 "Don't optimize away static field initialization");
44 DECLARE_FLAG(bool, eliminate_type_checks); 44 DECLARE_FLAG(bool, eliminate_type_checks);
45 DECLARE_FLAG(bool, trace_optimization);
46 45
47 Definition::Definition(intptr_t deopt_id) 46 Definition::Definition(intptr_t deopt_id)
48 : Instruction(deopt_id), 47 : Instruction(deopt_id),
49 range_(NULL), 48 range_(NULL),
50 type_(NULL), 49 type_(NULL),
51 temp_index_(-1), 50 temp_index_(-1),
52 ssa_temp_index_(-1), 51 ssa_temp_index_(-1),
53 input_use_list_(NULL), 52 input_use_list_(NULL),
54 env_use_list_(NULL), 53 env_use_list_(NULL),
55 constant_value_(NULL) { 54 constant_value_(NULL) {
(...skipping 3675 matching lines...) Expand 10 before | Expand all | Expand 10 after
3731 set_native_c_function(native_function); 3730 set_native_c_function(native_function);
3732 function().SetIsNativeAutoSetupScope(auto_setup_scope); 3731 function().SetIsNativeAutoSetupScope(auto_setup_scope);
3733 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); 3732 Dart_NativeEntryResolver resolver = library.native_entry_resolver();
3734 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); 3733 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver);
3735 set_is_bootstrap_native(is_bootstrap_native); 3734 set_is_bootstrap_native(is_bootstrap_native);
3736 } 3735 }
3737 3736
3738 #undef __ 3737 #undef __
3739 3738
3740 } // namespace dart 3739 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698