Commit 6083e7a
benchmark: avoid TurboFan deopt in arrays bench
Something unidentified at the moment is causing the arrays benchmarks to
deopt when run with the TurboFan compiler. Refactor the test to use an
inner function that can be correctly optimized by TurboFan and
Crankshaft.
PR-URL: #11894
Ref: #11851 (comment)
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>1 parent cf1117b commit 6083e7aCopy full SHA for 6083e7a
File tree
Expand file treeCollapse file tree
3 files changed
+15
-3
lines changedOpen diff view settings
Filter options
- benchmark/arrays
Expand file treeCollapse file tree
3 files changed
+15
-3
lines changedOpen diff view settings
Collapse file
benchmark/arrays/var-int.js
Copy file name to clipboardExpand all lines: benchmark/arrays/var-int.js+5-1Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
30 | 35 | |
31 | 36 | |
32 | 37 | |
33 | 38 | |
34 | | - |
35 | 39 | |
Collapse file
benchmark/arrays/zero-float.js
Copy file name to clipboardExpand all lines: benchmark/arrays/zero-float.js+5-1Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
30 | 35 | |
31 | 36 | |
32 | 37 | |
33 | 38 | |
34 | | - |
35 | 39 | |
Collapse file
benchmark/arrays/zero-int.js
Copy file name to clipboardExpand all lines: benchmark/arrays/zero-int.js+5-1Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
30 | 35 | |
31 | 36 | |
32 | 37 | |
33 | 38 | |
34 | | - |
35 | 39 | |
0 commit comments