| OLD | NEW |
| 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 2947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2958 | 2958 |
| 2959 inline Type TypeTag(); | 2959 inline Type TypeTag(); |
| 2960 inline Flags GetFlags(); | 2960 inline Flags GetFlags(); |
| 2961 inline String* Pattern(); | 2961 inline String* Pattern(); |
| 2962 inline Object* DataAt(int index); | 2962 inline Object* DataAt(int index); |
| 2963 | 2963 |
| 2964 static inline JSRegExp* cast(Object* obj); | 2964 static inline JSRegExp* cast(Object* obj); |
| 2965 | 2965 |
| 2966 // Dispatched behavior. | 2966 // Dispatched behavior. |
| 2967 #ifdef DEBUG | 2967 #ifdef DEBUG |
| 2968 void JSRegExpPrint(); | |
| 2969 void JSRegExpVerify(); | 2968 void JSRegExpVerify(); |
| 2970 #endif | 2969 #endif |
| 2971 | 2970 |
| 2972 static const int kDataOffset = JSObject::kHeaderSize; | 2971 static const int kDataOffset = JSObject::kHeaderSize; |
| 2973 static const int kSize = kDataOffset + kIntSize; | 2972 static const int kSize = kDataOffset + kIntSize; |
| 2974 | 2973 |
| 2975 static const int kTagIndex = 0; | 2974 static const int kTagIndex = 0; |
| 2976 static const int kSourceIndex = kTagIndex + 1; | 2975 static const int kSourceIndex = kTagIndex + 1; |
| 2977 static const int kFlagsIndex = kSourceIndex + 1; | 2976 static const int kFlagsIndex = kSourceIndex + 1; |
| 2978 // These three are the same since the same entry is shared for | 2977 // These three are the same since the same entry is shared for |
| (...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4221 } else { | 4220 } else { |
| 4222 value &= ~(1 << bit_position); | 4221 value &= ~(1 << bit_position); |
| 4223 } | 4222 } |
| 4224 return value; | 4223 return value; |
| 4225 } | 4224 } |
| 4226 }; | 4225 }; |
| 4227 | 4226 |
| 4228 } } // namespace v8::internal | 4227 } } // namespace v8::internal |
| 4229 | 4228 |
| 4230 #endif // V8_OBJECTS_H_ | 4229 #endif // V8_OBJECTS_H_ |
| OLD | NEW |