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 2596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2607 // Transform slow named properties to fast variants. | 2607 // Transform slow named properties to fast variants. |
2608 static void TransformToFastProperties(Handle<JSObject> object, | 2608 static void TransformToFastProperties(Handle<JSObject> object, |
2609 int unused_property_fields); | 2609 int unused_property_fields); |
2610 | 2610 |
2611 // Access fast-case object properties at index. | 2611 // Access fast-case object properties at index. |
2612 static Handle<Object> FastPropertyAt(Handle<JSObject> object, | 2612 static Handle<Object> FastPropertyAt(Handle<JSObject> object, |
2613 Representation representation, | 2613 Representation representation, |
2614 int index); | 2614 int index); |
2615 inline Object* RawFastPropertyAt(int index); | 2615 inline Object* RawFastPropertyAt(int index); |
2616 inline void FastPropertyAtPut(int index, Object* value); | 2616 inline void FastPropertyAtPut(int index, Object* value); |
2617 void WriteToField(int descriptor, Object* value); | |
2617 | 2618 |
2618 // Access to in object properties. | 2619 // Access to in object properties. |
2619 inline int GetInObjectPropertyOffset(int index); | 2620 inline int GetInObjectPropertyOffset(int index); |
2620 inline Object* InObjectPropertyAt(int index); | 2621 inline Object* InObjectPropertyAt(int index); |
2621 inline Object* InObjectPropertyAtPut(int index, | 2622 inline Object* InObjectPropertyAtPut(int index, |
2622 Object* value, | 2623 Object* value, |
2623 WriteBarrierMode mode | 2624 WriteBarrierMode mode |
2624 = UPDATE_WRITE_BARRIER); | 2625 = UPDATE_WRITE_BARRIER); |
2625 | 2626 |
2626 // Set the object's prototype (only JSReceiver and null are allowed values). | 2627 // Set the object's prototype (only JSReceiver and null are allowed values). |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2895 | 2896 |
2896 // Add a property to a fast-case object. | 2897 // Add a property to a fast-case object. |
2897 static void AddFastProperty(Handle<JSObject> object, | 2898 static void AddFastProperty(Handle<JSObject> object, |
2898 Handle<Name> name, | 2899 Handle<Name> name, |
2899 Handle<Object> value, | 2900 Handle<Object> value, |
2900 PropertyAttributes attributes, | 2901 PropertyAttributes attributes, |
2901 StoreFromKeyed store_mode, | 2902 StoreFromKeyed store_mode, |
2902 ValueType value_type, | 2903 ValueType value_type, |
2903 TransitionFlag flag); | 2904 TransitionFlag flag); |
2904 | 2905 |
2906 static void MigrateToNewProperty(Handle<JSObject> object, | |
2907 Handle<Map> transition, | |
2908 Handle<Object> value); | |
2909 | |
2910 | |
Igor Sheludko
2014/04/16 09:50:03
Extra empty line?
| |
2905 // Add a property to a slow-case object. | 2911 // Add a property to a slow-case object. |
2906 static void AddSlowProperty(Handle<JSObject> object, | 2912 static void AddSlowProperty(Handle<JSObject> object, |
2907 Handle<Name> name, | 2913 Handle<Name> name, |
2908 Handle<Object> value, | 2914 Handle<Object> value, |
2909 PropertyAttributes attributes); | 2915 PropertyAttributes attributes); |
2910 | 2916 |
2911 MUST_USE_RESULT static MaybeHandle<Object> DeleteProperty( | 2917 MUST_USE_RESULT static MaybeHandle<Object> DeleteProperty( |
2912 Handle<JSObject> object, | 2918 Handle<JSObject> object, |
2913 Handle<Name> name, | 2919 Handle<Name> name, |
2914 DeleteMode mode); | 2920 DeleteMode mode); |
(...skipping 8141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
11056 } else { | 11062 } else { |
11057 value &= ~(1 << bit_position); | 11063 value &= ~(1 << bit_position); |
11058 } | 11064 } |
11059 return value; | 11065 return value; |
11060 } | 11066 } |
11061 }; | 11067 }; |
11062 | 11068 |
11063 } } // namespace v8::internal | 11069 } } // namespace v8::internal |
11064 | 11070 |
11065 #endif // V8_OBJECTS_H_ | 11071 #endif // V8_OBJECTS_H_ |
OLD | NEW |