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

Unified Diff: src/objects.h

Issue 384963002: ES6 Unscopables (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Force use of holder as receiver for non js accessor callbacks Created 6 years, 5 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/flag-definitions.h ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')
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 b0e7faea900793a6a7464f95af7245d8bb913fbd..a4bf30372679d1455e0115a5d33100fe5bcc153f 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -1522,6 +1522,9 @@ class Object {
Handle<JSReceiver> setter,
Handle<Object> value);
+ MUST_USE_RESULT static MaybeHandle<Object> GetPropertyForUnscopables(
+ LookupIterator* it);
+
MUST_USE_RESULT static inline MaybeHandle<Object> GetElement(
Isolate* isolate,
Handle<Object> object,
@@ -1589,6 +1592,10 @@ class Object {
#endif
private:
+ // Helper for GetProperty and GetPropertyForUnscopables.
+ MUST_USE_RESULT static MaybeHandle<Object> GetPropertyHelper(
+ LookupIterator* it, bool force_holder_as_receiver_for_accessor_callback);
+
friend class LookupIterator;
friend class PrototypeIterator;
« no previous file with comments | « src/flag-definitions.h ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698