OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 255 matching lines...) Loading... |
266 // structures in the heap. | 266 // structures in the heap. |
267 Handle<JSObject> NewNeanderObject(); | 267 Handle<JSObject> NewNeanderObject(); |
268 | 268 |
269 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); | 269 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); |
270 | 270 |
271 // JS objects are pretenured when allocated by the bootstrapper and | 271 // JS objects are pretenured when allocated by the bootstrapper and |
272 // runtime. | 272 // runtime. |
273 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, | 273 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, |
274 PretenureFlag pretenure = NOT_TENURED); | 274 PretenureFlag pretenure = NOT_TENURED); |
275 | 275 |
276 Handle<JSObject> NewJSObjectWithAllocationSiteInfo( | |
277 Handle<JSFunction> constructor, | |
278 Handle<Object> payload); | |
279 | |
280 // Global objects are pretenured. | 276 // Global objects are pretenured. |
281 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); | 277 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); |
282 | 278 |
283 // JS objects are pretenured when allocated by the bootstrapper and | 279 // JS objects are pretenured when allocated by the bootstrapper and |
284 // runtime. | 280 // runtime. |
285 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map, | 281 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map, |
286 PretenureFlag pretenure = NOT_TENURED); | 282 PretenureFlag pretenure = NOT_TENURED); |
287 | 283 |
288 // JS modules are pretenured. | 284 // JS modules are pretenured. |
289 Handle<JSModule> NewJSModule(Handle<Context> context, | 285 Handle<JSModule> NewJSModule(Handle<Context> context, |
(...skipping 235 matching lines...) Loading... |
525 // Update the map cache in the native context with (keys, map) | 521 // Update the map cache in the native context with (keys, map) |
526 Handle<MapCache> AddToMapCache(Handle<Context> context, | 522 Handle<MapCache> AddToMapCache(Handle<Context> context, |
527 Handle<FixedArray> keys, | 523 Handle<FixedArray> keys, |
528 Handle<Map> map); | 524 Handle<Map> map); |
529 }; | 525 }; |
530 | 526 |
531 | 527 |
532 } } // namespace v8::internal | 528 } } // namespace v8::internal |
533 | 529 |
534 #endif // V8_FACTORY_H_ | 530 #endif // V8_FACTORY_H_ |
OLD | NEW |