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 2856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2867 | 2867 |
2868 // Add a property to a fast-case object. | 2868 // Add a property to a fast-case object. |
2869 static void AddFastProperty(Handle<JSObject> object, | 2869 static void AddFastProperty(Handle<JSObject> object, |
2870 Handle<Name> name, | 2870 Handle<Name> name, |
2871 Handle<Object> value, | 2871 Handle<Object> value, |
2872 PropertyAttributes attributes, | 2872 PropertyAttributes attributes, |
2873 StoreFromKeyed store_mode, | 2873 StoreFromKeyed store_mode, |
2874 ValueType value_type, | 2874 ValueType value_type, |
2875 TransitionFlag flag); | 2875 TransitionFlag flag); |
2876 | 2876 |
2877 // Add a property to a fast-case object using a map transition to | |
2878 // new_map. | |
2879 static void AddFastPropertyUsingMap(Handle<JSObject> object, | |
2880 Handle<Map> new_map, | |
2881 Handle<Name> name, | |
2882 Handle<Object> value, | |
2883 int field_index, | |
2884 Representation representation); | |
2885 | |
2886 // Add a property to a slow-case object. | 2877 // Add a property to a slow-case object. |
2887 static void AddSlowProperty(Handle<JSObject> object, | 2878 static void AddSlowProperty(Handle<JSObject> object, |
2888 Handle<Name> name, | 2879 Handle<Name> name, |
2889 Handle<Object> value, | 2880 Handle<Object> value, |
2890 PropertyAttributes attributes); | 2881 PropertyAttributes attributes); |
2891 | 2882 |
2892 static Handle<Object> DeleteProperty(Handle<JSObject> object, | 2883 static Handle<Object> DeleteProperty(Handle<JSObject> object, |
2893 Handle<Name> name, | 2884 Handle<Name> name, |
2894 DeleteMode mode); | 2885 DeleteMode mode); |
2895 static Handle<Object> DeletePropertyPostInterceptor(Handle<JSObject> object, | 2886 static Handle<Object> DeletePropertyPostInterceptor(Handle<JSObject> object, |
(...skipping 7901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10797 } else { | 10788 } else { |
10798 value &= ~(1 << bit_position); | 10789 value &= ~(1 << bit_position); |
10799 } | 10790 } |
10800 return value; | 10791 return value; |
10801 } | 10792 } |
10802 }; | 10793 }; |
10803 | 10794 |
10804 } } // namespace v8::internal | 10795 } } // namespace v8::internal |
10805 | 10796 |
10806 #endif // V8_OBJECTS_H_ | 10797 #endif // V8_OBJECTS_H_ |
OLD | NEW |