| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 8225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8236 // ATOM: A simple string to match against using an indexOf operation. | 8236 // ATOM: A simple string to match against using an indexOf operation. |
| 8237 // IRREGEXP: Compiled with Irregexp. | 8237 // IRREGEXP: Compiled with Irregexp. |
| 8238 enum Type { NOT_COMPILED, ATOM, IRREGEXP }; | 8238 enum Type { NOT_COMPILED, ATOM, IRREGEXP }; |
| 8239 enum Flag { | 8239 enum Flag { |
| 8240 kNone = 0, | 8240 kNone = 0, |
| 8241 kGlobal = 1 << 0, | 8241 kGlobal = 1 << 0, |
| 8242 kIgnoreCase = 1 << 1, | 8242 kIgnoreCase = 1 << 1, |
| 8243 kMultiline = 1 << 2, | 8243 kMultiline = 1 << 2, |
| 8244 kSticky = 1 << 3, | 8244 kSticky = 1 << 3, |
| 8245 kUnicode = 1 << 4, | 8245 kUnicode = 1 << 4, |
| 8246 kDotAll = 1 << 5, |
| 8246 }; | 8247 }; |
| 8247 typedef base::Flags<Flag> Flags; | 8248 typedef base::Flags<Flag> Flags; |
| 8248 | 8249 |
| 8249 DECL_ACCESSORS(data, Object) | 8250 DECL_ACCESSORS(data, Object) |
| 8250 DECL_ACCESSORS(flags, Object) | 8251 DECL_ACCESSORS(flags, Object) |
| 8251 DECL_ACCESSORS(source, Object) | 8252 DECL_ACCESSORS(source, Object) |
| 8252 | 8253 |
| 8253 V8_EXPORT_PRIVATE static MaybeHandle<JSRegExp> New(Handle<String> source, | 8254 V8_EXPORT_PRIVATE static MaybeHandle<JSRegExp> New(Handle<String> source, |
| 8254 Flags flags); | 8255 Flags flags); |
| 8255 static Handle<JSRegExp> Copy(Handle<JSRegExp> regexp); | 8256 static Handle<JSRegExp> Copy(Handle<JSRegExp> regexp); |
| (...skipping 3068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11324 } | 11325 } |
| 11325 }; | 11326 }; |
| 11326 | 11327 |
| 11327 | 11328 |
| 11328 } // NOLINT, false-positive due to second-order macros. | 11329 } // NOLINT, false-positive due to second-order macros. |
| 11329 } // NOLINT, false-positive due to second-order macros. | 11330 } // NOLINT, false-positive due to second-order macros. |
| 11330 | 11331 |
| 11331 #include "src/objects/object-macros-undef.h" | 11332 #include "src/objects/object-macros-undef.h" |
| 11332 | 11333 |
| 11333 #endif // V8_OBJECTS_H_ | 11334 #endif // V8_OBJECTS_H_ |
| OLD | NEW |