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