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

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

Issue 2990173002: Revert "[vm] Don't enable the profiler by default. Enable the profiler at startup with --observe, o… (Closed)
Patch Set: Created 3 years, 4 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/malloc_hooks_test.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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 old_saved_ic_data.IsNull() ? 0 : old_saved_ic_data.Length(); 195 old_saved_ic_data.IsNull() ? 0 : old_saved_ic_data.Length();
196 for (intptr_t i = 1; i < saved_len; i++) { 196 for (intptr_t i = 1; i < saved_len; i++) {
197 ICData& ic_data = ICData::ZoneHandle(zone()); 197 ICData& ic_data = ICData::ZoneHandle(zone());
198 ic_data ^= old_saved_ic_data.At(i); 198 ic_data ^= old_saved_ic_data.At(i);
199 (*deopt_id_to_ic_data_)[ic_data.deopt_id()] = &ic_data; 199 (*deopt_id_to_ic_data_)[ic_data.deopt_id()] = &ic_data;
200 } 200 }
201 } 201 }
202 ASSERT(assembler != NULL); 202 ASSERT(assembler != NULL);
203 ASSERT(!list_class_.IsNull()); 203 ASSERT(!list_class_.IsNull());
204 204
205 #if defined(PRODUCT) 205 bool stack_traces_only = !FLAG_profiler;
206 const bool stack_traces_only = true;
207 #else
208 const bool stack_traces_only = false;
209 #endif
210 code_source_map_builder_ = new (zone_) 206 code_source_map_builder_ = new (zone_)
211 CodeSourceMapBuilder(stack_traces_only, caller_inline_id, 207 CodeSourceMapBuilder(stack_traces_only, caller_inline_id,
212 inline_id_to_token_pos, inline_id_to_function); 208 inline_id_to_token_pos, inline_id_to_function);
213 } 209 }
214 210
215 bool FlowGraphCompiler::IsUnboxedField(const Field& field) { 211 bool FlowGraphCompiler::IsUnboxedField(const Field& field) {
216 bool valid_class = 212 bool valid_class =
217 (SupportsUnboxedDoubles() && (field.guarded_cid() == kDoubleCid)) || 213 (SupportsUnboxedDoubles() && (field.guarded_cid() == kDoubleCid)) ||
218 (SupportsUnboxedSimd128() && (field.guarded_cid() == kFloat32x4Cid)) || 214 (SupportsUnboxedSimd128() && (field.guarded_cid() == kFloat32x4Cid)) ||
219 (SupportsUnboxedSimd128() && (field.guarded_cid() == kFloat64x2Cid)); 215 (SupportsUnboxedSimd128() && (field.guarded_cid() == kFloat64x2Cid));
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1945 return true; 1941 return true;
1946 } 1942 }
1947 1943
1948 void FlowGraphCompiler::FrameStateClear() { 1944 void FlowGraphCompiler::FrameStateClear() {
1949 ASSERT(!is_optimizing()); 1945 ASSERT(!is_optimizing());
1950 frame_state_.TruncateTo(0); 1946 frame_state_.TruncateTo(0);
1951 } 1947 }
1952 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) 1948 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC)
1953 1949
1954 } // namespace dart 1950 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flag_list.h ('k') | runtime/vm/malloc_hooks_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698