| 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 2094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2105 inline SeededNumberDictionary* element_dictionary(); // Gets slow elements. | 2105 inline SeededNumberDictionary* element_dictionary(); // Gets slow elements. |
| 2106 | 2106 |
| 2107 inline bool ShouldTrackAllocationInfo(); | 2107 inline bool ShouldTrackAllocationInfo(); |
| 2108 | 2108 |
| 2109 inline void set_map_and_elements( | 2109 inline void set_map_and_elements( |
| 2110 Map* map, | 2110 Map* map, |
| 2111 FixedArrayBase* value, | 2111 FixedArrayBase* value, |
| 2112 WriteBarrierMode mode = UPDATE_WRITE_BARRIER); | 2112 WriteBarrierMode mode = UPDATE_WRITE_BARRIER); |
| 2113 | 2113 |
| 2114 // Requires: HasFastElements(). | 2114 // Requires: HasFastElements(). |
| 2115 static Handle<FixedArray> EnsureWritableFastElements( |
| 2116 Handle<JSObject> object); |
| 2115 MUST_USE_RESULT inline MaybeObject* EnsureWritableFastElements(); | 2117 MUST_USE_RESULT inline MaybeObject* EnsureWritableFastElements(); |
| 2116 | 2118 |
| 2117 // Collects elements starting at index 0. | 2119 // Collects elements starting at index 0. |
| 2118 // Undefined values are placed after non-undefined values. | 2120 // Undefined values are placed after non-undefined values. |
| 2119 // Returns the number of non-undefined values. | 2121 // Returns the number of non-undefined values. |
| 2120 MUST_USE_RESULT MaybeObject* PrepareElementsForSort(uint32_t limit); | 2122 static Handle<Object> PrepareElementsForSort(Handle<JSObject> object, |
| 2123 uint32_t limit); |
| 2121 // As PrepareElementsForSort, but only on objects where elements is | 2124 // As PrepareElementsForSort, but only on objects where elements is |
| 2122 // a dictionary, and it will stay a dictionary. | 2125 // a dictionary, and it will stay a dictionary. |
| 2126 static Handle<Object> PrepareSlowElementsForSort(Handle<JSObject> object, |
| 2127 uint32_t limit); |
| 2123 MUST_USE_RESULT MaybeObject* PrepareSlowElementsForSort(uint32_t limit); | 2128 MUST_USE_RESULT MaybeObject* PrepareSlowElementsForSort(uint32_t limit); |
| 2124 | 2129 |
| 2125 static Handle<Object> GetPropertyWithCallback(Handle<JSObject> object, | 2130 static Handle<Object> GetPropertyWithCallback(Handle<JSObject> object, |
| 2126 Handle<Object> receiver, | 2131 Handle<Object> receiver, |
| 2127 Handle<Object> structure, | 2132 Handle<Object> structure, |
| 2128 Handle<Name> name); | 2133 Handle<Name> name); |
| 2129 | 2134 |
| 2130 static Handle<Object> SetPropertyWithCallback( | 2135 static Handle<Object> SetPropertyWithCallback( |
| 2131 Handle<JSObject> object, | 2136 Handle<JSObject> object, |
| 2132 Handle<Object> structure, | 2137 Handle<Object> structure, |
| (...skipping 8299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10432 } else { | 10437 } else { |
| 10433 value &= ~(1 << bit_position); | 10438 value &= ~(1 << bit_position); |
| 10434 } | 10439 } |
| 10435 return value; | 10440 return value; |
| 10436 } | 10441 } |
| 10437 }; | 10442 }; |
| 10438 | 10443 |
| 10439 } } // namespace v8::internal | 10444 } } // namespace v8::internal |
| 10440 | 10445 |
| 10441 #endif // V8_OBJECTS_H_ | 10446 #endif // V8_OBJECTS_H_ |
| OLD | NEW |