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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 DECLARE_FLAG(bool, guess_icdata_cid); | 58 DECLARE_FLAG(bool, guess_icdata_cid); |
59 DECLARE_FLAG(bool, ic_range_profiling); | 59 DECLARE_FLAG(bool, ic_range_profiling); |
60 DECLARE_FLAG(bool, intrinsify); | 60 DECLARE_FLAG(bool, intrinsify); |
61 DECLARE_FLAG(bool, load_deferred_eagerly); | 61 DECLARE_FLAG(bool, load_deferred_eagerly); |
62 DECLARE_FLAG(int, optimization_counter_threshold); | 62 DECLARE_FLAG(int, optimization_counter_threshold); |
63 DECLARE_FLAG(bool, propagate_ic_data); | 63 DECLARE_FLAG(bool, propagate_ic_data); |
64 DECLARE_FLAG(int, regexp_optimization_counter_threshold); | 64 DECLARE_FLAG(int, regexp_optimization_counter_threshold); |
65 DECLARE_FLAG(int, reoptimization_counter_threshold); | 65 DECLARE_FLAG(int, reoptimization_counter_threshold); |
66 DECLARE_FLAG(int, stacktrace_every); | 66 DECLARE_FLAG(int, stacktrace_every); |
67 DECLARE_FLAG(charp, stacktrace_filter); | 67 DECLARE_FLAG(charp, stacktrace_filter); |
68 DECLARE_FLAG(bool, support_debugger); | |
69 DECLARE_FLAG(bool, use_field_guards); | 68 DECLARE_FLAG(bool, use_field_guards); |
70 DECLARE_FLAG(bool, use_cha_deopt); | 69 DECLARE_FLAG(bool, use_cha_deopt); |
71 DECLARE_FLAG(bool, use_osr); | 70 DECLARE_FLAG(bool, use_osr); |
72 DECLARE_FLAG(bool, warn_on_javascript_compatibility); | 71 DECLARE_FLAG(bool, warn_on_javascript_compatibility); |
73 DECLARE_FLAG(bool, print_stop_message); | 72 DECLARE_FLAG(bool, print_stop_message); |
74 DECLARE_FLAG(bool, lazy_dispatchers); | 73 DECLARE_FLAG(bool, lazy_dispatchers); |
75 DECLARE_FLAG(bool, interpret_irregexp); | 74 DECLARE_FLAG(bool, interpret_irregexp); |
76 DECLARE_FLAG(bool, enable_mirrors); | 75 DECLARE_FLAG(bool, enable_mirrors); |
77 DECLARE_FLAG(bool, link_natives_lazily); | 76 DECLARE_FLAG(bool, link_natives_lazily); |
78 DECLARE_FLAG(bool, trace_compiler); | 77 DECLARE_FLAG(bool, trace_compiler); |
(...skipping 13 matching lines...) Expand all Loading... |
92 FATAL("Precompilation not supported on IA32"); | 91 FATAL("Precompilation not supported on IA32"); |
93 #endif | 92 #endif |
94 FLAG_precompilation = true; | 93 FLAG_precompilation = true; |
95 | 94 |
96 FLAG_always_megamorphic_calls = true; | 95 FLAG_always_megamorphic_calls = true; |
97 FLAG_polymorphic_with_deopt = false; | 96 FLAG_polymorphic_with_deopt = false; |
98 FLAG_optimization_counter_threshold = -1; | 97 FLAG_optimization_counter_threshold = -1; |
99 FLAG_use_field_guards = false; | 98 FLAG_use_field_guards = false; |
100 FLAG_use_osr = false; | 99 FLAG_use_osr = false; |
101 FLAG_emit_edge_counters = false; | 100 FLAG_emit_edge_counters = false; |
| 101 #ifndef PRODUCT |
102 FLAG_support_debugger = false; | 102 FLAG_support_debugger = false; |
| 103 #endif |
103 FLAG_ic_range_profiling = false; | 104 FLAG_ic_range_profiling = false; |
104 FLAG_collect_code = false; | 105 FLAG_collect_code = false; |
105 FLAG_load_deferred_eagerly = true; | 106 FLAG_load_deferred_eagerly = true; |
106 FLAG_deoptimize_alot = false; // Used in some tests. | 107 FLAG_deoptimize_alot = false; // Used in some tests. |
107 FLAG_deoptimize_every = 0; // Used in some tests. | 108 FLAG_deoptimize_every = 0; // Used in some tests. |
108 // Precompilation finalizes all classes and thus allows CHA optimizations. | 109 // Precompilation finalizes all classes and thus allows CHA optimizations. |
109 // Do not require CHA triggered deoptimization. | 110 // Do not require CHA triggered deoptimization. |
110 FLAG_use_cha_deopt = false; | 111 FLAG_use_cha_deopt = false; |
111 // Calling the PrintStopMessage stub is not supported in precompiled code | 112 // Calling the PrintStopMessage stub is not supported in precompiled code |
112 // since it is done at places where no pool pointer is loaded. | 113 // since it is done at places where no pool pointer is loaded. |
(...skipping 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1876 | 1877 |
1877 | 1878 |
1878 void FlowGraphCompiler::FrameStateClear() { | 1879 void FlowGraphCompiler::FrameStateClear() { |
1879 ASSERT(!is_optimizing()); | 1880 ASSERT(!is_optimizing()); |
1880 frame_state_.TruncateTo(0); | 1881 frame_state_.TruncateTo(0); |
1881 } | 1882 } |
1882 #endif | 1883 #endif |
1883 | 1884 |
1884 | 1885 |
1885 } // namespace dart | 1886 } // namespace dart |
OLD | NEW |