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 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1886 static bool OrdinaryDefineOwnProperty(Isolate* isolate, | 1886 static bool OrdinaryDefineOwnProperty(Isolate* isolate, |
1887 Handle<JSObject> object, | 1887 Handle<JSObject> object, |
1888 Handle<Object> key, | 1888 Handle<Object> key, |
1889 PropertyDescriptor* desc, | 1889 PropertyDescriptor* desc, |
1890 ShouldThrow should_throw); | 1890 ShouldThrow should_throw); |
1891 static bool OrdinaryDefineOwnProperty(LookupIterator* it, | 1891 static bool OrdinaryDefineOwnProperty(LookupIterator* it, |
1892 PropertyDescriptor* desc, | 1892 PropertyDescriptor* desc, |
1893 ShouldThrow should_throw); | 1893 ShouldThrow should_throw); |
1894 | 1894 |
1895 static bool GetOwnPropertyDescriptor(Isolate* isolate, | 1895 static bool GetOwnPropertyDescriptor(Isolate* isolate, |
1896 Handle<JSObject> object, | 1896 Handle<JSReceiver> object, |
1897 Handle<Object> key, | 1897 Handle<Object> key, |
1898 PropertyDescriptor* desc); | 1898 PropertyDescriptor* desc); |
1899 static bool GetOwnPropertyDescriptor(LookupIterator* it, | 1899 static bool GetOwnPropertyDescriptor(LookupIterator* it, |
1900 PropertyDescriptor* desc); | 1900 PropertyDescriptor* desc); |
1901 | 1901 |
1902 // Disallow further properties to be added to the object. This is | 1902 // Disallow further properties to be added to the object. This is |
1903 // ES6's [[PreventExtensions]] when passed DONT_THROW. | 1903 // ES6's [[PreventExtensions]] when passed DONT_THROW. |
1904 MUST_USE_RESULT static Maybe<bool> PreventExtensions( | 1904 MUST_USE_RESULT static Maybe<bool> PreventExtensions( |
1905 Handle<JSReceiver> object, ShouldThrow should_throw); | 1905 Handle<JSReceiver> object, ShouldThrow should_throw); |
1906 | 1906 |
(...skipping 8929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10836 // (elements + properties) in the current level. | 10836 // (elements + properties) in the current level. |
10837 int levelLength_; | 10837 int levelLength_; |
10838 | 10838 |
10839 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); | 10839 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); |
10840 }; | 10840 }; |
10841 | 10841 |
10842 } // NOLINT, false-positive due to second-order macros. | 10842 } // NOLINT, false-positive due to second-order macros. |
10843 } // NOLINT, false-positive due to second-order macros. | 10843 } // NOLINT, false-positive due to second-order macros. |
10844 | 10844 |
10845 #endif // V8_OBJECTS_H_ | 10845 #endif // V8_OBJECTS_H_ |
OLD | NEW |