https://codereview.chromium.org/19638003/diff/2001/src/accessors.cc
File src/accessors.cc (right):
https://codereview.chromium.org/19638003/diff/2001/src/accessors.cc#newcode582
src/accessors.cc:582: isolate, Accessors::FunctionGetArguments(*object,
0), Object);
On 2013/07/18 12:21:18, Yang wrote:
The call sites always have a comment that this cannot return a
failure. Can we
just assert it and create a handle from it directly?
See comment in the header.
https://codereview.chromium.org/19638003/diff/2001/src/accessors.h
File src/accessors.h (right):
https://codereview.chromium.org/19638003/diff/2001/src/accessors.h#newcode81
src/accessors.h:81: static Handle<Object>
FunctionGetArguments(Handle<Object> object);
On 2013/07/18 12:21:18, Yang wrote:
Call sites of this always pass a Handle<JSFunction> and expect a
Handle<JSObject> as return value. Can we reflect that?
In general the function can return any object (e.g. undefined as well),
so I think the signature should reflect that instead of being
specialized for two particular call-sites that just happen to use it in
cases where an actual arguments-object is returned. Same applies for the
argument, the function can handle any object properly.
https://codereview.chromium.org/19638003/
--
--
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.