|
|
Optimize Map/Set.prototype.forEach
Instead of using an iterator result object and an entries array
(for Map) we call multiple runtime functions that returns the values
without wrapping them in temporary objects.
This gives a 85% performance increase for Map.prototype.forEach as
well as 13% and 8% perf increase overall on the Map and Set tests.
BUG=None
LOG=Y
Total comments: 6
Total comments: 6
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+199 lines, -75 lines) |
Patch |
 |
M |
src/collection.js
|
View
|
1
|
2 chunks |
+12 lines, -6 lines |
2 comments
|
Download
|
 |
M |
src/objects.h
|
View
|
1
2
3
4
5
|
4 chunks |
+27 lines, -8 lines |
0 comments
|
Download
|
 |
M |
src/objects.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+67 lines, -52 lines |
0 comments
|
Download
|
 |
M |
src/objects-inl.h
|
View
|
1
2
3
4
5
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/runtime.h
|
View
|
1
2
3
4
5
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/runtime.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+58 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
test/mjsunit/runtime-gen/mapiteratorcurrentkey.js
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
test/mjsunit/runtime-gen/mapiteratorcurrentvalue.js
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
test/mjsunit/runtime-gen/mapiteratorhasmore.js
|
View
|
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
test/mjsunit/runtime-gen/mapiteratormovenext.js
|
View
|
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
test/mjsunit/runtime-gen/setiteratorcurrentkey.js
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
test/mjsunit/runtime-gen/setiteratorhasmore.js
|
View
|
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
test/mjsunit/runtime-gen/setiteratormovenext.js
|
View
|
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tools/generate-runtime-tests.py
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 21 (0 generated)
|