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

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

Issue 2992893002: Reapply "[vm] Don't enable the profiler by default. Enable the profiler at startup with --observe, … (Closed)
Patch Set: native symbol resolver 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 bool stack_traces_only = !FLAG_profiler; 205 #if defined(PRODUCT)
206 const bool stack_traces_only = true;
207 #else
208 const bool stack_traces_only = false;
209 #endif
206 code_source_map_builder_ = new (zone_) 210 code_source_map_builder_ = new (zone_)
207 CodeSourceMapBuilder(stack_traces_only, caller_inline_id, 211 CodeSourceMapBuilder(stack_traces_only, caller_inline_id,
208 inline_id_to_token_pos, inline_id_to_function); 212 inline_id_to_token_pos, inline_id_to_function);
209 } 213 }
210 214
211 bool FlowGraphCompiler::IsUnboxedField(const Field& field) { 215 bool FlowGraphCompiler::IsUnboxedField(const Field& field) {
212 bool valid_class = 216 bool valid_class =
213 (SupportsUnboxedDoubles() && (field.guarded_cid() == kDoubleCid)) || 217 (SupportsUnboxedDoubles() && (field.guarded_cid() == kDoubleCid)) ||
214 (SupportsUnboxedSimd128() && (field.guarded_cid() == kFloat32x4Cid)) || 218 (SupportsUnboxedSimd128() && (field.guarded_cid() == kFloat32x4Cid)) ||
215 (SupportsUnboxedSimd128() && (field.guarded_cid() == kFloat64x2Cid)); 219 (SupportsUnboxedSimd128() && (field.guarded_cid() == kFloat64x2Cid));
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1941 return true; 1945 return true;
1942 } 1946 }
1943 1947
1944 void FlowGraphCompiler::FrameStateClear() { 1948 void FlowGraphCompiler::FrameStateClear() {
1945 ASSERT(!is_optimizing()); 1949 ASSERT(!is_optimizing());
1946 frame_state_.TruncateTo(0); 1950 frame_state_.TruncateTo(0);
1947 } 1951 }
1948 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) 1952 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC)
1949 1953
1950 } // namespace dart 1954 } // 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