| 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 8499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8510 Handle<String> flags_string); | 8510 Handle<String> flags_string); |
| 8511 | 8511 |
| 8512 inline Type TypeTag(); | 8512 inline Type TypeTag(); |
| 8513 inline int CaptureCount(); | 8513 inline int CaptureCount(); |
| 8514 inline Flags GetFlags(); | 8514 inline Flags GetFlags(); |
| 8515 inline String* Pattern(); | 8515 inline String* Pattern(); |
| 8516 inline Object* DataAt(int index); | 8516 inline Object* DataAt(int index); |
| 8517 // Set implementation data after the object has been prepared. | 8517 // Set implementation data after the object has been prepared. |
| 8518 inline void SetDataAt(int index, Object* value); | 8518 inline void SetDataAt(int index, Object* value); |
| 8519 | 8519 |
| 8520 inline void SetLastIndex(int index); |
| 8521 inline Object* LastIndex(); |
| 8522 |
| 8520 static int code_index(bool is_latin1) { | 8523 static int code_index(bool is_latin1) { |
| 8521 if (is_latin1) { | 8524 if (is_latin1) { |
| 8522 return kIrregexpLatin1CodeIndex; | 8525 return kIrregexpLatin1CodeIndex; |
| 8523 } else { | 8526 } else { |
| 8524 return kIrregexpUC16CodeIndex; | 8527 return kIrregexpUC16CodeIndex; |
| 8525 } | 8528 } |
| 8526 } | 8529 } |
| 8527 | 8530 |
| 8528 static int saved_code_index(bool is_latin1) { | 8531 static int saved_code_index(bool is_latin1) { |
| 8529 if (is_latin1) { | 8532 if (is_latin1) { |
| (...skipping 2875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11405 } | 11408 } |
| 11406 return value; | 11409 return value; |
| 11407 } | 11410 } |
| 11408 }; | 11411 }; |
| 11409 | 11412 |
| 11410 | 11413 |
| 11411 } // NOLINT, false-positive due to second-order macros. | 11414 } // NOLINT, false-positive due to second-order macros. |
| 11412 } // NOLINT, false-positive due to second-order macros. | 11415 } // NOLINT, false-positive due to second-order macros. |
| 11413 | 11416 |
| 11414 #endif // V8_OBJECTS_H_ | 11417 #endif // V8_OBJECTS_H_ |
| OLD | NEW |