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

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, 9 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
« no previous file with comments | « src/ast.cc ('k') | src/factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // These objects are used by the api to create env-independent data 321 // These objects are used by the api to create env-independent data
322 // structures in the heap. 322 // structures in the heap.
323 Handle<JSObject> NewNeanderObject(); 323 Handle<JSObject> NewNeanderObject();
324 324
325 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); 325 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length);
326 326
327 // JS objects are pretenured when allocated by the bootstrapper and 327 // JS objects are pretenured when allocated by the bootstrapper and
328 // runtime. 328 // runtime.
329 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, 329 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor,
330 PretenureFlag pretenure = NOT_TENURED); 330 PretenureFlag pretenure = NOT_TENURED);
331 // JSObject that should have a memento pointing to the allocation site.
332 Handle<JSObject> NewJSObjectWithMemento(Handle<JSFunction> constructor,
333 Handle<AllocationSite> site);
331 334
332 // Global objects are pretenured and initialized based on a constructor. 335 // Global objects are pretenured and initialized based on a constructor.
333 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); 336 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor);
334 337
335 // JS objects are pretenured when allocated by the bootstrapper and 338 // JS objects are pretenured when allocated by the bootstrapper and
336 // runtime. 339 // runtime.
337 Handle<JSObject> NewJSObjectFromMap( 340 Handle<JSObject> NewJSObjectFromMap(
338 Handle<Map> map, 341 Handle<Map> map,
339 PretenureFlag pretenure = NOT_TENURED, 342 PretenureFlag pretenure = NOT_TENURED,
340 bool allocate_properties = true, 343 bool allocate_properties = true,
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 isolate()); 614 isolate());
612 } else { 615 } else {
613 return NewNumber(static_cast<double>(value), pretenure); 616 return NewNumber(static_cast<double>(value), pretenure);
614 } 617 }
615 } 618 }
616 619
617 620
618 } } // namespace v8::internal 621 } } // namespace v8::internal
619 622
620 #endif // V8_FACTORY_H_ 623 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698