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