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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 DECLARE_FLAG(bool, use_field_guards); | 57 DECLARE_FLAG(bool, use_field_guards); |
58 DECLARE_FLAG(bool, use_osr); | 58 DECLARE_FLAG(bool, use_osr); |
59 DECLARE_FLAG(bool, warn_on_javascript_compatibility); | 59 DECLARE_FLAG(bool, warn_on_javascript_compatibility); |
60 | 60 |
61 static void NooptModeHandler(bool value) { | 61 static void NooptModeHandler(bool value) { |
62 if (value) { | 62 if (value) { |
63 FLAG_always_megamorphic_calls = value; | 63 FLAG_always_megamorphic_calls = value; |
64 FLAG_optimization_counter_threshold = -1; | 64 FLAG_optimization_counter_threshold = -1; |
65 FLAG_use_field_guards = false; | 65 FLAG_use_field_guards = false; |
66 FLAG_use_osr = false; | 66 FLAG_use_osr = false; |
| 67 FLAG_emit_edge_counters = false; |
67 } | 68 } |
68 } | 69 } |
69 | 70 |
70 | 71 |
71 // --noopt disables optimizer and tunes unoptimized code to run as fast | 72 // --noopt disables optimizer and tunes unoptimized code to run as fast |
72 // as possible. | 73 // as possible. |
73 DEFINE_FLAG_HANDLER(NooptModeHandler, | 74 DEFINE_FLAG_HANDLER(NooptModeHandler, |
74 noopt, | 75 noopt, |
75 "Run fast unoptimized code only."); | 76 "Run fast unoptimized code only."); |
76 | 77 |
(...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1714 | 1715 |
1715 | 1716 |
1716 void FlowGraphCompiler::FrameStateClear() { | 1717 void FlowGraphCompiler::FrameStateClear() { |
1717 ASSERT(!is_optimizing()); | 1718 ASSERT(!is_optimizing()); |
1718 frame_state_.TruncateTo(0); | 1719 frame_state_.TruncateTo(0); |
1719 } | 1720 } |
1720 #endif | 1721 #endif |
1721 | 1722 |
1722 | 1723 |
1723 } // namespace dart | 1724 } // namespace dart |
OLD | NEW |