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

Side by Side Diff: src/factory.cc

Issue 151146: Treat the builtins object like other global objects (with... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 5 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/factory.h ('k') | src/heap.h » ('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 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 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 return result; 612 return result;
613 } 613 }
614 614
615 615
616 Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor, 616 Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor,
617 PretenureFlag pretenure) { 617 PretenureFlag pretenure) {
618 CALL_HEAP_FUNCTION(Heap::AllocateJSObject(*constructor, pretenure), JSObject); 618 CALL_HEAP_FUNCTION(Heap::AllocateJSObject(*constructor, pretenure), JSObject);
619 } 619 }
620 620
621 621
622 Handle<JSGlobalObject> Factory::NewJSGlobalObject( 622 Handle<GlobalObject> Factory::NewGlobalObject(
623 Handle<JSFunction> constructor) { 623 Handle<JSFunction> constructor) {
624 CALL_HEAP_FUNCTION(Heap::AllocateJSGlobalObject(*constructor), 624 CALL_HEAP_FUNCTION(Heap::AllocateGlobalObject(*constructor),
625 JSGlobalObject); 625 GlobalObject);
626 } 626 }
627 627
628 628
629 629
630 Handle<JSObject> Factory::NewJSObjectFromMap(Handle<Map> map) { 630 Handle<JSObject> Factory::NewJSObjectFromMap(Handle<Map> map) {
631 CALL_HEAP_FUNCTION(Heap::AllocateJSObjectFromMap(*map, NOT_TENURED), 631 CALL_HEAP_FUNCTION(Heap::AllocateJSObjectFromMap(*map, NOT_TENURED),
632 JSObject); 632 JSObject);
633 } 633 }
634 634
635 635
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 Execution::ConfigureInstance(instance, 910 Execution::ConfigureInstance(instance,
911 instance_template, 911 instance_template,
912 pending_exception); 912 pending_exception);
913 } else { 913 } else {
914 *pending_exception = false; 914 *pending_exception = false;
915 } 915 }
916 } 916 }
917 917
918 918
919 } } // namespace v8::internal 919 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698