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

Unified Diff: src/objects.h

Issue 1097113003: Fix unobservable constructor replacement on prototype maps (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: new approach: use prototype_info Created 5 years, 8 months 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/factory.cc ('k') | src/objects.cc » ('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 8b0477a983ab429e919ec83135a59f0533bf09f3..ba924109566bfd75bb5bbe3ac0aef93caa67855a 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -6641,6 +6641,8 @@ class PrototypeInfo : public Struct {
// [validity_cell]: Cell containing the validity bit for prototype chains
// going through this object, or Smi(0) if uninitialized.
DECL_ACCESSORS(validity_cell, Object)
+ // [constructor_name]: User-friendly name of the original constructor.
+ DECL_ACCESSORS(constructor_name, Object)
DECLARE_CAST(PrototypeInfo)
@@ -6650,7 +6652,8 @@ class PrototypeInfo : public Struct {
static const int kPrototypeUsersOffset = HeapObject::kHeaderSize;
static const int kValidityCellOffset = kPrototypeUsersOffset + kPointerSize;
- static const int kSize = kValidityCellOffset + kPointerSize;
+ static const int kConstructorNameOffset = kValidityCellOffset + kPointerSize;
+ static const int kSize = kConstructorNameOffset + kPointerSize;
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(PrototypeInfo);
« no previous file with comments | « src/factory.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698