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

Side by Side Diff: src/objects.h

Issue 1427733005: Revert of Implement flag and source getters on RegExp.prototype. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@rproto
Patch Set: 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
« no previous file with comments | « src/messages.h ('k') | src/runtime/runtime-regexp.cc » ('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 // 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 7794 matching lines...) Expand 10 before | Expand all | Expand 10 after
7805 FixedArray::kHeaderSize + kTagIndex * kPointerSize; 7805 FixedArray::kHeaderSize + kTagIndex * kPointerSize;
7806 static const int kDataOneByteCodeOffset = 7806 static const int kDataOneByteCodeOffset =
7807 FixedArray::kHeaderSize + kIrregexpLatin1CodeIndex * kPointerSize; 7807 FixedArray::kHeaderSize + kIrregexpLatin1CodeIndex * kPointerSize;
7808 static const int kDataUC16CodeOffset = 7808 static const int kDataUC16CodeOffset =
7809 FixedArray::kHeaderSize + kIrregexpUC16CodeIndex * kPointerSize; 7809 FixedArray::kHeaderSize + kIrregexpUC16CodeIndex * kPointerSize;
7810 static const int kIrregexpCaptureCountOffset = 7810 static const int kIrregexpCaptureCountOffset =
7811 FixedArray::kHeaderSize + kIrregexpCaptureCountIndex * kPointerSize; 7811 FixedArray::kHeaderSize + kIrregexpCaptureCountIndex * kPointerSize;
7812 7812
7813 // In-object fields. 7813 // In-object fields.
7814 static const int kSourceFieldIndex = 0; 7814 static const int kSourceFieldIndex = 0;
7815 static const int kFlagsFieldIndex = 1; 7815 static const int kGlobalFieldIndex = 1;
7816 static const int kLastIndexFieldIndex = 2; 7816 static const int kIgnoreCaseFieldIndex = 2;
7817 static const int kInObjectFieldCount = 3; 7817 static const int kMultilineFieldIndex = 3;
7818 static const int kLastIndexFieldIndex = 4;
7819 static const int kInObjectFieldCount = 5;
7818 7820
7819 // The uninitialized value for a regexp code object. 7821 // The uninitialized value for a regexp code object.
7820 static const int kUninitializedValue = -1; 7822 static const int kUninitializedValue = -1;
7821 7823
7822 // The compilation error value for the regexp code object. The real error 7824 // The compilation error value for the regexp code object. The real error
7823 // object is in the saved code field. 7825 // object is in the saved code field.
7824 static const int kCompilationErrorValue = -2; 7826 static const int kCompilationErrorValue = -2;
7825 7827
7826 // When we store the sweep generation at which we moved the code from the 7828 // When we store the sweep generation at which we moved the code from the
7827 // code index to the saved code index we mask it of to be in the [0:255] 7829 // code index to the saved code index we mask it of to be in the [0:255]
(...skipping 2999 matching lines...) Expand 10 before | Expand all | Expand 10 after
10827 // (elements + properties) in the current level. 10829 // (elements + properties) in the current level.
10828 int levelLength_ = 0; 10830 int levelLength_ = 0;
10829 10831
10830 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); 10832 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator);
10831 }; 10833 };
10832 10834
10833 } // NOLINT, false-positive due to second-order macros. 10835 } // NOLINT, false-positive due to second-order macros.
10834 } // NOLINT, false-positive due to second-order macros. 10836 } // NOLINT, false-positive due to second-order macros.
10835 10837
10836 #endif // V8_OBJECTS_H_ 10838 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.h ('k') | src/runtime/runtime-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698