Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: src/factory.h

Issue 132963012: Pretenure call new support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 // These objects are used by the api to create env-independent data 319 // These objects are used by the api to create env-independent data
320 // structures in the heap. 320 // structures in the heap.
321 Handle<JSObject> NewNeanderObject(); 321 Handle<JSObject> NewNeanderObject();
322 322
323 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); 323 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length);
324 324
325 // JS objects are pretenured when allocated by the bootstrapper and 325 // JS objects are pretenured when allocated by the bootstrapper and
326 // runtime. 326 // runtime.
327 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, 327 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor,
328 PretenureFlag pretenure = NOT_TENURED); 328 PretenureFlag pretenure = NOT_TENURED);
329 // JSObject that should have a memento pointing to the allocation site.
330 Handle<JSObject> NewJSObjectWithMemento(Handle<JSFunction> constructor,
331 Handle<AllocationSite> site);
329 332
330 // Global objects are pretenured and initialized based on a constructor. 333 // Global objects are pretenured and initialized based on a constructor.
331 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); 334 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor);
332 335
333 // JS objects are pretenured when allocated by the bootstrapper and 336 // JS objects are pretenured when allocated by the bootstrapper and
334 // runtime. 337 // runtime.
335 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map, 338 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map,
336 PretenureFlag pretenure = NOT_TENURED, 339 PretenureFlag pretenure = NOT_TENURED,
337 bool allocate_properties = true); 340 bool allocate_properties = true);
338 341
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 isolate()); 604 isolate());
602 } else { 605 } else {
603 return NewNumber(static_cast<double>(value), pretenure); 606 return NewNumber(static_cast<double>(value), pretenure);
604 } 607 }
605 } 608 }
606 609
607 610
608 } } // namespace v8::internal 611 } } // namespace v8::internal
609 612
610 #endif // V8_FACTORY_H_ 613 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/factory.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698