| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 FLAG_polymorphic_with_deopt = false; | 74 FLAG_polymorphic_with_deopt = false; |
| 75 FLAG_optimization_counter_threshold = -1; | 75 FLAG_optimization_counter_threshold = -1; |
| 76 FLAG_use_field_guards = false; | 76 FLAG_use_field_guards = false; |
| 77 FLAG_use_osr = false; | 77 FLAG_use_osr = false; |
| 78 FLAG_emit_edge_counters = false; | 78 FLAG_emit_edge_counters = false; |
| 79 FLAG_support_debugger = false; | 79 FLAG_support_debugger = false; |
| 80 FLAG_ic_range_profiling = false; | 80 FLAG_ic_range_profiling = false; |
| 81 FLAG_collect_code = false; | 81 FLAG_collect_code = false; |
| 82 FLAG_load_deferred_eagerly = true; | 82 FLAG_load_deferred_eagerly = true; |
| 83 FLAG_deoptimize_alot = false; // Used in some tests. | 83 FLAG_deoptimize_alot = false; // Used in some tests. |
| 84 FLAG_deoptimize_every = 0; // Used in some tests. | 84 FLAG_deoptimize_every = 0; // Used in some tests. |
| 85 FLAG_collect_code = false; | 85 FLAG_collect_code = false; |
| 86 FLAG_guess_other_cid = true; | 86 FLAG_guess_other_cid = true; |
| 87 Compiler::set_always_optimize(true); | 87 Compiler::set_always_optimize(true); |
| 88 // Triggers assert if we try to recompile (e.g., because of deferred |
| 89 // loading, deoptimization, ...). Noopt mode simulates behavior |
| 90 // of precompiled code, therefore do not allow recompilation. |
| 91 Compiler::set_allow_recompilation(false); |
| 88 // TODO(srdjan): Enable CHA deoptimization when eager class finalization is | 92 // TODO(srdjan): Enable CHA deoptimization when eager class finalization is |
| 89 // implemented, either with precompilation or as a special pass. | 93 // implemented, either with precompilation or as a special pass. |
| 90 FLAG_use_cha_deopt = false; | 94 FLAG_use_cha_deopt = false; |
| 91 } | 95 } |
| 92 } | 96 } |
| 93 | 97 |
| 94 | 98 |
| 95 // --noopt disables optimizer and tunes unoptimized code to run as fast | 99 // --noopt disables optimizer and tunes unoptimized code to run as fast |
| 96 // as possible. | 100 // as possible. |
| 97 DEFINE_FLAG_HANDLER(NooptModeHandler, | 101 DEFINE_FLAG_HANDLER(NooptModeHandler, |
| (...skipping 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1776 | 1780 |
| 1777 | 1781 |
| 1778 void FlowGraphCompiler::FrameStateClear() { | 1782 void FlowGraphCompiler::FrameStateClear() { |
| 1779 ASSERT(!is_optimizing()); | 1783 ASSERT(!is_optimizing()); |
| 1780 frame_state_.TruncateTo(0); | 1784 frame_state_.TruncateTo(0); |
| 1781 } | 1785 } |
| 1782 #endif | 1786 #endif |
| 1783 | 1787 |
| 1784 | 1788 |
| 1785 } // namespace dart | 1789 } // namespace dart |
| OLD | NEW |