|
|
Basic array capacity feedback via allocation sites.
Caveats:
* 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=
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+162 lines, -16 lines) |
Patch |
 |
M |
src/builtins.cc
|
View
|
1
2
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/elements.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/flag-definitions.h
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/hydrogen.h
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/hydrogen.cc
|
View
|
1
2
|
4 chunks |
+44 lines, -8 lines |
0 comments
|
Download
|
 |
M |
src/objects.h
|
View
|
1
2
|
3 chunks |
+13 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/objects-inl.h
|
View
|
1
2
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/runtime/runtime.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
src/runtime/runtime.cc
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
test/mjsunit/array-constructor-feedback.js
|
View
|
1
2
|
2 chunks |
+50 lines, -0 lines |
0 comments
|
Download
|
Total messages: 4 (3 generated)
|