| 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 1846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1857 ExecutableAccessorInfoHandling handling = DEFAULT_HANDLING); | 1857 ExecutableAccessorInfoHandling handling = DEFAULT_HANDLING); |
| 1858 | 1858 |
| 1859 // Equivalent to one of the above depending on whether |name| can be converted | 1859 // Equivalent to one of the above depending on whether |name| can be converted |
| 1860 // to an array index. | 1860 // to an array index. |
| 1861 MUST_USE_RESULT static MaybeHandle<Object> | 1861 MUST_USE_RESULT static MaybeHandle<Object> |
| 1862 DefinePropertyOrElementIgnoreAttributes( | 1862 DefinePropertyOrElementIgnoreAttributes( |
| 1863 Handle<JSObject> object, Handle<Name> name, Handle<Object> value, | 1863 Handle<JSObject> object, Handle<Name> name, Handle<Object> value, |
| 1864 PropertyAttributes attributes = NONE, | 1864 PropertyAttributes attributes = NONE, |
| 1865 ExecutableAccessorInfoHandling handling = DEFAULT_HANDLING); | 1865 ExecutableAccessorInfoHandling handling = DEFAULT_HANDLING); |
| 1866 | 1866 |
| 1867 // Adds or reconfigures a property to attributes NONE. It will fail when it |
| 1868 // cannot. |
| 1869 MUST_USE_RESULT static Maybe<bool> CreateDataProperty(LookupIterator* it, |
| 1870 Handle<Object> value); |
| 1871 |
| 1867 static void AddProperty(Handle<JSObject> object, Handle<Name> name, | 1872 static void AddProperty(Handle<JSObject> object, Handle<Name> name, |
| 1868 Handle<Object> value, PropertyAttributes attributes); | 1873 Handle<Object> value, PropertyAttributes attributes); |
| 1869 | 1874 |
| 1870 MUST_USE_RESULT static MaybeHandle<Object> AddDataElement( | 1875 MUST_USE_RESULT static MaybeHandle<Object> AddDataElement( |
| 1871 Handle<JSObject> receiver, uint32_t index, Handle<Object> value, | 1876 Handle<JSObject> receiver, uint32_t index, Handle<Object> value, |
| 1872 PropertyAttributes attributes); | 1877 PropertyAttributes attributes); |
| 1873 | 1878 |
| 1874 // Extend the receiver with a single fast property appeared first in the | 1879 // Extend the receiver with a single fast property appeared first in the |
| 1875 // passed map. This also extends the property backing store if necessary. | 1880 // passed map. This also extends the property backing store if necessary. |
| 1876 static void AllocateStorageForMap(Handle<JSObject> object, Handle<Map> map); | 1881 static void AllocateStorageForMap(Handle<JSObject> object, Handle<Map> map); |
| (...skipping 8973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10850 } else { | 10855 } else { |
| 10851 value &= ~(1 << bit_position); | 10856 value &= ~(1 << bit_position); |
| 10852 } | 10857 } |
| 10853 return value; | 10858 return value; |
| 10854 } | 10859 } |
| 10855 }; | 10860 }; |
| 10856 | 10861 |
| 10857 } } // namespace v8::internal | 10862 } } // namespace v8::internal |
| 10858 | 10863 |
| 10859 #endif // V8_OBJECTS_H_ | 10864 #endif // V8_OBJECTS_H_ |
| OLD | NEW |