| 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 9490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9501 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver); | 9501 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver); |
| 9502 | 9502 |
| 9503 // ES6 9.5.3 | 9503 // ES6 9.5.3 |
| 9504 MUST_USE_RESULT static Maybe<bool> IsExtensible(Handle<JSProxy> proxy); | 9504 MUST_USE_RESULT static Maybe<bool> IsExtensible(Handle<JSProxy> proxy); |
| 9505 | 9505 |
| 9506 // ES6 9.5.4 (when passed DONT_THROW) | 9506 // ES6 9.5.4 (when passed DONT_THROW) |
| 9507 MUST_USE_RESULT static Maybe<bool> PreventExtensions( | 9507 MUST_USE_RESULT static Maybe<bool> PreventExtensions( |
| 9508 Handle<JSProxy> proxy, ShouldThrow should_throw); | 9508 Handle<JSProxy> proxy, ShouldThrow should_throw); |
| 9509 | 9509 |
| 9510 // ES6 9.5.5 | 9510 // ES6 9.5.5 |
| 9511 static bool GetOwnPropertyDescriptor(LookupIterator* it, | 9511 static bool GetOwnPropertyDescriptor(Isolate* isolate, Handle<JSProxy> proxy, |
| 9512 Handle<Name> name, |
| 9512 PropertyDescriptor* desc); | 9513 PropertyDescriptor* desc); |
| 9513 | 9514 |
| 9514 // ES6 9.5.6 | 9515 // ES6 9.5.6 |
| 9515 static bool DefineOwnProperty(Isolate* isolate, Handle<JSProxy> object, | 9516 static bool DefineOwnProperty(Isolate* isolate, Handle<JSProxy> object, |
| 9516 Handle<Object> key, PropertyDescriptor* desc, | 9517 Handle<Object> key, PropertyDescriptor* desc, |
| 9517 ShouldThrow should_throw); | 9518 ShouldThrow should_throw); |
| 9518 | 9519 |
| 9519 // ES6 9.5.7 | 9520 // ES6 9.5.7 |
| 9520 MUST_USE_RESULT static Maybe<bool> HasProperty(Isolate* isolate, | 9521 MUST_USE_RESULT static Maybe<bool> HasProperty(Isolate* isolate, |
| 9521 Handle<JSProxy> proxy, | 9522 Handle<JSProxy> proxy, |
| (...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10712 } | 10713 } |
| 10713 return value; | 10714 return value; |
| 10714 } | 10715 } |
| 10715 }; | 10716 }; |
| 10716 | 10717 |
| 10717 | 10718 |
| 10718 } // NOLINT, false-positive due to second-order macros. | 10719 } // NOLINT, false-positive due to second-order macros. |
| 10719 } // NOLINT, false-positive due to second-order macros. | 10720 } // NOLINT, false-positive due to second-order macros. |
| 10720 | 10721 |
| 10721 #endif // V8_OBJECTS_H_ | 10722 #endif // V8_OBJECTS_H_ |
| OLD | NEW |