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 2218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2229 private: | 2229 private: |
2230 friend class DictionaryElementsAccessor; | 2230 friend class DictionaryElementsAccessor; |
2231 friend class JSReceiver; | 2231 friend class JSReceiver; |
2232 friend class Object; | 2232 friend class Object; |
2233 | 2233 |
2234 static void MigrateFastToFast(Handle<JSObject> object, Handle<Map> new_map); | 2234 static void MigrateFastToFast(Handle<JSObject> object, Handle<Map> new_map); |
2235 static void MigrateFastToSlow(Handle<JSObject> object, | 2235 static void MigrateFastToSlow(Handle<JSObject> object, |
2236 Handle<Map> new_map, | 2236 Handle<Map> new_map, |
2237 int expected_additional_properties); | 2237 int expected_additional_properties); |
2238 | 2238 |
2239 static void GeneralizeFieldRepresentation(Handle<JSObject> object, | |
2240 int modify_index, | |
2241 Representation new_representation, | |
2242 Handle<HeapType> new_field_type); | |
2243 | |
2244 static void UpdateAllocationSite(Handle<JSObject> object, | 2239 static void UpdateAllocationSite(Handle<JSObject> object, |
2245 ElementsKind to_kind); | 2240 ElementsKind to_kind); |
2246 | 2241 |
2247 // Used from Object::GetProperty(). | 2242 // Used from Object::GetProperty(). |
2248 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithFailedAccessCheck( | 2243 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithFailedAccessCheck( |
2249 LookupIterator* it); | 2244 LookupIterator* it); |
2250 | 2245 |
2251 MUST_USE_RESULT static MaybeHandle<Object> GetElementWithCallback( | 2246 MUST_USE_RESULT static MaybeHandle<Object> GetElementWithCallback( |
2252 Handle<JSObject> object, | 2247 Handle<JSObject> object, |
2253 Handle<Object> receiver, | 2248 Handle<Object> receiver, |
(...skipping 8666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10920 } else { | 10915 } else { |
10921 value &= ~(1 << bit_position); | 10916 value &= ~(1 << bit_position); |
10922 } | 10917 } |
10923 return value; | 10918 return value; |
10924 } | 10919 } |
10925 }; | 10920 }; |
10926 | 10921 |
10927 } } // namespace v8::internal | 10922 } } // namespace v8::internal |
10928 | 10923 |
10929 #endif // V8_OBJECTS_H_ | 10924 #endif // V8_OBJECTS_H_ |
OLD | NEW |