| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 // They might invoke garbage collection. The result is an handle to | 186 // They might invoke garbage collection. The result is an handle to |
| 187 // an object of expected type, or the handle is an error if running out | 187 // an object of expected type, or the handle is an error if running out |
| 188 // of space or encountering an internal error. | 188 // of space or encountering an internal error. |
| 189 | 189 |
| 190 void NormalizeProperties(Handle<JSObject> object, | 190 void NormalizeProperties(Handle<JSObject> object, |
| 191 PropertyNormalizationMode mode, | 191 PropertyNormalizationMode mode, |
| 192 int expected_additional_properties); | 192 int expected_additional_properties); |
| 193 void NormalizeElements(Handle<JSObject> object); | 193 void NormalizeElements(Handle<JSObject> object); |
| 194 void TransformToFastProperties(Handle<JSObject> object, | 194 void TransformToFastProperties(Handle<JSObject> object, |
| 195 int unused_property_fields); | 195 int unused_property_fields); |
| 196 |
| 197 // Flattens a string. |
| 196 void FlattenString(Handle<String> str); | 198 void FlattenString(Handle<String> str); |
| 197 | 199 |
| 200 // Flattens a string and returns the underlying external or sequential |
| 201 // string. |
| 202 Handle<String> FlattenGetString(Handle<String> str); |
| 203 |
| 198 Handle<Object> SetProperty(Handle<JSObject> object, | 204 Handle<Object> SetProperty(Handle<JSObject> object, |
| 199 Handle<String> key, | 205 Handle<String> key, |
| 200 Handle<Object> value, | 206 Handle<Object> value, |
| 201 PropertyAttributes attributes); | 207 PropertyAttributes attributes); |
| 202 | 208 |
| 203 Handle<Object> SetProperty(Handle<Object> object, | 209 Handle<Object> SetProperty(Handle<Object> object, |
| 204 Handle<Object> key, | 210 Handle<Object> key, |
| 205 Handle<Object> value, | 211 Handle<Object> value, |
| 206 PropertyAttributes attributes); | 212 PropertyAttributes attributes); |
| 207 | 213 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 private: | 384 private: |
| 379 bool has_been_transformed_; // Tells whether the object has been transformed. | 385 bool has_been_transformed_; // Tells whether the object has been transformed. |
| 380 int unused_property_fields_; // Captures the unused number of field. | 386 int unused_property_fields_; // Captures the unused number of field. |
| 381 Handle<JSObject> object_; // The object being optimized. | 387 Handle<JSObject> object_; // The object being optimized. |
| 382 }; | 388 }; |
| 383 | 389 |
| 384 | 390 |
| 385 } } // namespace v8::internal | 391 } } // namespace v8::internal |
| 386 | 392 |
| 387 #endif // V8_HANDLES_H_ | 393 #endif // V8_HANDLES_H_ |
| OLD | NEW |