allocateCell() and tryAllocateCell() can fetch Heap& from VM& themselves. This allows us to make all the client code more terse, and also makes it easier to redirect the underlying heap to allocate from later for global GC work. Additionally, this will help make the global GC patch less of a mega patch and easier to review later.
<rdar://problem/85329680>
Created attachment 444042 [details] proposed patch.
Created attachment 444045 [details] proposed patch.
Created attachment 444049 [details] proposed patch.
Comment on attachment 444049 [details] proposed patch. r=me
The mac-wk1 EWS failed tests is due to a known flaky crash on that test fast/dom/Geolocation/cached-position-iframe.html. Hence, it's not related to this patch.
Thanks for the review. Landed in r285730: <http://trac.webkit.org/r285730>.