Introduce JSFunction::EnsureHasInitialMap method.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 5 Nov 2013 12:11:27 +0000 (12:11 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 5 Nov 2013 12:11:27 +0000 (12:11 +0000)
commit5267d7b884be41aea02449e383212f9611cc31b2
tree7242519a720c244fcf6b374e82db6025ad3d8b1b
parent74ad230a8e6648bf0c9e1399b3676d230044e7bb
Introduce JSFunction::EnsureHasInitialMap method.

This change enforces explicit allocation of the initial map for each
JSFunction to introduce a proper layering between the JSFunction class
and the Heap class. A follow-up change will then handlify the two
functions AllocateInitialMap and AllocateFunctionPrototype.

R=rossberg@chromium.org
BUG=v8:2877

Review URL: https://codereview.chromium.org/32323013

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17480 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/factory.cc
src/factory.h
src/heap.cc
src/heap.h
src/objects.cc
src/objects.h
src/runtime.cc