| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 KeyCollectionType type); | 280 KeyCollectionType type); |
| 281 Handle<JSArray> GetKeysFor(Handle<JSObject> object); | 281 Handle<JSArray> GetKeysFor(Handle<JSObject> object); |
| 282 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, | 282 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, |
| 283 bool cache_result); | 283 bool cache_result); |
| 284 | 284 |
| 285 // Computes the union of keys and return the result. | 285 // Computes the union of keys and return the result. |
| 286 // Used for implementing "for (n in object) { }" | 286 // Used for implementing "for (n in object) { }" |
| 287 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, | 287 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, |
| 288 Handle<FixedArray> second); | 288 Handle<FixedArray> second); |
| 289 | 289 |
| 290 Handle<String> SubString(Handle<String> str, int start, int end); | 290 Handle<String> SubString(Handle<String> str, |
| 291 int start, |
| 292 int end, |
| 293 PretenureFlag pretenure = NOT_TENURED); |
| 291 | 294 |
| 292 | 295 |
| 293 // Sets the expected number of properties for the function's instances. | 296 // Sets the expected number of properties for the function's instances. |
| 294 void SetExpectedNofProperties(Handle<JSFunction> func, int nof); | 297 void SetExpectedNofProperties(Handle<JSFunction> func, int nof); |
| 295 | 298 |
| 296 // Sets the prototype property for a function instance. | 299 // Sets the prototype property for a function instance. |
| 297 void SetPrototypeProperty(Handle<JSFunction> func, Handle<JSObject> value); | 300 void SetPrototypeProperty(Handle<JSFunction> func, Handle<JSObject> value); |
| 298 | 301 |
| 299 // Sets the expected number of properties based on estimate from compiler. | 302 // Sets the expected number of properties based on estimate from compiler. |
| 300 void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared, | 303 void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 private: | 370 private: |
| 368 bool has_been_transformed_; // Tells whether the object has been transformed. | 371 bool has_been_transformed_; // Tells whether the object has been transformed. |
| 369 int unused_property_fields_; // Captures the unused number of field. | 372 int unused_property_fields_; // Captures the unused number of field. |
| 370 Handle<JSObject> object_; // The object being optimized. | 373 Handle<JSObject> object_; // The object being optimized. |
| 371 }; | 374 }; |
| 372 | 375 |
| 373 | 376 |
| 374 } } // namespace v8::internal | 377 } } // namespace v8::internal |
| 375 | 378 |
| 376 #endif // V8_HANDLES_H_ | 379 #endif // V8_HANDLES_H_ |
| OLD | NEW |