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

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

Issue 12470: * Lint fixes (Closed)
Patch Set: 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/regexp-macro-assembler-ia32.cc » ('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 { 36 namespace v8 { namespace internal {
37 namespace internal {
38 37
39 38
40 template <typename C> 39 template <typename C>
41 bool ZoneSplayTree<C>::Insert(const Key& key, Locator* locator) { 40 bool ZoneSplayTree<C>::Insert(const Key& key, Locator* locator) {
42 if (is_empty()) { 41 if (is_empty()) {
43 // If the tree is empty, insert the new node. 42 // If the tree is empty, insert the new node.
44 root_ = new Node(key, C::kNoValue); 43 root_ = new Node(key, C::kNoValue);
45 } else { 44 } else {
46 // Splay on the key to move the last node on the search path 45 // Splay on the key to move the last node on the search path
47 // for the key to the root of the tree. 46 // for the key to the root of the tree.
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 callback->Call(node->key(), node->value()); 251 callback->Call(node->key(), node->value());
253 DoForEach<Node, Callback>(node->right(), callback); 252 DoForEach<Node, Callback>(node->right(), callback);
254 } 253 }
255 254
256 255
257 void RegExpNode::Bind(RegExpMacroAssembler* macro) { 256 void RegExpNode::Bind(RegExpMacroAssembler* macro) {
258 macro->Bind(&label_); 257 macro->Bind(&label_);
259 } 258 }
260 259
261 260
262 } // namespace internal 261 }} // namespace v8::internal
263 } // namespace v8
264 262
265 263
266 #endif // V8_JSREGEXP_INL_H_ 264 #endif // V8_JSREGEXP_INL_H_
OLDNEW
« no previous file with comments | « src/jsregexp.cc ('k') | src/regexp-macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698