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

Side by Side Diff: src/objects.h

Issue 11451005: Fix spec violations related to regexp.lastIndex (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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') | no next file with comments »
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 6628 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698