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

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

Issue 12469: * Better factoring of ARM/IA32 code in irregexp. (Closed)
Patch Set: Dropped the unifying ...-native.h file. Created 12 years 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
« no previous file with comments | « src/jsregexp.cc ('k') | src/macro-assembler.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 2008 the V8 project authors. All rights reserved. 1 // Copyright 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 15 matching lines...) Expand all
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 #include "regexp-macro-assembler.h"
34 34
35 35
36 namespace v8 { namespace internal { 36 namespace v8 {
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.
43 root_ = new Node(key, C::kNoValue); 44 root_ = new Node(key, C::kNoValue);
44 } else { 45 } else {
45 // Splay on the key to move the last node on the search path 46 // Splay on the key to move the last node on the search path
46 // for the key to the root of the tree. 47 // for the key to the root of the tree.
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
256 void RegExpNode::Bind(RegExpMacroAssembler* macro) { 257 void RegExpNode::Bind(RegExpMacroAssembler* macro) {
257 macro->Bind(&label_); 258 macro->Bind(&label_);
258 } 259 }
259 260
260 261
261 }} // namespace v8::internal 262 } // namespace internal
263 } // namespace v8
262 264
263 265
264 #endif // V8_JSREGEXP_INL_H_ 266 #endif // V8_JSREGEXP_INL_H_
OLDNEW
« no previous file with comments | « src/jsregexp.cc ('k') | src/macro-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698