| 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 9505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9516 DECL_ACCESSORS(handler, Object) | 9516 DECL_ACCESSORS(handler, Object) |
| 9517 // [target]: The target property. | 9517 // [target]: The target property. |
| 9518 DECL_ACCESSORS(target, Object) | 9518 DECL_ACCESSORS(target, Object) |
| 9519 // [hash]: The hash code property (undefined if not initialized yet). | 9519 // [hash]: The hash code property (undefined if not initialized yet). |
| 9520 DECL_ACCESSORS(hash, Object) | 9520 DECL_ACCESSORS(hash, Object) |
| 9521 | 9521 |
| 9522 inline bool has_handler(); | 9522 inline bool has_handler(); |
| 9523 | 9523 |
| 9524 DECLARE_CAST(JSProxy) | 9524 DECLARE_CAST(JSProxy) |
| 9525 | 9525 |
| 9526 // ES6 9.5.1 |
| 9526 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver); | 9527 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver); |
| 9527 | 9528 |
| 9529 // ES6 9.5.5 |
| 9530 static bool GetOwnPropertyDescriptor(LookupIterator* it, |
| 9531 PropertyDescriptor* desc); |
| 9532 |
| 9528 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithHandler( | 9533 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithHandler( |
| 9529 Handle<JSProxy> proxy, | 9534 Handle<JSProxy> proxy, |
| 9530 Handle<Object> receiver, | 9535 Handle<Object> receiver, |
| 9531 Handle<Name> name); | 9536 Handle<Name> name); |
| 9532 | 9537 |
| 9533 // If the handler defines an accessor property with a setter, invoke it. | 9538 // If the handler defines an accessor property with a setter, invoke it. |
| 9534 // If it defines an accessor property without a setter, or a data property | 9539 // If it defines an accessor property without a setter, or a data property |
| 9535 // that is read-only, fail. In all these cases set '*done' to true. | 9540 // that is read-only, fail. In all these cases set '*done' to true. |
| 9536 // Otherwise set it to false, in which case the return value is not | 9541 // Otherwise set it to false, in which case the return value is not |
| 9537 // meaningful. | 9542 // meaningful. |
| (...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10707 } | 10712 } |
| 10708 return value; | 10713 return value; |
| 10709 } | 10714 } |
| 10710 }; | 10715 }; |
| 10711 | 10716 |
| 10712 | 10717 |
| 10713 } // NOLINT, false-positive due to second-order macros. | 10718 } // NOLINT, false-positive due to second-order macros. |
| 10714 } // NOLINT, false-positive due to second-order macros. | 10719 } // NOLINT, false-positive due to second-order macros. |
| 10715 | 10720 |
| 10716 #endif // V8_OBJECTS_H_ | 10721 #endif // V8_OBJECTS_H_ |
| OLD | NEW |