Reviewers: danno, Hannes Payer, titzer,
Message:
Hi guys,
Here is the experiment with array capacity feedback thus far. It works
modulo a
few caveats :p.
--Michael
Description:
Basic array capacity feedback via allocation sites.
Caveats:
* Only for constructed arrays, not literals.
* Maximum capacity feedback of 1023 elements.
* Gathers feedback in full code, bakes in only in optimized code.
* Only works for these cases:
new Array();
new Array(<0 <= constant <= 8>);
and not for
new Array(arg1, arg2, ..., argN)
or
new Array(non-constant length)
Also (as if that wasn't enough)
* Only gathers feedback on calls to array.push on SMI or FAST arrays
which are handled by the C++ runtime.
BUG=
Please review this at https://codereview.chromium.org/702243003/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+151, -8 lines):
M src/builtins.cc
M src/hydrogen.h
M src/hydrogen.cc
M src/objects.h
M src/runtime/runtime.h
M src/runtime/runtime.cc
M test/mjsunit/array-constructor-feedback.js
--
--
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.