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

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

Issue 1433243003: Background compilation work: (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: d Created 5 years, 1 month 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.h ('k') | runtime/vm/flow_graph_optimizer.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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.h" 5 #include "vm/flow_graph.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/flow_graph_builder.h" 8 #include "vm/flow_graph_builder.h"
9 #include "vm/il_printer.h" 9 #include "vm/il_printer.h"
10 #include "vm/intermediate_language.h" 10 #include "vm/intermediate_language.h"
(...skipping 26 matching lines...) Expand all
37 reverse_postorder_(), 37 reverse_postorder_(),
38 optimized_block_order_(), 38 optimized_block_order_(),
39 constant_null_(NULL), 39 constant_null_(NULL),
40 constant_dead_(NULL), 40 constant_dead_(NULL),
41 constant_empty_context_(NULL), 41 constant_empty_context_(NULL),
42 block_effects_(NULL), 42 block_effects_(NULL),
43 licm_allowed_(true), 43 licm_allowed_(true),
44 loop_headers_(NULL), 44 loop_headers_(NULL),
45 loop_invariant_loads_(NULL), 45 loop_invariant_loads_(NULL),
46 guarded_fields_(parsed_function.guarded_fields()), 46 guarded_fields_(parsed_function.guarded_fields()),
47 deoptimize_dependent_code_(),
47 deferred_prefixes_(parsed_function.deferred_prefixes()), 48 deferred_prefixes_(parsed_function.deferred_prefixes()),
48 captured_parameters_(new(zone()) BitVector(zone(), variable_count())), 49 captured_parameters_(new(zone()) BitVector(zone(), variable_count())),
49 inlining_id_(-1) { 50 inlining_id_(-1) {
50 DiscoverBlocks(); 51 DiscoverBlocks();
51 } 52 }
52 53
53 54
54 void FlowGraph::AddToGuardedFields( 55 void FlowGraph::AddToGuardedFields(
55 ZoneGrowableArray<const Field*>* array, 56 ZoneGrowableArray<const Field*>* array,
56 const Field* field) { 57 const Field* field) {
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1390 } 1391 }
1391 1392
1392 1393
1393 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from, 1394 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from,
1394 BlockEntryInstr* to) const { 1395 BlockEntryInstr* to) const {
1395 return available_at_[to->postorder_number()]->Contains( 1396 return available_at_[to->postorder_number()]->Contains(
1396 from->postorder_number()); 1397 from->postorder_number());
1397 } 1398 }
1398 1399
1399 } // namespace dart 1400 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph.h ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698