| 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/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 10 matching lines...) Expand all Loading... |
| 21 #include "vm/longjump.h" | 21 #include "vm/longjump.h" |
| 22 #include "vm/object_store.h" | 22 #include "vm/object_store.h" |
| 23 #include "vm/parser.h" | 23 #include "vm/parser.h" |
| 24 #include "vm/raw_object.h" | 24 #include "vm/raw_object.h" |
| 25 #include "vm/stack_frame.h" | 25 #include "vm/stack_frame.h" |
| 26 #include "vm/stub_code.h" | 26 #include "vm/stub_code.h" |
| 27 #include "vm/symbols.h" | 27 #include "vm/symbols.h" |
| 28 | 28 |
| 29 namespace dart { | 29 namespace dart { |
| 30 | 30 |
| 31 DEFINE_FLAG(bool, allow_absolute_addresses, true, |
| 32 "Allow embedding absolute addresses in generated code."); |
| 31 DEFINE_FLAG(bool, always_megamorphic_calls, false, | 33 DEFINE_FLAG(bool, always_megamorphic_calls, false, |
| 32 "Instance call always as megamorphic."); | 34 "Instance call always as megamorphic."); |
| 33 DEFINE_FLAG(bool, enable_simd_inline, true, | 35 DEFINE_FLAG(bool, enable_simd_inline, true, |
| 34 "Enable inlining of SIMD related method calls."); | 36 "Enable inlining of SIMD related method calls."); |
| 35 DEFINE_FLAG(int, min_optimization_counter_threshold, 5000, | 37 DEFINE_FLAG(int, min_optimization_counter_threshold, 5000, |
| 36 "The minimum invocation count for a function."); | 38 "The minimum invocation count for a function."); |
| 37 DEFINE_FLAG(int, optimization_counter_scale, 2000, | 39 DEFINE_FLAG(int, optimization_counter_scale, 2000, |
| 38 "The scale of invocation count, by size of the function."); | 40 "The scale of invocation count, by size of the function."); |
| 39 DEFINE_FLAG(bool, polymorphic_with_deopt, true, | 41 DEFINE_FLAG(bool, polymorphic_with_deopt, true, |
| 40 "Polymorphic calls can be generated so that failure either causes " | 42 "Polymorphic calls can be generated so that failure either causes " |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 DECLARE_FLAG(bool, link_natives_lazily); | 115 DECLARE_FLAG(bool, link_natives_lazily); |
| 114 | 116 |
| 115 static void PrecompileModeHandler(bool value) { | 117 static void PrecompileModeHandler(bool value) { |
| 116 if (value) { | 118 if (value) { |
| 117 NooptModeHandler(true); | 119 NooptModeHandler(true); |
| 118 FLAG_lazy_dispatchers = false; | 120 FLAG_lazy_dispatchers = false; |
| 119 FLAG_interpret_irregexp = true; | 121 FLAG_interpret_irregexp = true; |
| 120 FLAG_enable_mirrors = false; | 122 FLAG_enable_mirrors = false; |
| 121 FLAG_precompile_collect_closures = true; | 123 FLAG_precompile_collect_closures = true; |
| 122 FLAG_link_natives_lazily = true; | 124 FLAG_link_natives_lazily = true; |
| 125 FLAG_allow_absolute_addresses = false; |
| 123 } | 126 } |
| 124 } | 127 } |
| 125 | 128 |
| 126 | 129 |
| 127 DEFINE_FLAG_HANDLER(PrecompileModeHandler, | 130 DEFINE_FLAG_HANDLER(PrecompileModeHandler, |
| 128 precompile, | 131 precompile, |
| 129 "Precompilation mode"); | 132 "Precompilation mode"); |
| 130 | 133 |
| 131 | 134 |
| 132 // Assign locations to incoming arguments, i.e., values pushed above spill slots | 135 // Assign locations to incoming arguments, i.e., values pushed above spill slots |
| (...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1832 | 1835 |
| 1833 | 1836 |
| 1834 void FlowGraphCompiler::FrameStateClear() { | 1837 void FlowGraphCompiler::FrameStateClear() { |
| 1835 ASSERT(!is_optimizing()); | 1838 ASSERT(!is_optimizing()); |
| 1836 frame_state_.TruncateTo(0); | 1839 frame_state_.TruncateTo(0); |
| 1837 } | 1840 } |
| 1838 #endif | 1841 #endif |
| 1839 | 1842 |
| 1840 | 1843 |
| 1841 } // namespace dart | 1844 } // namespace dart |
| OLD | NEW |