Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: src/objects.h

Issue 11896060: Correctly reset lastIndex in an RegExp object. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: . Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 6555 matching lines...) Expand 10 before | Expand all | Expand 10 after
6566 inline Flags GetFlags(); 6566 inline Flags GetFlags();
6567 inline String* Pattern(); 6567 inline String* Pattern();
6568 inline Object* DataAt(int index); 6568 inline Object* DataAt(int index);
6569 // Set implementation data after the object has been prepared. 6569 // Set implementation data after the object has been prepared.
6570 inline void SetDataAt(int index, Object* value); 6570 inline void SetDataAt(int index, Object* value);
6571 6571
6572 // Used during GC when flushing code or setting age. 6572 // Used during GC when flushing code or setting age.
6573 inline Object* DataAtUnchecked(int index); 6573 inline Object* DataAtUnchecked(int index);
6574 inline void SetDataAtUnchecked(int index, Object* value, Heap* heap); 6574 inline void SetDataAtUnchecked(int index, Object* value, Heap* heap);
6575 inline Type TypeTagUnchecked(); 6575 inline Type TypeTagUnchecked();
6576 inline void ResetLastIndex(); 6576
6577 static inline void ResetLastIndex(Isolate* isolate, Handle<JSRegExp> regexp);
6577 6578
6578 static int code_index(bool is_ascii) { 6579 static int code_index(bool is_ascii) {
6579 if (is_ascii) { 6580 if (is_ascii) {
6580 return kIrregexpASCIICodeIndex; 6581 return kIrregexpASCIICodeIndex;
6581 } else { 6582 } else {
6582 return kIrregexpUC16CodeIndex; 6583 return kIrregexpUC16CodeIndex;
6583 } 6584 }
6584 } 6585 }
6585 6586
6586 static int saved_code_index(bool is_ascii) { 6587 static int saved_code_index(bool is_ascii) {
(...skipping 2244 matching lines...) Expand 10 before | Expand all | Expand 10 after
8831 } else { 8832 } else {
8832 value &= ~(1 << bit_position); 8833 value &= ~(1 << bit_position);
8833 } 8834 }
8834 return value; 8835 return value;
8835 } 8836 }
8836 }; 8837 };
8837 8838
8838 } } // namespace v8::internal 8839 } } // namespace v8::internal
8839 8840
8840 #endif // V8_OBJECTS_H_ 8841 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698