| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |