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

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

Issue 1811613002: Timeline API fixes for Flutter (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/deopt_instructions.cc ('k') | runtime/vm/flow_graph_type_propagator.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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 bool FlowGraphCompiler::IsPotentialUnboxedField(const Field& field) { 248 bool FlowGraphCompiler::IsPotentialUnboxedField(const Field& field) {
249 return field.is_unboxing_candidate() && 249 return field.is_unboxing_candidate() &&
250 (FlowGraphCompiler::IsUnboxedField(field) || 250 (FlowGraphCompiler::IsUnboxedField(field) ||
251 (!field.is_final() && (field.guarded_cid() == kIllegalCid))); 251 (!field.is_final() && (field.guarded_cid() == kIllegalCid)));
252 } 252 }
253 253
254 254
255 void FlowGraphCompiler::InitCompiler() { 255 void FlowGraphCompiler::InitCompiler() {
256 #ifndef PRODUCT 256 #ifndef PRODUCT
257 TimelineDurationScope tds(thread(), 257 TimelineDurationScope tds(thread(),
258 isolate()->GetCompilerStream(), 258 Timeline::GetCompilerStream(),
259 "InitCompiler"); 259 "InitCompiler");
260 #endif // !PRODUCT 260 #endif // !PRODUCT
261 pc_descriptors_list_ = new(zone()) DescriptorList(64); 261 pc_descriptors_list_ = new(zone()) DescriptorList(64);
262 exception_handlers_list_ = new(zone()) ExceptionHandlerList(); 262 exception_handlers_list_ = new(zone()) ExceptionHandlerList();
263 block_info_.Clear(); 263 block_info_.Clear();
264 // Conservative detection of leaf routines used to remove the stack check 264 // Conservative detection of leaf routines used to remove the stack check
265 // on function entry. 265 // on function entry.
266 bool is_leaf = is_optimizing() && !flow_graph().IsCompiledForOsr(); 266 bool is_leaf = is_optimizing() && !flow_graph().IsCompiledForOsr();
267 // Initialize block info and search optimized (non-OSR) code for calls 267 // Initialize block info and search optimized (non-OSR) code for calls
268 // indicating a non-leaf routine and calls without IC data indicating 268 // indicating a non-leaf routine and calls without IC data indicating
(...skipping 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 1934
1935 1935
1936 void FlowGraphCompiler::FrameStateClear() { 1936 void FlowGraphCompiler::FrameStateClear() {
1937 ASSERT(!is_optimizing()); 1937 ASSERT(!is_optimizing());
1938 frame_state_.TruncateTo(0); 1938 frame_state_.TruncateTo(0);
1939 } 1939 }
1940 #endif 1940 #endif
1941 1941
1942 1942
1943 } // namespace dart 1943 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/deopt_instructions.cc ('k') | runtime/vm/flow_graph_type_propagator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698