Hi Slava, thanks, I gonna send you a patch shortly.

http://codereview.chromium.org/6932068/diff/9002/src/heap.cc
File src/heap.cc (right):

http://codereview.chromium.org/6932068/diff/9002/src/heap.cc#newcode3220
src/heap.cc:3220: if (!maybe_map_obj->ToObject(&map_obj)) return
maybe_map_obj;
On 2011/05/22 14:45:50, Vyacheslav Egorov wrote:
I introduced a helpful templated To<T> accessor to avoid boilerplate
code:

if (!maybe_map_obj->To<Map>(&map)) ...

Ah, nice. Done.

http://codereview.chromium.org/6932068/diff/9002/src/objects-visiting.cc
File src/objects-visiting.cc (right):

http://codereview.chromium.org/6932068/diff/9002/src/objects-visiting.cc#newcode92
src/objects-visiting.cc:92: return GetVisitorIdForSize(kVisitDataObject,
On 2011/05/22 14:45:50, Vyacheslav Egorov wrote:
This introduces a subtle GC problem: JS_PROXY is not a data object.
Data objects
do not contain pointers in their bodies.

We should either pretend that JS_PROXY is a struct (kVisitStruct,
kVisitStructGeneric) or introduce a separate kVisitJSProxy.

I think pretending that JS_PROXY is a struct should be fine especially
because
proxies are probably not going to need any special handling by
visitors.

Done.

http://codereview.chromium.org/6932068/

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to