Added comments. Looking good, minus the missing empty-handle-check.
https://codereview.chromium.org/22934006/diff/1/src/objects.cc
File src/objects.cc (right):
https://codereview.chromium.org/22934006/diff/1/src/objects.cc#newcode5710
src/objects.cc:5710:
(IsFastObjectElementsKind(copy->GetElementsKind())));
We can only have JSObject values if we are in the case
IsFastObjectElementsKind(copy->GetElementsKind()). This ASSERT at least
superfluous, but also indicates that we are doing too much work in the
case that we are FAST_(HOLEY_)SMI; trying to copy JSObjects that can't
be there by construction.
https://codereview.chromium.org/22934006/diff/1/src/runtime.cc
File src/runtime.cc (right):
https://codereview.chromium.org/22934006/diff/1/src/runtime.cc#newcode503
src/runtime.cc:503: return
*JSObject::DeepCopy(Handle<JSObject>::cast(boilerplate));
As discussed, here and everywhere else, we need an empty-handle check;
since the stack check in DeepCopy can return Handle<Object>::null().
https://codereview.chromium.org/22934006/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.