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

Side by Side Diff: runtime/vm/flow_graph_type_propagator.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/flow_graph_compiler.cc ('k') | runtime/vm/heap.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/flow_graph_type_propagator.h" 5 #include "vm/flow_graph_type_propagator.h"
6 6
7 #include "vm/cha.h" 7 #include "vm/cha.h"
8 #include "vm/bit_vector.h" 8 #include "vm/bit_vector.h"
9 #include "vm/il_printer.h" 9 #include "vm/il_printer.h"
10 #include "vm/regexp_assembler.h" 10 #include "vm/regexp_assembler.h"
11 #include "vm/timeline.h"
11 12
12 namespace dart { 13 namespace dart {
13 14
14 DEFINE_FLAG(bool, trace_type_propagation, false, 15 DEFINE_FLAG(bool, trace_type_propagation, false,
15 "Trace flow graph type propagation"); 16 "Trace flow graph type propagation");
16 17
17 DECLARE_FLAG(bool, propagate_types); 18 DECLARE_FLAG(bool, propagate_types);
18 19
19 20
20 void FlowGraphTypePropagator::Propagate(FlowGraph* flow_graph) { 21 void FlowGraphTypePropagator::Propagate(FlowGraph* flow_graph) {
21 #ifndef PRODUCT 22 #ifndef PRODUCT
22 Thread* thread = flow_graph->thread(); 23 Thread* thread = flow_graph->thread();
23 Isolate* const isolate = flow_graph->isolate(); 24 TimelineStream* compiler_timeline = Timeline::GetCompilerStream();
24 TimelineStream* compiler_timeline = isolate->GetCompilerStream();
25 TimelineDurationScope tds2(thread, 25 TimelineDurationScope tds2(thread,
26 compiler_timeline, 26 compiler_timeline,
27 "FlowGraphTypePropagator"); 27 "FlowGraphTypePropagator");
28 #endif // !PRODUCT 28 #endif // !PRODUCT
29 FlowGraphTypePropagator propagator(flow_graph); 29 FlowGraphTypePropagator propagator(flow_graph);
30 propagator.Propagate(); 30 propagator.Propagate();
31 } 31 }
32 32
33 33
34 FlowGraphTypePropagator::FlowGraphTypePropagator(FlowGraph* flow_graph) 34 FlowGraphTypePropagator::FlowGraphTypePropagator(FlowGraph* flow_graph)
(...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after
1393 CompileType MergedMathInstr::ComputeType() const { 1393 CompileType MergedMathInstr::ComputeType() const {
1394 return CompileType::Dynamic(); 1394 return CompileType::Dynamic();
1395 } 1395 }
1396 1396
1397 1397
1398 CompileType ExtractNthOutputInstr::ComputeType() const { 1398 CompileType ExtractNthOutputInstr::ComputeType() const {
1399 return CompileType::FromCid(definition_cid_); 1399 return CompileType::FromCid(definition_cid_);
1400 } 1400 }
1401 1401
1402 } // namespace dart 1402 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698