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

Side by Side Diff: src/objects.h

Issue 1496243003: [proxies] Implement Proxy.revocable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments. Created 5 years 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 unified diff | Download patch
« no previous file with comments | « src/js/proxy.js ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 9482 matching lines...) Expand 10 before | Expand all | Expand 10 after
9493 DISALLOW_IMPLICIT_CONSTRUCTORS(WeakCell); 9493 DISALLOW_IMPLICIT_CONSTRUCTORS(WeakCell);
9494 }; 9494 };
9495 9495
9496 9496
9497 // The JSProxy describes EcmaScript Harmony proxies 9497 // The JSProxy describes EcmaScript Harmony proxies
9498 class JSProxy: public JSReceiver { 9498 class JSProxy: public JSReceiver {
9499 public: 9499 public:
9500 // [handler]: The handler property. 9500 // [handler]: The handler property.
9501 DECL_ACCESSORS(handler, Object) 9501 DECL_ACCESSORS(handler, Object)
9502 // [target]: The target property. 9502 // [target]: The target property.
9503 DECL_ACCESSORS(target, Object) 9503 DECL_ACCESSORS(target, JSReceiver)
9504 // [hash]: The hash code property (undefined if not initialized yet). 9504 // [hash]: The hash code property (undefined if not initialized yet).
9505 DECL_ACCESSORS(hash, Object) 9505 DECL_ACCESSORS(hash, Object)
9506 9506
9507 static MaybeHandle<Context> GetFunctionRealm(Handle<JSProxy> proxy); 9507 static MaybeHandle<Context> GetFunctionRealm(Handle<JSProxy> proxy);
9508 9508
9509 DECLARE_CAST(JSProxy) 9509 DECLARE_CAST(JSProxy)
9510 9510
9511 bool IsRevoked() const; 9511 INLINE(bool IsRevoked() const);
9512 static void Revoke(Handle<JSProxy> proxy);
9512 9513
9513 // ES6 9.5.1 9514 // ES6 9.5.1
9514 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver); 9515 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver);
9515 9516
9516 // ES6 9.5.2 9517 // ES6 9.5.2
9517 MUST_USE_RESULT static Maybe<bool> SetPrototype(Handle<JSProxy> proxy, 9518 MUST_USE_RESULT static Maybe<bool> SetPrototype(Handle<JSProxy> proxy,
9518 Handle<Object> value, 9519 Handle<Object> value,
9519 bool from_javascript, 9520 bool from_javascript,
9520 ShouldThrow should_throw); 9521 ShouldThrow should_throw);
9521 // ES6 9.5.3 9522 // ES6 9.5.3
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after
10717 } 10718 }
10718 return value; 10719 return value;
10719 } 10720 }
10720 }; 10721 };
10721 10722
10722 10723
10723 } // NOLINT, false-positive due to second-order macros. 10724 } // NOLINT, false-positive due to second-order macros.
10724 } // NOLINT, false-positive due to second-order macros. 10725 } // NOLINT, false-positive due to second-order macros.
10725 10726
10726 #endif // V8_OBJECTS_H_ 10727 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/js/proxy.js ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698