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 9482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9493 | 9493 |
9494 static MaybeHandle<Context> GetFunctionRealm(Handle<JSProxy> proxy); | 9494 static MaybeHandle<Context> GetFunctionRealm(Handle<JSProxy> proxy); |
9495 | 9495 |
9496 DECLARE_CAST(JSProxy) | 9496 DECLARE_CAST(JSProxy) |
9497 | 9497 |
9498 bool IsRevoked(); | 9498 bool IsRevoked(); |
9499 | 9499 |
9500 // ES6 9.5.1 | 9500 // ES6 9.5.1 |
9501 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver); | 9501 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver); |
9502 | 9502 |
| 9503 // ES6 9.5.2 |
| 9504 MUST_USE_RESULT static Maybe<bool> SetPrototype(Handle<JSProxy> proxy, |
| 9505 Handle<Object> value, |
| 9506 bool from_javascript, |
| 9507 ShouldThrow should_throw); |
9503 // ES6 9.5.3 | 9508 // ES6 9.5.3 |
9504 MUST_USE_RESULT static Maybe<bool> IsExtensible(Handle<JSProxy> proxy); | 9509 MUST_USE_RESULT static Maybe<bool> IsExtensible(Handle<JSProxy> proxy); |
9505 | 9510 |
9506 // ES6 9.5.4 (when passed DONT_THROW) | 9511 // ES6 9.5.4 (when passed DONT_THROW) |
9507 MUST_USE_RESULT static Maybe<bool> PreventExtensions( | 9512 MUST_USE_RESULT static Maybe<bool> PreventExtensions( |
9508 Handle<JSProxy> proxy, ShouldThrow should_throw); | 9513 Handle<JSProxy> proxy, ShouldThrow should_throw); |
9509 | 9514 |
9510 // ES6 9.5.5 | 9515 // ES6 9.5.5 |
9511 static bool GetOwnPropertyDescriptor(LookupIterator* it, | 9516 static bool GetOwnPropertyDescriptor(LookupIterator* it, |
9512 PropertyDescriptor* desc); | 9517 PropertyDescriptor* desc); |
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10704 } | 10709 } |
10705 return value; | 10710 return value; |
10706 } | 10711 } |
10707 }; | 10712 }; |
10708 | 10713 |
10709 | 10714 |
10710 } // NOLINT, false-positive due to second-order macros. | 10715 } // NOLINT, false-positive due to second-order macros. |
10711 } // NOLINT, false-positive due to second-order macros. | 10716 } // NOLINT, false-positive due to second-order macros. |
10712 | 10717 |
10713 #endif // V8_OBJECTS_H_ | 10718 #endif // V8_OBJECTS_H_ |
OLD | NEW |