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

Unified Diff: src/objects.h

Issue 1587633002: LookupIterator should find private symbols on JSProxies (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 11 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
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 8c8be2994cb000d5f9a7f8b903316dfb7894afec..0405e50ca8cbc221713831539f66092149bc6c71 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -1811,6 +1811,10 @@ class JSReceiver: public HeapObject {
// Gets slow properties for non-global objects.
inline NameDictionary* property_dictionary();
+ // Deletes an existing named property in a normalized object.
+ static void DeleteNormalizedProperty(Handle<JSReceiver> object,
+ Handle<Name> name, int entry);
+
DECLARE_CAST(JSReceiver)
// ES6 section 7.1.1 ToPrimitive
@@ -2494,10 +2498,6 @@ class JSObject: public JSReceiver {
// Gets the number of currently used elements.
int GetFastElementsUsage();
- // Deletes an existing named property in a normalized object.
- static void DeleteNormalizedProperty(Handle<JSObject> object,
- Handle<Name> name, int entry);
-
static bool AllCanRead(LookupIterator* it);
static bool AllCanWrite(LookupIterator* it);
@@ -9649,6 +9649,10 @@ class JSProxy: public JSReceiver {
static Handle<Smi> GetOrCreateIdentityHash(Handle<JSProxy> proxy);
private:
+ static void AddPrivateProperty(Isolate* isolate, Handle<JSProxy> proxy,
+ Handle<Name> private_name,
+ PropertyDescriptor* desc);
+
DISALLOW_IMPLICIT_CONSTRUCTORS(JSProxy);
};

Powered by Google App Engine
This is Rietveld 408576698