https://codereview.chromium.org/1010673004/diff/80001/src/compiler.cc
File src/compiler.cc (right):

https://codereview.chromium.org/1010673004/diff/80001/src/compiler.cc#newcode224
src/compiler.cc:224: return scope() == nullptr ? parameter_count_ :
scope()->num_parameters();
On 2015/03/18 09:25:53, titzer wrote:
Maybe we should have a has_scope() predicate?

Done.

https://codereview.chromium.org/1010673004/diff/80001/src/compiler/js-intrinsic-lowering.cc
File src/compiler/js-intrinsic-lowering.cc (right):

https://codereview.chromium.org/1010673004/diff/80001/src/compiler/js-intrinsic-lowering.cc#newcode118
src/compiler/js-intrinsic-lowering.cc:118:
NodeProperties::ReplaceWithValue(node, result);
On 2015/03/18 09:25:53, titzer wrote:
This looks like a good candidate to mutate in place. You should be
able to just
do:

NodeProperties::ReplaceWithValue(node, node)


Done.

https://codereview.chromium.org/1010673004/diff/80001/src/compiler/js-intrinsic-lowering.cc#newcode205
src/compiler/js-intrinsic-lowering.cc:205:
NodeProperties::ReplaceWithValue(node, result);
On 2015/03/18 09:25:53, titzer wrote:
Same as above.

Done.

https://codereview.chromium.org/1010673004/diff/80001/src/runtime/runtime.h
File src/runtime/runtime.h (right):

https://codereview.chromium.org/1010673004/diff/80001/src/runtime/runtime.h#newcode720
src/runtime/runtime.h:720: F(JSValueValue, 1, 1)
On 2015/03/18 09:25:53, titzer wrote:
We need a better name somehow...

Done.

BTW what are the checks associated with this JSValueValue? What
happens if you
pass a SMI?

As discussed offline: There are intentionally no checks, all intrinsics
are unsafe by definition. What we probably should do in the future is to
have some kind of type annotation which can be checked in debug builds.

https://codereview.chromium.org/1010673004/

--
--
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/d/optout.

Reply via email to