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

Unified Diff: src/objects.h

Issue 1417063011: [runtime] support new Proxy() instead of Proxy.create and install getPrototypeOf trap (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: adding proxy trap strings 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
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 80a0ada87d1f4df48a0b60d0f7066780a9f33647..8e3aa737e3103ae0d4df2d71a9a0fb02e58b6bfb 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -1306,8 +1306,8 @@ class Object {
Handle<Object> value, LanguageMode language_mode);
// Get the first non-hidden prototype.
- static inline Handle<Object> GetPrototype(Isolate* isolate,
- Handle<Object> receiver);
+ static inline MaybeHandle<Object> GetPrototype(Isolate* isolate,
+ Handle<Object> receiver);
bool HasInPrototypeChain(Isolate* isolate, Object* object);
@@ -9539,12 +9539,16 @@ class JSProxy: public JSReceiver {
public:
// [handler]: The handler property.
DECL_ACCESSORS(handler, Object)
-
+ // [target]: The target property.
+ DECL_ACCESSORS(target, Object)
// [hash]: The hash code property (undefined if not initialized yet).
DECL_ACCESSORS(hash, Object)
DECLARE_CAST(JSProxy)
+
+ static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver);
+
MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithHandler(
Handle<JSProxy> proxy,
Handle<Object> receiver,

Powered by Google App Engine
This is Rietveld 408576698