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

Side by Side Diff: src/objects.h

Issue 1419823010: Implement flag and source getters on RegExp.prototype. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@rproto
Patch Set: new webkit expectations Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 7763 matching lines...) Expand 10 before | Expand all | Expand 10 after
7774 FixedArray::kHeaderSize + kTagIndex * kPointerSize; 7774 FixedArray::kHeaderSize + kTagIndex * kPointerSize;
7775 static const int kDataOneByteCodeOffset = 7775 static const int kDataOneByteCodeOffset =
7776 FixedArray::kHeaderSize + kIrregexpLatin1CodeIndex * kPointerSize; 7776 FixedArray::kHeaderSize + kIrregexpLatin1CodeIndex * kPointerSize;
7777 static const int kDataUC16CodeOffset = 7777 static const int kDataUC16CodeOffset =
7778 FixedArray::kHeaderSize + kIrregexpUC16CodeIndex * kPointerSize; 7778 FixedArray::kHeaderSize + kIrregexpUC16CodeIndex * kPointerSize;
7779 static const int kIrregexpCaptureCountOffset = 7779 static const int kIrregexpCaptureCountOffset =
7780 FixedArray::kHeaderSize + kIrregexpCaptureCountIndex * kPointerSize; 7780 FixedArray::kHeaderSize + kIrregexpCaptureCountIndex * kPointerSize;
7781 7781
7782 // In-object fields. 7782 // In-object fields.
7783 static const int kSourceFieldIndex = 0; 7783 static const int kSourceFieldIndex = 0;
7784 static const int kGlobalFieldIndex = 1; 7784 static const int kFlagsFieldIndex = 1;
7785 static const int kIgnoreCaseFieldIndex = 2; 7785 static const int kLastIndexFieldIndex = 2;
7786 static const int kMultilineFieldIndex = 3; 7786 static const int kInObjectFieldCount = 3;
7787 static const int kLastIndexFieldIndex = 4;
7788 static const int kInObjectFieldCount = 5;
7789 7787
7790 // The uninitialized value for a regexp code object. 7788 // The uninitialized value for a regexp code object.
7791 static const int kUninitializedValue = -1; 7789 static const int kUninitializedValue = -1;
7792 7790
7793 // The compilation error value for the regexp code object. The real error 7791 // The compilation error value for the regexp code object. The real error
7794 // object is in the saved code field. 7792 // object is in the saved code field.
7795 static const int kCompilationErrorValue = -2; 7793 static const int kCompilationErrorValue = -2;
7796 7794
7797 // When we store the sweep generation at which we moved the code from the 7795 // When we store the sweep generation at which we moved the code from the
7798 // code index to the saved code index we mask it of to be in the [0:255] 7796 // code index to the saved code index we mask it of to be in the [0:255]
(...skipping 2938 matching lines...) Expand 10 before | Expand all | Expand 10 after
10737 } 10735 }
10738 return value; 10736 return value;
10739 } 10737 }
10740 }; 10738 };
10741 10739
10742 10740
10743 } // NOLINT, false-positive due to second-order macros. 10741 } // NOLINT, false-positive due to second-order macros.
10744 } // NOLINT, false-positive due to second-order macros. 10742 } // NOLINT, false-positive due to second-order macros.
10745 10743
10746 #endif // V8_OBJECTS_H_ 10744 #endif // V8_OBJECTS_H_
OLDNEW
« src/bootstrapper.cc ('K') | « src/messages.h ('k') | src/runtime/runtime-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698