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

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

Issue 1679373002: Disable reg-exp compilation in background via a flag (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: b Created 4 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
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_(),
48 deferred_prefixes_(parsed_function.deferred_prefixes()), 47 deferred_prefixes_(parsed_function.deferred_prefixes()),
49 captured_parameters_(new(zone()) BitVector(zone(), variable_count())), 48 captured_parameters_(new(zone()) BitVector(zone(), variable_count())),
50 inlining_id_(-1) { 49 inlining_id_(-1) {
51 DiscoverBlocks(); 50 DiscoverBlocks();
52 } 51 }
53 52
54 53
55 void FlowGraph::EnsureSSATempIndex(Definition* defn, 54 void FlowGraph::EnsureSSATempIndex(Definition* defn,
56 Definition* replacement) { 55 Definition* replacement) {
57 if ((replacement->ssa_temp_index() == -1) && 56 if ((replacement->ssa_temp_index() == -1) &&
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 } 1427 }
1429 1428
1430 1429
1431 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from, 1430 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from,
1432 BlockEntryInstr* to) const { 1431 BlockEntryInstr* to) const {
1433 return available_at_[to->postorder_number()]->Contains( 1432 return available_at_[to->postorder_number()]->Contains(
1434 from->postorder_number()); 1433 from->postorder_number());
1435 } 1434 }
1436 1435
1437 } // namespace dart 1436 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698