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

Side by Side Diff: src/factory.cc

Issue 151019: Changed the global object representation (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
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(
623 Handle<JSFunction> constructor) {
624 CALL_HEAP_FUNCTION(Heap::AllocateJSGlobalObject(*constructor),
625 JSGlobalObject);
626 }
627
628
629
622 Handle<JSObject> Factory::NewJSObjectFromMap(Handle<Map> map) { 630 Handle<JSObject> Factory::NewJSObjectFromMap(Handle<Map> map) {
623 CALL_HEAP_FUNCTION(Heap::AllocateJSObjectFromMap(*map, NOT_TENURED), 631 CALL_HEAP_FUNCTION(Heap::AllocateJSObjectFromMap(*map, NOT_TENURED),
624 JSObject); 632 JSObject);
625 } 633 }
626 634
627 635
628 Handle<JSArray> Factory::NewJSArray(int length, 636 Handle<JSArray> Factory::NewJSArray(int length,
629 PretenureFlag pretenure) { 637 PretenureFlag pretenure) {
630 Handle<JSObject> obj = NewJSObject(Top::array_function(), pretenure); 638 Handle<JSObject> obj = NewJSObject(Top::array_function(), pretenure);
631 CALL_HEAP_FUNCTION(Handle<JSArray>::cast(obj)->Initialize(length), JSArray); 639 CALL_HEAP_FUNCTION(Handle<JSArray>::cast(obj)->Initialize(length), JSArray);
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 Execution::ConfigureInstance(instance, 910 Execution::ConfigureInstance(instance,
903 instance_template, 911 instance_template,
904 pending_exception); 912 pending_exception);
905 } else { 913 } else {
906 *pending_exception = false; 914 *pending_exception = false;
907 } 915 }
908 } 916 }
909 917
910 918
911 } } // namespace v8::internal 919 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/heap.h » ('j') | test/cctest/test-api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698