| 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 8287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8298 // ATOM: A simple string to match against using an indexOf operation. | 8298 // ATOM: A simple string to match against using an indexOf operation. |
| 8299 // IRREGEXP: Compiled with Irregexp. | 8299 // IRREGEXP: Compiled with Irregexp. |
| 8300 enum Type { NOT_COMPILED, ATOM, IRREGEXP }; | 8300 enum Type { NOT_COMPILED, ATOM, IRREGEXP }; |
| 8301 enum Flag { | 8301 enum Flag { |
| 8302 kNone = 0, | 8302 kNone = 0, |
| 8303 kGlobal = 1 << 0, | 8303 kGlobal = 1 << 0, |
| 8304 kIgnoreCase = 1 << 1, | 8304 kIgnoreCase = 1 << 1, |
| 8305 kMultiline = 1 << 2, | 8305 kMultiline = 1 << 2, |
| 8306 kSticky = 1 << 3, | 8306 kSticky = 1 << 3, |
| 8307 kUnicode = 1 << 4, | 8307 kUnicode = 1 << 4, |
| 8308 kDotAll = 1 << 5, |
| 8308 }; | 8309 }; |
| 8309 typedef base::Flags<Flag> Flags; | 8310 typedef base::Flags<Flag> Flags; |
| 8310 | 8311 |
| 8311 DECL_ACCESSORS(data, Object) | 8312 DECL_ACCESSORS(data, Object) |
| 8312 DECL_ACCESSORS(flags, Object) | 8313 DECL_ACCESSORS(flags, Object) |
| 8313 DECL_ACCESSORS(source, Object) | 8314 DECL_ACCESSORS(source, Object) |
| 8314 | 8315 |
| 8315 V8_EXPORT_PRIVATE static MaybeHandle<JSRegExp> New(Handle<String> source, | 8316 V8_EXPORT_PRIVATE static MaybeHandle<JSRegExp> New(Handle<String> source, |
| 8316 Flags flags); | 8317 Flags flags); |
| 8317 static Handle<JSRegExp> Copy(Handle<JSRegExp> regexp); | 8318 static Handle<JSRegExp> Copy(Handle<JSRegExp> regexp); |
| (...skipping 3068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11386 } | 11387 } |
| 11387 }; | 11388 }; |
| 11388 | 11389 |
| 11389 | 11390 |
| 11390 } // NOLINT, false-positive due to second-order macros. | 11391 } // NOLINT, false-positive due to second-order macros. |
| 11391 } // NOLINT, false-positive due to second-order macros. | 11392 } // NOLINT, false-positive due to second-order macros. |
| 11392 | 11393 |
| 11393 #include "src/objects/object-macros-undef.h" | 11394 #include "src/objects/object-macros-undef.h" |
| 11394 | 11395 |
| 11395 #endif // V8_OBJECTS_H_ | 11396 #endif // V8_OBJECTS_H_ |
| OLD | NEW |