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

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: Comment response. 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 // These objects are used by the api to create env-independent data 316 // These objects are used by the api to create env-independent data
317 // structures in the heap. 317 // structures in the heap.
318 Handle<JSObject> NewNeanderObject(); 318 Handle<JSObject> NewNeanderObject();
319 319
320 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); 320 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length);
321 321
322 // JS objects are pretenured when allocated by the bootstrapper and 322 // JS objects are pretenured when allocated by the bootstrapper and
323 // runtime. 323 // runtime.
324 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, 324 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor,
325 PretenureFlag pretenure = NOT_TENURED); 325 PretenureFlag pretenure = NOT_TENURED);
326 // JSObject that should have a memento pointing to the allocation site.
327 Handle<JSObject> NewJSObjectWithMemento(Handle<JSFunction> constructor,
328 Handle<AllocationSite> site);
326 329
327 // Global objects are pretenured and initialized based on a constructor. 330 // Global objects are pretenured and initialized based on a constructor.
328 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); 331 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor);
329 332
330 // JS objects are pretenured when allocated by the bootstrapper and 333 // JS objects are pretenured when allocated by the bootstrapper and
331 // runtime. 334 // runtime.
332 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map, 335 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map,
333 PretenureFlag pretenure = NOT_TENURED, 336 PretenureFlag pretenure = NOT_TENURED,
334 bool allocate_properties = true); 337 bool allocate_properties = true);
335 338
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 isolate()); 600 isolate());
598 } else { 601 } else {
599 return NewNumber(static_cast<double>(value), pretenure); 602 return NewNumber(static_cast<double>(value), pretenure);
600 } 603 }
601 } 604 }
602 605
603 606
604 } } // namespace v8::internal 607 } } // namespace v8::internal
605 608
606 #endif // V8_FACTORY_H_ 609 #endif // V8_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698