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 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1864 static bool GetOwnPropertyDescriptor(LookupIterator* it, | 1864 static bool GetOwnPropertyDescriptor(LookupIterator* it, |
1865 PropertyDescriptor* desc); | 1865 PropertyDescriptor* desc); |
1866 | 1866 |
1867 typedef PropertyAttributes IntegrityLevel; | 1867 typedef PropertyAttributes IntegrityLevel; |
1868 | 1868 |
1869 // ES6 7.3.14 (when passed DONT_THROW) | 1869 // ES6 7.3.14 (when passed DONT_THROW) |
1870 // 'level' must be SEALED or FROZEN. | 1870 // 'level' must be SEALED or FROZEN. |
1871 MUST_USE_RESULT static Maybe<bool> SetIntegrityLevel( | 1871 MUST_USE_RESULT static Maybe<bool> SetIntegrityLevel( |
1872 Handle<JSReceiver> object, IntegrityLevel lvl, ShouldThrow should_throw); | 1872 Handle<JSReceiver> object, IntegrityLevel lvl, ShouldThrow should_throw); |
1873 | 1873 |
| 1874 // ES6 7.3.15 |
| 1875 // 'level' must be SEALED or FROZEN. |
| 1876 MUST_USE_RESULT static Maybe<bool> TestIntegrityLevel( |
| 1877 Handle<JSReceiver> object, IntegrityLevel lvl); |
| 1878 |
1874 // ES6 [[PreventExtensions]] (when passed DONT_THROW) | 1879 // ES6 [[PreventExtensions]] (when passed DONT_THROW) |
1875 MUST_USE_RESULT static Maybe<bool> PreventExtensions( | 1880 MUST_USE_RESULT static Maybe<bool> PreventExtensions( |
1876 Handle<JSReceiver> object, ShouldThrow should_throw); | 1881 Handle<JSReceiver> object, ShouldThrow should_throw); |
1877 | 1882 |
1878 MUST_USE_RESULT static Maybe<bool> IsExtensible(Handle<JSReceiver> object); | 1883 MUST_USE_RESULT static Maybe<bool> IsExtensible(Handle<JSReceiver> object); |
1879 | 1884 |
1880 // Tests for the fast common case for property enumeration. | 1885 // Tests for the fast common case for property enumeration. |
1881 bool IsSimpleEnum(); | 1886 bool IsSimpleEnum(); |
1882 | 1887 |
1883 // Returns the class name ([[Class]] property in the specification). | 1888 // Returns the class name ([[Class]] property in the specification). |
(...skipping 8793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10677 } | 10682 } |
10678 return value; | 10683 return value; |
10679 } | 10684 } |
10680 }; | 10685 }; |
10681 | 10686 |
10682 | 10687 |
10683 } // NOLINT, false-positive due to second-order macros. | 10688 } // NOLINT, false-positive due to second-order macros. |
10684 } // NOLINT, false-positive due to second-order macros. | 10689 } // NOLINT, false-positive due to second-order macros. |
10685 | 10690 |
10686 #endif // V8_OBJECTS_H_ | 10691 #endif // V8_OBJECTS_H_ |
OLD | NEW |