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

Side by Side Diff: src/objects.h

Issue 1432683002: 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 7768 matching lines...) Expand 10 before | Expand all | Expand 10 after
7779 FixedArray::kHeaderSize + kTagIndex * kPointerSize; 7779 FixedArray::kHeaderSize + kTagIndex * kPointerSize;
7780 static const int kDataOneByteCodeOffset = 7780 static const int kDataOneByteCodeOffset =
7781 FixedArray::kHeaderSize + kIrregexpLatin1CodeIndex * kPointerSize; 7781 FixedArray::kHeaderSize + kIrregexpLatin1CodeIndex * kPointerSize;
7782 static const int kDataUC16CodeOffset = 7782 static const int kDataUC16CodeOffset =
7783 FixedArray::kHeaderSize + kIrregexpUC16CodeIndex * kPointerSize; 7783 FixedArray::kHeaderSize + kIrregexpUC16CodeIndex * kPointerSize;
7784 static const int kIrregexpCaptureCountOffset = 7784 static const int kIrregexpCaptureCountOffset =
7785 FixedArray::kHeaderSize + kIrregexpCaptureCountIndex * kPointerSize; 7785 FixedArray::kHeaderSize + kIrregexpCaptureCountIndex * kPointerSize;
7786 7786
7787 // In-object fields. 7787 // In-object fields.
7788 static const int kSourceFieldIndex = 0; 7788 static const int kSourceFieldIndex = 0;
7789 static const int kFlagsFieldIndex = 1; 7789 static const int kGlobalFieldIndex = 1;
7790 static const int kLastIndexFieldIndex = 2; 7790 static const int kIgnoreCaseFieldIndex = 2;
7791 static const int kInObjectFieldCount = 3; 7791 static const int kMultilineFieldIndex = 3;
7792 static const int kLastIndexFieldIndex = 4;
7793 static const int kInObjectFieldCount = 5;
7792 7794
7793 // The uninitialized value for a regexp code object. 7795 // The uninitialized value for a regexp code object.
7794 static const int kUninitializedValue = -1; 7796 static const int kUninitializedValue = -1;
7795 7797
7796 // The compilation error value for the regexp code object. The real error 7798 // The compilation error value for the regexp code object. The real error
7797 // object is in the saved code field. 7799 // object is in the saved code field.
7798 static const int kCompilationErrorValue = -2; 7800 static const int kCompilationErrorValue = -2;
7799 7801
7800 // When we store the sweep generation at which we moved the code from the 7802 // When we store the sweep generation at which we moved the code from the
7801 // code index to the saved code index we mask it of to be in the [0:255] 7803 // 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
10801 // (elements + properties) in the current level. 10803 // (elements + properties) in the current level.
10802 int levelLength_ = 0; 10804 int levelLength_ = 0;
10803 10805
10804 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); 10806 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator);
10805 }; 10807 };
10806 10808
10807 } // NOLINT, false-positive due to second-order macros. 10809 } // NOLINT, false-positive due to second-order macros.
10808 } // NOLINT, false-positive due to second-order macros. 10810 } // NOLINT, false-positive due to second-order macros.
10809 10811
10810 #endif // V8_OBJECTS_H_ 10812 #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