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

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

Issue 904763003: Redesign inlining interval computation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph.h ('k') | runtime/vm/flow_graph_compiler.h » ('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 optimized_block_order_(), 37 optimized_block_order_(),
38 constant_null_(NULL), 38 constant_null_(NULL),
39 constant_dead_(NULL), 39 constant_dead_(NULL),
40 constant_empty_context_(NULL), 40 constant_empty_context_(NULL),
41 block_effects_(NULL), 41 block_effects_(NULL),
42 licm_allowed_(true), 42 licm_allowed_(true),
43 loop_headers_(NULL), 43 loop_headers_(NULL),
44 loop_invariant_loads_(NULL), 44 loop_invariant_loads_(NULL),
45 guarded_fields_(parsed_function.guarded_fields()), 45 guarded_fields_(parsed_function.guarded_fields()),
46 deferred_prefixes_(parsed_function.deferred_prefixes()), 46 deferred_prefixes_(parsed_function.deferred_prefixes()),
47 captured_parameters_(new(zone()) BitVector(zone(), variable_count())) { 47 captured_parameters_(new(zone()) BitVector(zone(), variable_count())),
48 inlining_id_(-1) {
48 DiscoverBlocks(); 49 DiscoverBlocks();
49 } 50 }
50 51
51 52
52 void FlowGraph::AddToGuardedFields( 53 void FlowGraph::AddToGuardedFields(
53 ZoneGrowableArray<const Field*>* array, 54 ZoneGrowableArray<const Field*>* array,
54 const Field* field) { 55 const Field* field) {
55 if ((field->guarded_cid() == kDynamicCid) || 56 if ((field->guarded_cid() == kDynamicCid) ||
56 (field->guarded_cid() == kIllegalCid)) { 57 (field->guarded_cid() == kIllegalCid)) {
57 return; 58 return;
(...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1383 } 1384 }
1384 1385
1385 1386
1386 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from, 1387 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from,
1387 BlockEntryInstr* to) const { 1388 BlockEntryInstr* to) const {
1388 return available_at_[to->postorder_number()]->Contains( 1389 return available_at_[to->postorder_number()]->Contains(
1389 from->postorder_number()); 1390 from->postorder_number());
1390 } 1391 }
1391 1392
1392 } // namespace dart 1393 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph.h ('k') | runtime/vm/flow_graph_compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698