OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2164 // Try to follow an existing transition to a field with attributes NONE. The | 2164 // Try to follow an existing transition to a field with attributes NONE. The |
2165 // return value indicates whether the transition was successful. | 2165 // return value indicates whether the transition was successful. |
2166 static inline Handle<Map> FindTransitionToField(Handle<Map> map, | 2166 static inline Handle<Map> FindTransitionToField(Handle<Map> map, |
2167 Handle<Name> key); | 2167 Handle<Name> key); |
2168 | 2168 |
2169 inline int LastAddedFieldIndex(); | 2169 inline int LastAddedFieldIndex(); |
2170 | 2170 |
2171 // Extend the receiver with a single fast property appeared first in the | 2171 // Extend the receiver with a single fast property appeared first in the |
2172 // passed map. This also extends the property backing store if necessary. | 2172 // passed map. This also extends the property backing store if necessary. |
2173 static void AllocateStorageForMap(Handle<JSObject> object, Handle<Map> map); | 2173 static void AllocateStorageForMap(Handle<JSObject> object, Handle<Map> map); |
2174 inline MUST_USE_RESULT MaybeObject* AllocateStorageForMap(Map* map); | |
2175 | 2174 |
2176 static void MigrateInstance(Handle<JSObject> instance); | 2175 static void MigrateInstance(Handle<JSObject> instance); |
2177 | 2176 |
2178 static Handle<Object> TryMigrateInstance(Handle<JSObject> instance); | 2177 static Handle<Object> TryMigrateInstance(Handle<JSObject> instance); |
2179 inline MUST_USE_RESULT MaybeObject* TryMigrateInstance(); | 2178 inline MUST_USE_RESULT MaybeObject* TryMigrateInstance(); |
2180 | 2179 |
2181 // Can cause GC. | 2180 // Can cause GC. |
2182 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributesTrampoline( | 2181 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributesTrampoline( |
2183 Name* key, | 2182 Name* key, |
2184 Object* value, | 2183 Object* value, |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2457 // Returns a new map with all transitions dropped from the object's current | 2456 // Returns a new map with all transitions dropped from the object's current |
2458 // map and the ElementsKind set. | 2457 // map and the ElementsKind set. |
2459 static Handle<Map> GetElementsTransitionMap(Handle<JSObject> object, | 2458 static Handle<Map> GetElementsTransitionMap(Handle<JSObject> object, |
2460 ElementsKind to_kind); | 2459 ElementsKind to_kind); |
2461 inline MUST_USE_RESULT MaybeObject* GetElementsTransitionMap( | 2460 inline MUST_USE_RESULT MaybeObject* GetElementsTransitionMap( |
2462 Isolate* isolate, | 2461 Isolate* isolate, |
2463 ElementsKind elements_kind); | 2462 ElementsKind elements_kind); |
2464 MUST_USE_RESULT MaybeObject* GetElementsTransitionMapSlow( | 2463 MUST_USE_RESULT MaybeObject* GetElementsTransitionMapSlow( |
2465 ElementsKind elements_kind); | 2464 ElementsKind elements_kind); |
2466 | 2465 |
2467 static Handle<Object> TransitionElementsKind(Handle<JSObject> object, | 2466 static void TransitionElementsKind(Handle<JSObject> object, |
2468 ElementsKind to_kind); | 2467 ElementsKind to_kind); |
2469 | 2468 |
2470 MUST_USE_RESULT MaybeObject* TransitionElementsKind(ElementsKind to_kind); | 2469 MUST_USE_RESULT MaybeObject* TransitionElementsKind(ElementsKind to_kind); |
2471 MUST_USE_RESULT MaybeObject* UpdateAllocationSite(ElementsKind to_kind); | 2470 MUST_USE_RESULT MaybeObject* UpdateAllocationSite(ElementsKind to_kind); |
2472 | 2471 |
2473 static void MigrateToMap(Handle<JSObject> object, Handle<Map> new_map); | 2472 static void MigrateToMap(Handle<JSObject> object, Handle<Map> new_map); |
2474 MUST_USE_RESULT MaybeObject* MigrateToMap(Map* new_map); | 2473 MUST_USE_RESULT MaybeObject* MigrateToMap(Map* new_map); |
2475 static void GeneralizeFieldRepresentation(Handle<JSObject> object, | 2474 static void GeneralizeFieldRepresentation(Handle<JSObject> object, |
2476 int modify_index, | 2475 int modify_index, |
2477 Representation new_representation, | 2476 Representation new_representation, |
2478 StoreMode store_mode); | 2477 StoreMode store_mode); |
(...skipping 7763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10242 } else { | 10241 } else { |
10243 value &= ~(1 << bit_position); | 10242 value &= ~(1 << bit_position); |
10244 } | 10243 } |
10245 return value; | 10244 return value; |
10246 } | 10245 } |
10247 }; | 10246 }; |
10248 | 10247 |
10249 } } // namespace v8::internal | 10248 } } // namespace v8::internal |
10250 | 10249 |
10251 #endif // V8_OBJECTS_H_ | 10250 #endif // V8_OBJECTS_H_ |
OLD | NEW |