The caller is supposed to precompensate for memory that is wasted at the
end of
pages. This seems onerous, but it's the sort of thing the snapshot code
already
needs to keep track of so it's not too bad. I will update the comments
accordingly.
As for the large object space that is a little messy. In practice, a
context
snapshot won't contain many large objects and it may be OK to just fudge it
by
using an AlwaysAllocate scope around large object allocations. At least
there
are no issues with non-contiguous allocation.
http://codereview.chromium.org/545026
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev