OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 // ---------------------------------------------------------------------------- | 164 // ---------------------------------------------------------------------------- |
165 // Handle operations. | 165 // Handle operations. |
166 // They might invoke garbage collection. The result is an handle to | 166 // They might invoke garbage collection. The result is an handle to |
167 // an object of expected type, or the handle is an error if running out | 167 // an object of expected type, or the handle is an error if running out |
168 // of space or encountering an internal error. | 168 // of space or encountering an internal error. |
169 | 169 |
170 void NormalizeProperties(Handle<JSObject> object, | 170 void NormalizeProperties(Handle<JSObject> object, |
171 PropertyNormalizationMode mode, | 171 PropertyNormalizationMode mode, |
172 int expected_additional_properties); | 172 int expected_additional_properties); |
173 Handle<NumberDictionary> NormalizeElements(Handle<JSObject> object); | 173 Handle<SeededNumberDictionary> NormalizeElements(Handle<JSObject> object); |
174 void TransformToFastProperties(Handle<JSObject> object, | 174 void TransformToFastProperties(Handle<JSObject> object, |
175 int unused_property_fields); | 175 int unused_property_fields); |
176 MUST_USE_RESULT Handle<NumberDictionary> NumberDictionarySet( | 176 MUST_USE_RESULT Handle<SeededNumberDictionary> SeededNumberDictionarySet( |
177 Handle<NumberDictionary> dictionary, | 177 Handle<SeededNumberDictionary> dictionary, |
178 uint32_t index, | 178 uint32_t index, |
179 Handle<Object> value, | 179 Handle<Object> value, |
180 PropertyDetails details); | 180 PropertyDetails details); |
181 | 181 |
182 // Flattens a string. | 182 // Flattens a string. |
183 void FlattenString(Handle<String> str); | 183 void FlattenString(Handle<String> str); |
184 | 184 |
185 // Flattens a string and returns the underlying external or sequential | 185 // Flattens a string and returns the underlying external or sequential |
186 // string. | 186 // string. |
187 Handle<String> FlattenGetString(Handle<String> str); | 187 Handle<String> FlattenGetString(Handle<String> str); |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 inline NoHandleAllocation(); | 376 inline NoHandleAllocation(); |
377 inline ~NoHandleAllocation(); | 377 inline ~NoHandleAllocation(); |
378 private: | 378 private: |
379 int level_; | 379 int level_; |
380 #endif | 380 #endif |
381 }; | 381 }; |
382 | 382 |
383 } } // namespace v8::internal | 383 } } // namespace v8::internal |
384 | 384 |
385 #endif // V8_HANDLES_H_ | 385 #endif // V8_HANDLES_H_ |
OLD | NEW |