| 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 1861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1872 | 1872 |
| 1873 MUST_USE_RESULT static Object* DefineProperty(Isolate* isolate, | 1873 MUST_USE_RESULT static Object* DefineProperty(Isolate* isolate, |
| 1874 Handle<Object> object, | 1874 Handle<Object> object, |
| 1875 Handle<Object> name, | 1875 Handle<Object> name, |
| 1876 Handle<Object> attributes); | 1876 Handle<Object> attributes); |
| 1877 MUST_USE_RESULT static Object* DefineProperties(Isolate* isolate, | 1877 MUST_USE_RESULT static Object* DefineProperties(Isolate* isolate, |
| 1878 Handle<Object> object, | 1878 Handle<Object> object, |
| 1879 Handle<Object> properties); | 1879 Handle<Object> properties); |
| 1880 | 1880 |
| 1881 // "virtual" dispatcher to the correct [[DefineOwnProperty]] implementation. | 1881 // "virtual" dispatcher to the correct [[DefineOwnProperty]] implementation. |
| 1882 static bool DefineOwnProperty(Isolate* isolate, Handle<JSObject> object, | 1882 static bool DefineOwnProperty(Isolate* isolate, Handle<JSReceiver> object, |
| 1883 Handle<Object> key, PropertyDescriptor* desc, | 1883 Handle<Object> key, PropertyDescriptor* desc, |
| 1884 ShouldThrow should_throw); | 1884 ShouldThrow should_throw); |
| 1885 | 1885 |
| 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, |
| (...skipping 8945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10838 // (elements + properties) in the current level. | 10838 // (elements + properties) in the current level. |
| 10839 int levelLength_ = 0; | 10839 int levelLength_ = 0; |
| 10840 | 10840 |
| 10841 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); | 10841 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); |
| 10842 }; | 10842 }; |
| 10843 | 10843 |
| 10844 } // NOLINT, false-positive due to second-order macros. | 10844 } // NOLINT, false-positive due to second-order macros. |
| 10845 } // NOLINT, false-positive due to second-order macros. | 10845 } // NOLINT, false-positive due to second-order macros. |
| 10846 | 10846 |
| 10847 #endif // V8_OBJECTS_H_ | 10847 #endif // V8_OBJECTS_H_ |
| OLD | NEW |