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 6604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6615 inline String* Pattern(); | 6615 inline String* Pattern(); |
6616 inline Object* DataAt(int index); | 6616 inline Object* DataAt(int index); |
6617 // Set implementation data after the object has been prepared. | 6617 // Set implementation data after the object has been prepared. |
6618 inline void SetDataAt(int index, Object* value); | 6618 inline void SetDataAt(int index, Object* value); |
6619 | 6619 |
6620 // Used during GC when flushing code or setting age. | 6620 // Used during GC when flushing code or setting age. |
6621 inline Object* DataAtUnchecked(int index); | 6621 inline Object* DataAtUnchecked(int index); |
6622 inline void SetDataAtUnchecked(int index, Object* value, Heap* heap); | 6622 inline void SetDataAtUnchecked(int index, Object* value, Heap* heap); |
6623 inline Type TypeTagUnchecked(); | 6623 inline Type TypeTagUnchecked(); |
6624 | 6624 |
6625 static inline void ResetLastIndex(Isolate* isolate, Handle<JSRegExp> regexp); | |
6626 | |
6627 static int code_index(bool is_ascii) { | 6625 static int code_index(bool is_ascii) { |
6628 if (is_ascii) { | 6626 if (is_ascii) { |
6629 return kIrregexpASCIICodeIndex; | 6627 return kIrregexpASCIICodeIndex; |
6630 } else { | 6628 } else { |
6631 return kIrregexpUC16CodeIndex; | 6629 return kIrregexpUC16CodeIndex; |
6632 } | 6630 } |
6633 } | 6631 } |
6634 | 6632 |
6635 static int saved_code_index(bool is_ascii) { | 6633 static int saved_code_index(bool is_ascii) { |
6636 if (is_ascii) { | 6634 if (is_ascii) { |
(...skipping 2243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8880 } else { | 8878 } else { |
8881 value &= ~(1 << bit_position); | 8879 value &= ~(1 << bit_position); |
8882 } | 8880 } |
8883 return value; | 8881 return value; |
8884 } | 8882 } |
8885 }; | 8883 }; |
8886 | 8884 |
8887 } } // namespace v8::internal | 8885 } } // namespace v8::internal |
8888 | 8886 |
8889 #endif // V8_OBJECTS_H_ | 8887 #endif // V8_OBJECTS_H_ |
OLD | NEW |