| 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 2743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2754 static void AddFastProperty(Handle<JSObject> object, | 2754 static void AddFastProperty(Handle<JSObject> object, |
| 2755 Handle<Name> name, | 2755 Handle<Name> name, |
| 2756 Handle<Object> value, | 2756 Handle<Object> value, |
| 2757 PropertyAttributes attributes, | 2757 PropertyAttributes attributes, |
| 2758 StoreFromKeyed store_mode, | 2758 StoreFromKeyed store_mode, |
| 2759 ValueType value_type, | 2759 ValueType value_type, |
| 2760 TransitionFlag flag); | 2760 TransitionFlag flag); |
| 2761 | 2761 |
| 2762 // Add a property to a fast-case object using a map transition to | 2762 // Add a property to a fast-case object using a map transition to |
| 2763 // new_map. | 2763 // new_map. |
| 2764 static Handle<Object> AddFastPropertyUsingMap(Handle<JSObject> object, | 2764 static void AddFastPropertyUsingMap(Handle<JSObject> object, |
| 2765 Handle<Map> new_map, | 2765 Handle<Map> new_map, |
| 2766 Handle<Name> name, | 2766 Handle<Name> name, |
| 2767 Handle<Object> value, | 2767 Handle<Object> value, |
| 2768 int field_index, | 2768 int field_index, |
| 2769 Representation representation); | 2769 Representation representation); |
| 2770 MUST_USE_RESULT MaybeObject* AddFastPropertyUsingMap( | |
| 2771 Map* new_map, | |
| 2772 Name* name, | |
| 2773 Object* value, | |
| 2774 int field_index, | |
| 2775 Representation representation); | |
| 2776 | 2770 |
| 2777 // Add a property to a slow-case object. | 2771 // Add a property to a slow-case object. |
| 2778 static void AddSlowProperty(Handle<JSObject> object, | 2772 static void AddSlowProperty(Handle<JSObject> object, |
| 2779 Handle<Name> name, | 2773 Handle<Name> name, |
| 2780 Handle<Object> value, | 2774 Handle<Object> value, |
| 2781 PropertyAttributes attributes); | 2775 PropertyAttributes attributes); |
| 2782 | 2776 |
| 2783 static Handle<Object> DeleteProperty(Handle<JSObject> object, | 2777 static Handle<Object> DeleteProperty(Handle<JSObject> object, |
| 2784 Handle<Name> name, | 2778 Handle<Name> name, |
| 2785 DeleteMode mode); | 2779 DeleteMode mode); |
| (...skipping 7462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10248 } else { | 10242 } else { |
| 10249 value &= ~(1 << bit_position); | 10243 value &= ~(1 << bit_position); |
| 10250 } | 10244 } |
| 10251 return value; | 10245 return value; |
| 10252 } | 10246 } |
| 10253 }; | 10247 }; |
| 10254 | 10248 |
| 10255 } } // namespace v8::internal | 10249 } } // namespace v8::internal |
| 10256 | 10250 |
| 10257 #endif // V8_OBJECTS_H_ | 10251 #endif // V8_OBJECTS_H_ |
| OLD | NEW |