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

Side by Side Diff: src/objects.h

Issue 42115: Faster string.replace with regexp pattern. (Closed)
Patch Set: Addressed review comments Created 11 years, 9 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
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 2985 matching lines...) Expand 10 before | Expand all | Expand 10 after
2996 bool is_ignore_case() { return (value_ & IGNORE_CASE) != 0; } 2996 bool is_ignore_case() { return (value_ & IGNORE_CASE) != 0; }
2997 bool is_multiline() { return (value_ & MULTILINE) != 0; } 2997 bool is_multiline() { return (value_ & MULTILINE) != 0; }
2998 uint32_t value() { return value_; } 2998 uint32_t value() { return value_; }
2999 private: 2999 private:
3000 uint32_t value_; 3000 uint32_t value_;
3001 }; 3001 };
3002 3002
3003 DECL_ACCESSORS(data, Object) 3003 DECL_ACCESSORS(data, Object)
3004 3004
3005 inline Type TypeTag(); 3005 inline Type TypeTag();
3006 inline int CaptureCount();
3006 inline Flags GetFlags(); 3007 inline Flags GetFlags();
3007 inline String* Pattern(); 3008 inline String* Pattern();
3008 inline Object* DataAt(int index); 3009 inline Object* DataAt(int index);
3009 // Set implementation data after the object has been prepared. 3010 // Set implementation data after the object has been prepared.
3010 inline void SetDataAt(int index, Object* value); 3011 inline void SetDataAt(int index, Object* value);
3011 3012
3012 static inline JSRegExp* cast(Object* obj); 3013 static inline JSRegExp* cast(Object* obj);
3013 3014
3014 // Dispatched behavior. 3015 // Dispatched behavior.
3015 #ifdef DEBUG 3016 #ifdef DEBUG
(...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after
4299 } else { 4300 } else {
4300 value &= ~(1 << bit_position); 4301 value &= ~(1 << bit_position);
4301 } 4302 }
4302 return value; 4303 return value;
4303 } 4304 }
4304 }; 4305 };
4305 4306
4306 } } // namespace v8::internal 4307 } } // namespace v8::internal
4307 4308
4308 #endif // V8_OBJECTS_H_ 4309 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/jsregexp.cc ('k') | src/objects-debug.cc » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698