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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // --noopt disables optimizer and tunes unoptimized code to run as fast | 100 // --noopt disables optimizer and tunes unoptimized code to run as fast |
101 // as possible. | 101 // as possible. |
102 DEFINE_FLAG_HANDLER(NooptModeHandler, | 102 DEFINE_FLAG_HANDLER(NooptModeHandler, |
103 noopt, | 103 noopt, |
104 "Run fast unoptimized code only."); | 104 "Run fast unoptimized code only."); |
105 | 105 |
106 | 106 |
107 DECLARE_FLAG(bool, lazy_dispatchers); | 107 DECLARE_FLAG(bool, lazy_dispatchers); |
108 DECLARE_FLAG(bool, interpret_irregexp); | 108 DECLARE_FLAG(bool, interpret_irregexp); |
109 DECLARE_FLAG(bool, enable_mirrors); | 109 DECLARE_FLAG(bool, enable_mirrors); |
110 | 110 DECLARE_FLAG(bool, link_natives_lazily); |
111 | 111 |
112 static void PrecompileModeHandler(bool value) { | 112 static void PrecompileModeHandler(bool value) { |
113 if (value) { | 113 if (value) { |
114 NooptModeHandler(true); | 114 NooptModeHandler(true); |
115 FLAG_lazy_dispatchers = false; | 115 FLAG_lazy_dispatchers = false; |
116 FLAG_interpret_irregexp = true; | 116 FLAG_interpret_irregexp = true; |
117 FLAG_enable_mirrors = false; | 117 FLAG_enable_mirrors = false; |
118 FLAG_precompile_collect_closures = true; | 118 FLAG_precompile_collect_closures = true; |
| 119 FLAG_link_natives_lazily = true; |
119 } | 120 } |
120 } | 121 } |
121 | 122 |
122 | 123 |
123 DEFINE_FLAG_HANDLER(PrecompileModeHandler, | 124 DEFINE_FLAG_HANDLER(PrecompileModeHandler, |
124 precompile, | 125 precompile, |
125 "Precompilation mode"); | 126 "Precompilation mode"); |
126 | 127 |
127 | 128 |
128 // Assign locations to incoming arguments, i.e., values pushed above spill slots | 129 // Assign locations to incoming arguments, i.e., values pushed above spill slots |
(...skipping 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1822 | 1823 |
1823 | 1824 |
1824 void FlowGraphCompiler::FrameStateClear() { | 1825 void FlowGraphCompiler::FrameStateClear() { |
1825 ASSERT(!is_optimizing()); | 1826 ASSERT(!is_optimizing()); |
1826 frame_state_.TruncateTo(0); | 1827 frame_state_.TruncateTo(0); |
1827 } | 1828 } |
1828 #endif | 1829 #endif |
1829 | 1830 |
1830 | 1831 |
1831 } // namespace dart | 1832 } // namespace dart |
OLD | NEW |