Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(909)

Side by Side Diff: runtime/vm/flow_graph_compiler.cc

Issue 1712843002: Remove mirrors in product mode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/flag_list.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 DECLARE_FLAG(int, regexp_optimization_counter_threshold); 63 DECLARE_FLAG(int, regexp_optimization_counter_threshold);
64 DECLARE_FLAG(int, reoptimization_counter_threshold); 64 DECLARE_FLAG(int, reoptimization_counter_threshold);
65 DECLARE_FLAG(int, stacktrace_every); 65 DECLARE_FLAG(int, stacktrace_every);
66 DECLARE_FLAG(charp, stacktrace_filter); 66 DECLARE_FLAG(charp, stacktrace_filter);
67 DECLARE_FLAG(bool, use_field_guards); 67 DECLARE_FLAG(bool, use_field_guards);
68 DECLARE_FLAG(bool, use_cha_deopt); 68 DECLARE_FLAG(bool, use_cha_deopt);
69 DECLARE_FLAG(bool, use_osr); 69 DECLARE_FLAG(bool, use_osr);
70 DECLARE_FLAG(bool, print_stop_message); 70 DECLARE_FLAG(bool, print_stop_message);
71 DECLARE_FLAG(bool, lazy_dispatchers); 71 DECLARE_FLAG(bool, lazy_dispatchers);
72 DECLARE_FLAG(bool, interpret_irregexp); 72 DECLARE_FLAG(bool, interpret_irregexp);
73 DECLARE_FLAG(bool, enable_mirrors);
74 DECLARE_FLAG(bool, link_natives_lazily); 73 DECLARE_FLAG(bool, link_natives_lazily);
75 DECLARE_FLAG(bool, trace_compiler); 74 DECLARE_FLAG(bool, trace_compiler);
76 DECLARE_FLAG(int, inlining_hotness); 75 DECLARE_FLAG(int, inlining_hotness);
77 DECLARE_FLAG(int, inlining_size_threshold); 76 DECLARE_FLAG(int, inlining_size_threshold);
78 DECLARE_FLAG(int, inlining_callee_size_threshold); 77 DECLARE_FLAG(int, inlining_callee_size_threshold);
79 DECLARE_FLAG(int, inline_getters_setters_smaller_than); 78 DECLARE_FLAG(int, inline_getters_setters_smaller_than);
80 DECLARE_FLAG(int, inlining_depth_threshold); 79 DECLARE_FLAG(int, inlining_depth_threshold);
81 DECLARE_FLAG(int, inlining_caller_size_threshold); 80 DECLARE_FLAG(int, inlining_caller_size_threshold);
82 DECLARE_FLAG(int, inlining_constant_arguments_max_size_threshold); 81 DECLARE_FLAG(int, inlining_constant_arguments_max_size_threshold);
83 DECLARE_FLAG(int, inlining_constant_arguments_min_size_threshold); 82 DECLARE_FLAG(int, inlining_constant_arguments_min_size_threshold);
84 83
85 bool FLAG_precompilation = false; 84 bool FLAG_precompilation = false;
86 static void PrecompilationModeHandler(bool value) { 85 static void PrecompilationModeHandler(bool value) {
87 if (value) { 86 if (value) {
88 #if defined(TARGET_ARCH_IA32) 87 #if defined(TARGET_ARCH_IA32)
89 FATAL("Precompilation not supported on IA32"); 88 FATAL("Precompilation not supported on IA32");
90 #endif 89 #endif
91 FLAG_precompilation = true; 90 FLAG_precompilation = true;
92 91
93 FLAG_always_megamorphic_calls = true; 92 FLAG_always_megamorphic_calls = true;
94 FLAG_polymorphic_with_deopt = false; 93 FLAG_polymorphic_with_deopt = false;
95 FLAG_optimization_counter_threshold = -1; 94 FLAG_optimization_counter_threshold = -1;
96 FLAG_use_field_guards = false; 95 FLAG_use_field_guards = false;
97 FLAG_use_osr = false; 96 FLAG_use_osr = false;
98 FLAG_emit_edge_counters = false; 97 FLAG_emit_edge_counters = false;
99 #ifndef PRODUCT 98 #ifndef PRODUCT
100 FLAG_support_debugger = false; 99 FLAG_support_debugger = false;
101 #endif 100 #endif // !PRODUCT
102 FLAG_ic_range_profiling = false; 101 FLAG_ic_range_profiling = false;
103 FLAG_collect_code = false; 102 FLAG_collect_code = false;
104 FLAG_load_deferred_eagerly = true; 103 FLAG_load_deferred_eagerly = true;
105 FLAG_deoptimize_alot = false; // Used in some tests. 104 FLAG_deoptimize_alot = false; // Used in some tests.
106 FLAG_deoptimize_every = 0; // Used in some tests. 105 FLAG_deoptimize_every = 0; // Used in some tests.
107 // Precompilation finalizes all classes and thus allows CHA optimizations. 106 // Precompilation finalizes all classes and thus allows CHA optimizations.
108 // Do not require CHA triggered deoptimization. 107 // Do not require CHA triggered deoptimization.
109 FLAG_use_cha_deopt = false; 108 FLAG_use_cha_deopt = false;
110 // Calling the PrintStopMessage stub is not supported in precompiled code 109 // Calling the PrintStopMessage stub is not supported in precompiled code
111 // since it is done at places where no pool pointer is loaded. 110 // since it is done at places where no pool pointer is loaded.
112 FLAG_print_stop_message = false; 111 FLAG_print_stop_message = false;
113 112
114 FLAG_lazy_dispatchers = false; 113 FLAG_lazy_dispatchers = false;
115 FLAG_interpret_irregexp = true; 114 FLAG_interpret_irregexp = true;
115 #ifndef PRODUCT
116 FLAG_enable_mirrors = false; 116 FLAG_enable_mirrors = false;
117 #endif // !PRODUCT
117 FLAG_link_natives_lazily = true; 118 FLAG_link_natives_lazily = true;
118 FLAG_fields_may_be_reset = true; 119 FLAG_fields_may_be_reset = true;
119 FLAG_allow_absolute_addresses = false; 120 FLAG_allow_absolute_addresses = false;
120 121
121 // There is no counter feedback in precompilation, so ignore the counter 122 // There is no counter feedback in precompilation, so ignore the counter
122 // when making inlining decisions. 123 // when making inlining decisions.
123 FLAG_inlining_hotness = 0; 124 FLAG_inlining_hotness = 0;
124 // Use smaller thresholds in precompilation as we are compiling everything 125 // Use smaller thresholds in precompilation as we are compiling everything
125 // with the optimizing compiler instead of only hot functions. 126 // with the optimizing compiler instead of only hot functions.
126 FLAG_inlining_size_threshold = 5; 127 FLAG_inlining_size_threshold = 5;
(...skipping 1745 matching lines...) Expand 10 before | Expand all | Expand 10 after
1872 1873
1873 1874
1874 void FlowGraphCompiler::FrameStateClear() { 1875 void FlowGraphCompiler::FrameStateClear() {
1875 ASSERT(!is_optimizing()); 1876 ASSERT(!is_optimizing());
1876 frame_state_.TruncateTo(0); 1877 frame_state_.TruncateTo(0);
1877 } 1878 }
1878 #endif 1879 #endif
1879 1880
1880 1881
1881 } // namespace dart 1882 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flag_list.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698