| 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 2170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2181 static void AllocateStorageForMap(Handle<JSObject> object, Handle<Map> map); | 2181 static void AllocateStorageForMap(Handle<JSObject> object, Handle<Map> map); |
| 2182 inline MUST_USE_RESULT MaybeObject* AllocateStorageForMap(Map* map); | 2182 inline MUST_USE_RESULT MaybeObject* AllocateStorageForMap(Map* map); |
| 2183 | 2183 |
| 2184 static void MigrateInstance(Handle<JSObject> instance); | 2184 static void MigrateInstance(Handle<JSObject> instance); |
| 2185 inline MUST_USE_RESULT MaybeObject* MigrateInstance(); | 2185 inline MUST_USE_RESULT MaybeObject* MigrateInstance(); |
| 2186 | 2186 |
| 2187 static Handle<Object> TryMigrateInstance(Handle<JSObject> instance); | 2187 static Handle<Object> TryMigrateInstance(Handle<JSObject> instance); |
| 2188 inline MUST_USE_RESULT MaybeObject* TryMigrateInstance(); | 2188 inline MUST_USE_RESULT MaybeObject* TryMigrateInstance(); |
| 2189 | 2189 |
| 2190 // Can cause GC. | 2190 // Can cause GC. |
| 2191 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributes( |
| 2192 Name* key, |
| 2193 Object* value, |
| 2194 PropertyAttributes attributes, |
| 2195 ValueType value_type = OPTIMAL_REPRESENTATION, |
| 2196 StoreMode mode = ALLOW_AS_CONSTANT, |
| 2197 ExtensibilityCheck extensibility_check = PERFORM_EXTENSIBILITY_CHECK); |
| 2191 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributesTrampoline( | 2198 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributesTrampoline( |
| 2192 Name* key, | 2199 Name* key, |
| 2193 Object* value, | 2200 Object* value, |
| 2194 PropertyAttributes attributes, | 2201 PropertyAttributes attributes, |
| 2195 ValueType value_type = OPTIMAL_REPRESENTATION, | 2202 ValueType value_type = OPTIMAL_REPRESENTATION, |
| 2196 StoreMode mode = ALLOW_AS_CONSTANT, | 2203 StoreMode mode = ALLOW_AS_CONSTANT, |
| 2197 ExtensibilityCheck extensibility_check = PERFORM_EXTENSIBILITY_CHECK); | 2204 ExtensibilityCheck extensibility_check = PERFORM_EXTENSIBILITY_CHECK); |
| 2198 | 2205 |
| 2199 // Retrieve a value in a normalized object given a lookup result. | 2206 // Retrieve a value in a normalized object given a lookup result. |
| 2200 // Handles the special representation of JS global objects. | 2207 // Handles the special representation of JS global objects. |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2722 Handle<Name> name, | 2729 Handle<Name> name, |
| 2723 Handle<Object> old_value); | 2730 Handle<Object> old_value); |
| 2724 | 2731 |
| 2725 // Deliver change records to observers. May cause GC. | 2732 // Deliver change records to observers. May cause GC. |
| 2726 static void DeliverChangeRecords(Isolate* isolate); | 2733 static void DeliverChangeRecords(Isolate* isolate); |
| 2727 | 2734 |
| 2728 private: | 2735 private: |
| 2729 friend class DictionaryElementsAccessor; | 2736 friend class DictionaryElementsAccessor; |
| 2730 friend class JSReceiver; | 2737 friend class JSReceiver; |
| 2731 | 2738 |
| 2732 // TODO(mstarzinger): Soon to be handlified. | |
| 2733 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributes( | |
| 2734 Name* key, | |
| 2735 Object* value, | |
| 2736 PropertyAttributes attributes, | |
| 2737 ValueType value_type = OPTIMAL_REPRESENTATION, | |
| 2738 StoreMode mode = ALLOW_AS_CONSTANT, | |
| 2739 ExtensibilityCheck extensibility_check = PERFORM_EXTENSIBILITY_CHECK); | |
| 2740 | |
| 2741 MUST_USE_RESULT MaybeObject* GetElementWithCallback(Object* receiver, | 2739 MUST_USE_RESULT MaybeObject* GetElementWithCallback(Object* receiver, |
| 2742 Object* structure, | 2740 Object* structure, |
| 2743 uint32_t index, | 2741 uint32_t index, |
| 2744 Object* holder); | 2742 Object* holder); |
| 2745 MUST_USE_RESULT PropertyAttributes GetElementAttributeWithInterceptor( | 2743 MUST_USE_RESULT PropertyAttributes GetElementAttributeWithInterceptor( |
| 2746 JSReceiver* receiver, | 2744 JSReceiver* receiver, |
| 2747 uint32_t index, | 2745 uint32_t index, |
| 2748 bool continue_search); | 2746 bool continue_search); |
| 2749 MUST_USE_RESULT PropertyAttributes GetElementAttributeWithoutInterceptor( | 2747 MUST_USE_RESULT PropertyAttributes GetElementAttributeWithoutInterceptor( |
| 2750 JSReceiver* receiver, | 2748 JSReceiver* receiver, |
| (...skipping 7475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10226 } else { | 10224 } else { |
| 10227 value &= ~(1 << bit_position); | 10225 value &= ~(1 << bit_position); |
| 10228 } | 10226 } |
| 10229 return value; | 10227 return value; |
| 10230 } | 10228 } |
| 10231 }; | 10229 }; |
| 10232 | 10230 |
| 10233 } } // namespace v8::internal | 10231 } } // namespace v8::internal |
| 10234 | 10232 |
| 10235 #endif // V8_OBJECTS_H_ | 10233 #endif // V8_OBJECTS_H_ |
| OLD | NEW |