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

Side by Side Diff: src/jsregexp-inl.h

Issue 11228: * No failures on our own tests.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/regexp2000/
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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 12 matching lines...) Expand all
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_JSREGEXP_INL_H_ 28 #ifndef V8_JSREGEXP_INL_H_
29 #define V8_JSREGEXP_INL_H_ 29 #define V8_JSREGEXP_INL_H_
30 30
31 31
32 #include "jsregexp.h" 32 #include "jsregexp.h"
33 #include "regexp-macro-assembler.h"
33 34
34 35
35 namespace v8 { 36 namespace v8 {
36 namespace internal { 37 namespace internal {
37 38
38 39
39 template <typename C> 40 template <typename C>
40 bool ZoneSplayTree<C>::Insert(const Key& key, Locator* locator) { 41 bool ZoneSplayTree<C>::Insert(const Key& key, Locator* locator) {
41 if (is_empty()) { 42 if (is_empty()) {
42 // If the tree is empty, insert the new node. 43 // If the tree is empty, insert the new node.
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 247
247 template <typename Node, class Callback> 248 template <typename Node, class Callback>
248 static void DoForEach(Node* node, Callback* callback) { 249 static void DoForEach(Node* node, Callback* callback) {
249 if (node == NULL) return; 250 if (node == NULL) return;
250 DoForEach<Node, Callback>(node->left(), callback); 251 DoForEach<Node, Callback>(node->left(), callback);
251 callback->Call(node->key(), node->value()); 252 callback->Call(node->key(), node->value());
252 DoForEach<Node, Callback>(node->right(), callback); 253 DoForEach<Node, Callback>(node->right(), callback);
253 } 254 }
254 255
255 256
257 void RegExpNode::Bind(RegExpMacroAssembler* macro) {
258 macro->Bind(&label_);
259 }
260
261
256 } // namespace internal 262 } // namespace internal
257 } // namespace v8 263 } // namespace v8
258 264
259 265
260 #endif // V8_JSREGEXP_INL_H_ 266 #endif // V8_JSREGEXP_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698