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

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

Issue 539153002: Port and integrate the irregexp engine from V8 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Do not break JSCRE build, pt 2. Created 6 years, 2 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
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 #ifndef VM_FLOW_GRAPH_H_ 5 #ifndef VM_FLOW_GRAPH_H_
6 #define VM_FLOW_GRAPH_H_ 6 #define VM_FLOW_GRAPH_H_
7 7
8 #include "vm/growable_array.h" 8 #include "vm/growable_array.h"
9 #include "vm/hash_map.h" 9 #include "vm/hash_map.h"
10 #include "vm/intermediate_language.h" 10 #include "vm/intermediate_language.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 } 113 }
114 intptr_t num_stack_locals() const { 114 intptr_t num_stack_locals() const {
115 return num_stack_locals_; 115 return num_stack_locals_;
116 } 116 }
117 intptr_t num_copied_params() const { 117 intptr_t num_copied_params() const {
118 return num_copied_params_; 118 return num_copied_params_;
119 } 119 }
120 intptr_t num_non_copied_params() const { 120 intptr_t num_non_copied_params() const {
121 return num_non_copied_params_; 121 return num_non_copied_params_;
122 } 122 }
123 bool IsIrregexpFunction() const {
124 return parsed_function().function().IsIrregexpFunction();
125 }
123 126
124 // Flow graph orders. 127 // Flow graph orders.
125 const GrowableArray<BlockEntryInstr*>& preorder() const { 128 const GrowableArray<BlockEntryInstr*>& preorder() const {
126 return preorder_; 129 return preorder_;
127 } 130 }
128 const GrowableArray<BlockEntryInstr*>& postorder() const { 131 const GrowableArray<BlockEntryInstr*>& postorder() const {
129 return postorder_; 132 return postorder_;
130 } 133 }
131 const GrowableArray<BlockEntryInstr*>& reverse_postorder() const { 134 const GrowableArray<BlockEntryInstr*>& reverse_postorder() const {
132 return reverse_postorder_; 135 return reverse_postorder_;
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 // Per block sets of available blocks. Block A is available at the block B if 453 // Per block sets of available blocks. Block A is available at the block B if
451 // and only if A dominates B and all paths from A to B are free of side 454 // and only if A dominates B and all paths from A to B are free of side
452 // effects. 455 // effects.
453 GrowableArray<BitVector*> available_at_; 456 GrowableArray<BitVector*> available_at_;
454 }; 457 };
455 458
456 459
457 } // namespace dart 460 } // namespace dart
458 461
459 #endif // VM_FLOW_GRAPH_H_ 462 #endif // VM_FLOW_GRAPH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698