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 9488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9499 | 9499 |
9500 inline bool has_handler(); | 9500 inline bool has_handler(); |
9501 | 9501 |
9502 DECLARE_CAST(JSProxy) | 9502 DECLARE_CAST(JSProxy) |
9503 | 9503 |
9504 static bool IsRevoked(Handle<JSProxy> proxy); | 9504 static bool IsRevoked(Handle<JSProxy> proxy); |
9505 | 9505 |
9506 // ES6 9.5.1 | 9506 // ES6 9.5.1 |
9507 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver); | 9507 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver); |
9508 | 9508 |
| 9509 // ES6 9.5.2 |
| 9510 MUST_USE_RESULT Maybe<bool> SetPrototype(Handle<JSProxy> proxy, |
| 9511 Handle<Object> value, |
| 9512 bool from_javascript, |
| 9513 ShouldThrow should_throw); |
| 9514 |
9509 // ES6 9.5.3 | 9515 // ES6 9.5.3 |
9510 MUST_USE_RESULT static Maybe<bool> IsExtensible(Handle<JSProxy> proxy); | 9516 MUST_USE_RESULT static Maybe<bool> IsExtensible(Handle<JSProxy> proxy); |
9511 | 9517 |
9512 // ES6 9.5.4 (when passed DONT_THROW) | 9518 // ES6 9.5.4 (when passed DONT_THROW) |
9513 MUST_USE_RESULT static Maybe<bool> PreventExtensions( | 9519 MUST_USE_RESULT static Maybe<bool> PreventExtensions( |
9514 Handle<JSProxy> proxy, ShouldThrow should_throw); | 9520 Handle<JSProxy> proxy, ShouldThrow should_throw); |
9515 | 9521 |
9516 // ES6 9.5.5 | 9522 // ES6 9.5.5 |
9517 static bool GetOwnPropertyDescriptor(LookupIterator* it, | 9523 static bool GetOwnPropertyDescriptor(LookupIterator* it, |
9518 PropertyDescriptor* desc); | 9524 PropertyDescriptor* desc); |
(...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10718 } | 10724 } |
10719 return value; | 10725 return value; |
10720 } | 10726 } |
10721 }; | 10727 }; |
10722 | 10728 |
10723 | 10729 |
10724 } // NOLINT, false-positive due to second-order macros. | 10730 } // NOLINT, false-positive due to second-order macros. |
10725 } // NOLINT, false-positive due to second-order macros. | 10731 } // NOLINT, false-positive due to second-order macros. |
10726 | 10732 |
10727 #endif // V8_OBJECTS_H_ | 10733 #endif // V8_OBJECTS_H_ |
OLD | NEW |