| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 DECLARE_FLAG(int, optimization_counter_threshold); | 50 DECLARE_FLAG(int, optimization_counter_threshold); |
| 51 DECLARE_FLAG(bool, propagate_ic_data); | 51 DECLARE_FLAG(bool, propagate_ic_data); |
| 52 DECLARE_FLAG(int, regexp_optimization_counter_threshold); | 52 DECLARE_FLAG(int, regexp_optimization_counter_threshold); |
| 53 DECLARE_FLAG(int, reoptimization_counter_threshold); | 53 DECLARE_FLAG(int, reoptimization_counter_threshold); |
| 54 DECLARE_FLAG(int, stacktrace_every); | 54 DECLARE_FLAG(int, stacktrace_every); |
| 55 DECLARE_FLAG(charp, stacktrace_filter); | 55 DECLARE_FLAG(charp, stacktrace_filter); |
| 56 DECLARE_FLAG(bool, use_cha); | 56 DECLARE_FLAG(bool, use_cha); |
| 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 DECLARE_FLAG(bool, ic_range_profiling); |
| 60 | 61 |
| 61 static void NooptModeHandler(bool value) { | 62 static void NooptModeHandler(bool value) { |
| 62 if (value) { | 63 if (value) { |
| 63 FLAG_always_megamorphic_calls = value; | 64 FLAG_always_megamorphic_calls = value; |
| 64 FLAG_optimization_counter_threshold = -1; | 65 FLAG_optimization_counter_threshold = -1; |
| 65 FLAG_use_field_guards = false; | 66 FLAG_use_field_guards = false; |
| 66 FLAG_use_osr = false; | 67 FLAG_use_osr = false; |
| 67 FLAG_emit_edge_counters = false; | 68 FLAG_emit_edge_counters = false; |
| 69 FLAG_ic_range_profiling = false; |
| 70 FLAG_collect_code = false; |
| 68 } | 71 } |
| 69 } | 72 } |
| 70 | 73 |
| 71 | 74 |
| 72 // --noopt disables optimizer and tunes unoptimized code to run as fast | 75 // --noopt disables optimizer and tunes unoptimized code to run as fast |
| 73 // as possible. | 76 // as possible. |
| 74 DEFINE_FLAG_HANDLER(NooptModeHandler, | 77 DEFINE_FLAG_HANDLER(NooptModeHandler, |
| 75 noopt, | 78 noopt, |
| 76 "Run fast unoptimized code only."); | 79 "Run fast unoptimized code only."); |
| 77 | 80 |
| (...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1715 | 1718 |
| 1716 | 1719 |
| 1717 void FlowGraphCompiler::FrameStateClear() { | 1720 void FlowGraphCompiler::FrameStateClear() { |
| 1718 ASSERT(!is_optimizing()); | 1721 ASSERT(!is_optimizing()); |
| 1719 frame_state_.TruncateTo(0); | 1722 frame_state_.TruncateTo(0); |
| 1720 } | 1723 } |
| 1721 #endif | 1724 #endif |
| 1722 | 1725 |
| 1723 | 1726 |
| 1724 } // namespace dart | 1727 } // namespace dart |
| OLD | NEW |