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 8533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8544 Handle<String> flags_string); | 8544 Handle<String> flags_string); |
8545 | 8545 |
8546 inline Type TypeTag(); | 8546 inline Type TypeTag(); |
8547 inline int CaptureCount(); | 8547 inline int CaptureCount(); |
8548 inline Flags GetFlags(); | 8548 inline Flags GetFlags(); |
8549 inline String* Pattern(); | 8549 inline String* Pattern(); |
8550 inline Object* DataAt(int index); | 8550 inline Object* DataAt(int index); |
8551 // Set implementation data after the object has been prepared. | 8551 // Set implementation data after the object has been prepared. |
8552 inline void SetDataAt(int index, Object* value); | 8552 inline void SetDataAt(int index, Object* value); |
8553 | 8553 |
8554 inline void SetLastIndex(int index); | |
8555 inline Object* LastIndex(); | |
8556 | |
8557 static int code_index(bool is_latin1) { | 8554 static int code_index(bool is_latin1) { |
8558 if (is_latin1) { | 8555 if (is_latin1) { |
8559 return kIrregexpLatin1CodeIndex; | 8556 return kIrregexpLatin1CodeIndex; |
8560 } else { | 8557 } else { |
8561 return kIrregexpUC16CodeIndex; | 8558 return kIrregexpUC16CodeIndex; |
8562 } | 8559 } |
8563 } | 8560 } |
8564 | 8561 |
8565 static int saved_code_index(bool is_latin1) { | 8562 static int saved_code_index(bool is_latin1) { |
8566 if (is_latin1) { | 8563 if (is_latin1) { |
(...skipping 2879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11446 } | 11443 } |
11447 return value; | 11444 return value; |
11448 } | 11445 } |
11449 }; | 11446 }; |
11450 | 11447 |
11451 | 11448 |
11452 } // NOLINT, false-positive due to second-order macros. | 11449 } // NOLINT, false-positive due to second-order macros. |
11453 } // NOLINT, false-positive due to second-order macros. | 11450 } // NOLINT, false-positive due to second-order macros. |
11454 | 11451 |
11455 #endif // V8_OBJECTS_H_ | 11452 #endif // V8_OBJECTS_H_ |
OLD | NEW |