OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |