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

Side by Side Diff: src/factory.cc

Issue 32003006: Handlify Heap::AllocateInitialMap method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 573
574 574
575 Handle<JSObject> Factory::NewFunctionPrototype(Handle<JSFunction> function) { 575 Handle<JSObject> Factory::NewFunctionPrototype(Handle<JSFunction> function) {
576 CALL_HEAP_FUNCTION( 576 CALL_HEAP_FUNCTION(
577 isolate(), 577 isolate(),
578 isolate()->heap()->AllocateFunctionPrototype(*function), 578 isolate()->heap()->AllocateFunctionPrototype(*function),
579 JSObject); 579 JSObject);
580 } 580 }
581 581
582 582
583 Handle<Map> Factory::NewInitialMap(Handle<JSFunction> function) {
584 CALL_HEAP_FUNCTION(
585 isolate(), isolate()->heap()->AllocateInitialMap(*function), Map);
586 }
587
588
589 Handle<Map> Factory::CopyWithPreallocatedFieldDescriptors(Handle<Map> src) { 583 Handle<Map> Factory::CopyWithPreallocatedFieldDescriptors(Handle<Map> src) {
590 CALL_HEAP_FUNCTION( 584 CALL_HEAP_FUNCTION(
591 isolate(), src->CopyWithPreallocatedFieldDescriptors(), Map); 585 isolate(), src->CopyWithPreallocatedFieldDescriptors(), Map);
592 } 586 }
593 587
594 588
595 Handle<Map> Factory::CopyMap(Handle<Map> src, 589 Handle<Map> Factory::CopyMap(Handle<Map> src,
596 int extra_inobject_properties) { 590 int extra_inobject_properties) {
597 Handle<Map> copy = CopyWithPreallocatedFieldDescriptors(src); 591 Handle<Map> copy = CopyWithPreallocatedFieldDescriptors(src);
598 // Check that we do not overflow the instance size when adding the 592 // Check that we do not overflow the instance size when adding the
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1759 return Handle<Object>::null(); 1753 return Handle<Object>::null();
1760 } 1754 }
1761 1755
1762 1756
1763 Handle<Object> Factory::ToBoolean(bool value) { 1757 Handle<Object> Factory::ToBoolean(bool value) {
1764 return value ? true_value() : false_value(); 1758 return value ? true_value() : false_value();
1765 } 1759 }
1766 1760
1767 1761
1768 } } // namespace v8::internal 1762 } } // 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