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

Unified Diff: src/jsregexp-inl.h

Issue 10254: Rudimentary analysis (Closed)
Patch Set: Created 12 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 side-by-side diff with in-line comments
Download patch
Index: src/jsregexp-inl.h
diff --git a/src/jsregexp-inl.h b/src/jsregexp-inl.h
index 00571ee0574b81a416ea2968f54801372c4d258c..b28a9df9167c7bfaaa16269c69530c744d3a8ef2 100644
--- a/src/jsregexp-inl.h
+++ b/src/jsregexp-inl.h
@@ -244,6 +244,15 @@ void ZoneSplayTree<C>::Splay(const Key& key) {
}
+template <typename Node, class Callback>
+static void DoForEach(Node* node, Callback callback) {
+ if (node == NULL) return;
+ DoForEach<Node, Callback>(node->left(), callback);
+ callback.Call(node->key(), node->value());
+ DoForEach<Node, Callback>(node->right(), callback);
+}
+
+
OutSet::OutSet(unsigned value)
: first_(0),
remaining_(NULL) {

Powered by Google App Engine
This is Rietveld 408576698