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 void NormalizeElements(Handle<JSObject> object); | 173 Handle<NumberDictionary> 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<NumberDictionary> NumberDictionarySet( |
177 Handle<NumberDictionary> dictionary, | 177 Handle<NumberDictionary> 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); |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 inline NoHandleAllocation(); | 370 inline NoHandleAllocation(); |
371 inline ~NoHandleAllocation(); | 371 inline ~NoHandleAllocation(); |
372 private: | 372 private: |
373 int level_; | 373 int level_; |
374 #endif | 374 #endif |
375 }; | 375 }; |
376 | 376 |
377 } } // namespace v8::internal | 377 } } // namespace v8::internal |
378 | 378 |
379 #endif // V8_HANDLES_H_ | 379 #endif // V8_HANDLES_H_ |
OLD | NEW |