OLD | NEW |
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 9479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9490 public: | 9490 public: |
9491 // [handler]: The handler property. | 9491 // [handler]: The handler property. |
9492 DECL_ACCESSORS(handler, Object) | 9492 DECL_ACCESSORS(handler, Object) |
9493 // [target]: The target property. | 9493 // [target]: The target property. |
9494 DECL_ACCESSORS(target, Object) | 9494 DECL_ACCESSORS(target, Object) |
9495 // [hash]: The hash code property (undefined if not initialized yet). | 9495 // [hash]: The hash code property (undefined if not initialized yet). |
9496 DECL_ACCESSORS(hash, Object) | 9496 DECL_ACCESSORS(hash, Object) |
9497 | 9497 |
9498 static MaybeHandle<Context> GetFunctionRealm(Handle<JSProxy> proxy); | 9498 static MaybeHandle<Context> GetFunctionRealm(Handle<JSProxy> proxy); |
9499 | 9499 |
9500 inline bool has_handler(); | |
9501 | |
9502 DECLARE_CAST(JSProxy) | 9500 DECLARE_CAST(JSProxy) |
9503 | 9501 |
9504 static bool IsRevoked(Handle<JSProxy> proxy); | 9502 bool IsRevoked(); |
9505 | 9503 |
9506 // ES6 9.5.1 | 9504 // ES6 9.5.1 |
9507 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver); | 9505 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver); |
9508 | 9506 |
9509 // ES6 9.5.3 | 9507 // ES6 9.5.3 |
9510 MUST_USE_RESULT static Maybe<bool> IsExtensible(Handle<JSProxy> proxy); | 9508 MUST_USE_RESULT static Maybe<bool> IsExtensible(Handle<JSProxy> proxy); |
9511 | 9509 |
9512 // ES6 9.5.4 (when passed DONT_THROW) | 9510 // ES6 9.5.4 (when passed DONT_THROW) |
9513 MUST_USE_RESULT static Maybe<bool> PreventExtensions( | 9511 MUST_USE_RESULT static Maybe<bool> PreventExtensions( |
9514 Handle<JSProxy> proxy, ShouldThrow should_throw); | 9512 Handle<JSProxy> proxy, ShouldThrow should_throw); |
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10718 } | 10716 } |
10719 return value; | 10717 return value; |
10720 } | 10718 } |
10721 }; | 10719 }; |
10722 | 10720 |
10723 | 10721 |
10724 } // NOLINT, false-positive due to second-order macros. | 10722 } // NOLINT, false-positive due to second-order macros. |
10725 } // NOLINT, false-positive due to second-order macros. | 10723 } // NOLINT, false-positive due to second-order macros. |
10726 | 10724 |
10727 #endif // V8_OBJECTS_H_ | 10725 #endif // V8_OBJECTS_H_ |
OLD | NEW |