| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |