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 9535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9546 | 9546 |
9547 // ES6 9.5.11 | 9547 // ES6 9.5.11 |
9548 static bool Enumerate(Isolate* isolate, Handle<JSReceiver> receiver, | 9548 static bool Enumerate(Isolate* isolate, Handle<JSReceiver> receiver, |
9549 Handle<JSProxy> proxy, KeyAccumulator* accumulator); | 9549 Handle<JSProxy> proxy, KeyAccumulator* accumulator); |
9550 | 9550 |
9551 // ES6 9.5.12 | 9551 // ES6 9.5.12 |
9552 static bool OwnPropertyKeys(Isolate* isolate, Handle<JSReceiver> receiver, | 9552 static bool OwnPropertyKeys(Isolate* isolate, Handle<JSReceiver> receiver, |
9553 Handle<JSProxy> proxy, PropertyFilter filter, | 9553 Handle<JSProxy> proxy, PropertyFilter filter, |
9554 KeyAccumulator* accumulator); | 9554 KeyAccumulator* accumulator); |
9555 | 9555 |
9556 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithHandler( | |
9557 Handle<JSProxy> proxy, | |
9558 Handle<Object> receiver, | |
9559 Handle<Name> name); | |
9560 | |
9561 MUST_USE_RESULT static Maybe<PropertyAttributes> GetPropertyAttributes( | 9556 MUST_USE_RESULT static Maybe<PropertyAttributes> GetPropertyAttributes( |
9562 LookupIterator* it); | 9557 LookupIterator* it); |
9563 | 9558 |
9564 // Dispatched behavior. | 9559 // Dispatched behavior. |
9565 DECLARE_PRINTER(JSProxy) | 9560 DECLARE_PRINTER(JSProxy) |
9566 DECLARE_VERIFIER(JSProxy) | 9561 DECLARE_VERIFIER(JSProxy) |
9567 | 9562 |
9568 // Layout description. We add padding so that a proxy has the same | 9563 // Layout description. We add padding so that a proxy has the same |
9569 // size as a virgin JSObject. This is essential for becoming a JSObject | 9564 // size as a virgin JSObject. This is essential for becoming a JSObject |
9570 // upon freeze. | 9565 // upon freeze. |
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10716 } | 10711 } |
10717 return value; | 10712 return value; |
10718 } | 10713 } |
10719 }; | 10714 }; |
10720 | 10715 |
10721 | 10716 |
10722 } // NOLINT, false-positive due to second-order macros. | 10717 } // NOLINT, false-positive due to second-order macros. |
10723 } // NOLINT, false-positive due to second-order macros. | 10718 } // NOLINT, false-positive due to second-order macros. |
10724 | 10719 |
10725 #endif // V8_OBJECTS_H_ | 10720 #endif // V8_OBJECTS_H_ |
OLD | NEW |