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

Side by Side Diff: src/objects.h

Issue 6076: Added special case for atomic regular expressions. (Closed)
Patch Set: Created 12 years, 2 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
« no previous file with comments | « src/log.cc ('k') | src/objects-debug.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 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 2794 matching lines...) Expand 10 before | Expand all | Expand 10 after
2805 static const int kSize = kValueOffset + kPointerSize; 2805 static const int kSize = kValueOffset + kPointerSize;
2806 2806
2807 private: 2807 private:
2808 DISALLOW_IMPLICIT_CONSTRUCTORS(JSValue); 2808 DISALLOW_IMPLICIT_CONSTRUCTORS(JSValue);
2809 }; 2809 };
2810 2810
2811 2811
2812 // Regular expressions 2812 // Regular expressions
2813 class JSRegExp: public JSObject { 2813 class JSRegExp: public JSObject {
2814 public: 2814 public:
2815 enum Type { JSCRE, INDEX_OF }; 2815 enum Type { JSCRE, ATOM };
2816 2816
2817 inline Type type_tag(); 2817 inline Type type_tag();
2818 inline void set_type_tag(Type value); 2818 inline void set_type_tag(Type value);
2819 2819
2820 DECL_ACCESSORS(type, Object) 2820 DECL_ACCESSORS(type, Object)
2821 DECL_ACCESSORS(data, Object) 2821 DECL_ACCESSORS(data, Object)
2822 2822
2823 static inline JSRegExp* cast(Object* obj); 2823 static inline JSRegExp* cast(Object* obj);
2824 2824
2825 // Dispatched behavior. 2825 // Dispatched behavior.
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
3909 } else { 3909 } else {
3910 value &= ~(1 << bit_position); 3910 value &= ~(1 << bit_position);
3911 } 3911 }
3912 return value; 3912 return value;
3913 } 3913 }
3914 }; 3914 };
3915 3915
3916 } } // namespace v8::internal 3916 } } // namespace v8::internal
3917 3917
3918 #endif // V8_OBJECTS_H_ 3918 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698