| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 3253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3264 DECL_ACCESSORS(data, Object) | 3264 DECL_ACCESSORS(data, Object) |
| 3265 | 3265 |
| 3266 inline Type TypeTag(); | 3266 inline Type TypeTag(); |
| 3267 inline int CaptureCount(); | 3267 inline int CaptureCount(); |
| 3268 inline Flags GetFlags(); | 3268 inline Flags GetFlags(); |
| 3269 inline String* Pattern(); | 3269 inline String* Pattern(); |
| 3270 inline Object* DataAt(int index); | 3270 inline Object* DataAt(int index); |
| 3271 // Set implementation data after the object has been prepared. | 3271 // Set implementation data after the object has been prepared. |
| 3272 inline void SetDataAt(int index, Object* value); | 3272 inline void SetDataAt(int index, Object* value); |
| 3273 static int code_index(bool is_ascii) { | 3273 static int code_index(bool is_ascii) { |
| 3274 return is_ascii ? kIrregexpASCIICodeIndex : kIrregexpUC16CodeIndex; | 3274 if (is_ascii) { |
| 3275 return kIrregexpASCIICodeIndex; |
| 3276 } else { |
| 3277 return kIrregexpUC16CodeIndex; |
| 3278 } |
| 3275 } | 3279 } |
| 3276 | 3280 |
| 3277 static inline JSRegExp* cast(Object* obj); | 3281 static inline JSRegExp* cast(Object* obj); |
| 3278 | 3282 |
| 3279 // Dispatched behavior. | 3283 // Dispatched behavior. |
| 3280 #ifdef DEBUG | 3284 #ifdef DEBUG |
| 3281 void JSRegExpVerify(); | 3285 void JSRegExpVerify(); |
| 3282 #endif | 3286 #endif |
| 3283 | 3287 |
| 3284 static const int kDataOffset = JSObject::kHeaderSize; | 3288 static const int kDataOffset = JSObject::kHeaderSize; |
| (...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4617 } else { | 4621 } else { |
| 4618 value &= ~(1 << bit_position); | 4622 value &= ~(1 << bit_position); |
| 4619 } | 4623 } |
| 4620 return value; | 4624 return value; |
| 4621 } | 4625 } |
| 4622 }; | 4626 }; |
| 4623 | 4627 |
| 4624 } } // namespace v8::internal | 4628 } } // namespace v8::internal |
| 4625 | 4629 |
| 4626 #endif // V8_OBJECTS_H_ | 4630 #endif // V8_OBJECTS_H_ |
| OLD | NEW |