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

Unified Diff: src/objects.h

Issue 1421593009: Revert of Use in-object fields instead of private symbols for regexp slots. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/js/string.js ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 272d182550b594ee045935d659aa57cc08a3c335..de22fbf2f5b65706dae7929929114ce23fe79bd1 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7717,8 +7717,6 @@
};
DECL_ACCESSORS(data, Object)
- DECL_ACCESSORS(flags, Object)
- DECL_ACCESSORS(source, Object)
inline Type TypeTag();
inline int CaptureCount();
@@ -7751,9 +7749,7 @@
DECLARE_VERIFIER(JSRegExp)
static const int kDataOffset = JSObject::kHeaderSize;
- static const int kSourceOffset = kDataOffset + kPointerSize;
- static const int kFlagsOffset = kSourceOffset + kPointerSize;
- static const int kSize = kFlagsOffset + kPointerSize;
+ static const int kSize = kDataOffset + kPointerSize;
// Indices in the data array.
static const int kTagIndex = 0;
@@ -7802,8 +7798,10 @@
FixedArray::kHeaderSize + kIrregexpCaptureCountIndex * kPointerSize;
// In-object fields.
- static const int kLastIndexFieldIndex = 0;
- static const int kInObjectFieldCount = 1;
+ static const int kSourceFieldIndex = 0;
+ static const int kFlagsFieldIndex = 1;
+ static const int kLastIndexFieldIndex = 2;
+ static const int kInObjectFieldCount = 3;
// The uninitialized value for a regexp code object.
static const int kUninitializedValue = -1;
« no previous file with comments | « src/js/string.js ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698