| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 | 305 |
| 306 // Sets the expected number of properties for the function's instances. | 306 // Sets the expected number of properties for the function's instances. |
| 307 void SetExpectedNofProperties(Handle<JSFunction> func, int nof); | 307 void SetExpectedNofProperties(Handle<JSFunction> func, int nof); |
| 308 | 308 |
| 309 // Sets the prototype property for a function instance. | 309 // Sets the prototype property for a function instance. |
| 310 void SetPrototypeProperty(Handle<JSFunction> func, Handle<JSObject> value); | 310 void SetPrototypeProperty(Handle<JSFunction> func, Handle<JSObject> value); |
| 311 | 311 |
| 312 // Sets the expected number of properties based on estimate from compiler. | 312 // Sets the expected number of properties based on estimate from compiler. |
| 313 void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared, | 313 void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared, |
| 314 int estimate); | 314 int estimate); |
| 315 void SetExpectedNofPropertiesFromEstimate(Handle<JSFunction> func, | |
| 316 int estimate); | |
| 317 | 315 |
| 318 | 316 |
| 319 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( | 317 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( |
| 320 Handle<JSFunction> constructor, | 318 Handle<JSFunction> constructor, |
| 321 Handle<JSGlobalProxy> global); | 319 Handle<JSGlobalProxy> global); |
| 322 | 320 |
| 323 Handle<Object> SetPrototype(Handle<JSFunction> function, | 321 Handle<Object> SetPrototype(Handle<JSFunction> function, |
| 324 Handle<Object> prototype); | 322 Handle<Object> prototype); |
| 325 | 323 |
| 326 | 324 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 private: | 371 private: |
| 374 bool has_been_transformed_; // Tells whether the object has been transformed. | 372 bool has_been_transformed_; // Tells whether the object has been transformed. |
| 375 int unused_property_fields_; // Captures the unused number of field. | 373 int unused_property_fields_; // Captures the unused number of field. |
| 376 Handle<JSObject> object_; // The object being optimized. | 374 Handle<JSObject> object_; // The object being optimized. |
| 377 }; | 375 }; |
| 378 | 376 |
| 379 | 377 |
| 380 } } // namespace v8::internal | 378 } } // namespace v8::internal |
| 381 | 379 |
| 382 #endif // V8_HANDLES_H_ | 380 #endif // V8_HANDLES_H_ |
| OLD | NEW |