OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 6628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6639 inline Flags GetFlags(); | 6639 inline Flags GetFlags(); |
6640 inline String* Pattern(); | 6640 inline String* Pattern(); |
6641 inline Object* DataAt(int index); | 6641 inline Object* DataAt(int index); |
6642 // Set implementation data after the object has been prepared. | 6642 // Set implementation data after the object has been prepared. |
6643 inline void SetDataAt(int index, Object* value); | 6643 inline void SetDataAt(int index, Object* value); |
6644 | 6644 |
6645 // Used during GC when flushing code or setting age. | 6645 // Used during GC when flushing code or setting age. |
6646 inline Object* DataAtUnchecked(int index); | 6646 inline Object* DataAtUnchecked(int index); |
6647 inline void SetDataAtUnchecked(int index, Object* value, Heap* heap); | 6647 inline void SetDataAtUnchecked(int index, Object* value, Heap* heap); |
6648 inline Type TypeTagUnchecked(); | 6648 inline Type TypeTagUnchecked(); |
| 6649 inline void ResetLastIndex(); |
6649 | 6650 |
6650 static int code_index(bool is_ascii) { | 6651 static int code_index(bool is_ascii) { |
6651 if (is_ascii) { | 6652 if (is_ascii) { |
6652 return kIrregexpASCIICodeIndex; | 6653 return kIrregexpASCIICodeIndex; |
6653 } else { | 6654 } else { |
6654 return kIrregexpUC16CodeIndex; | 6655 return kIrregexpUC16CodeIndex; |
6655 } | 6656 } |
6656 } | 6657 } |
6657 | 6658 |
6658 static int saved_code_index(bool is_ascii) { | 6659 static int saved_code_index(bool is_ascii) { |
(...skipping 2337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8996 } else { | 8997 } else { |
8997 value &= ~(1 << bit_position); | 8998 value &= ~(1 << bit_position); |
8998 } | 8999 } |
8999 return value; | 9000 return value; |
9000 } | 9001 } |
9001 }; | 9002 }; |
9002 | 9003 |
9003 } } // namespace v8::internal | 9004 } } // namespace v8::internal |
9004 | 9005 |
9005 #endif // V8_OBJECTS_H_ | 9006 #endif // V8_OBJECTS_H_ |
OLD | NEW |