Commit 9ad61e6
[builtins] Speedup Object.keys by adding a fast path for objects without elements, interceptors, ...
This speeds up the for-of-object benchmark at
http://kpdecker.github.io/six-speed/ by >2x.
BUG=
Review URL: https://codereview.chromium.org/1682873003
Cr-Commit-Position: refs/heads/master@{#33867}1 parent 4f62af4 commit 9ad61e6
2 files changed
Lines changed: 31 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1766 | 1766 | | |
1767 | 1767 | | |
1768 | 1768 | | |
| 1769 | + | |
1769 | 1770 | | |
1770 | | - | |
1771 | | - | |
1772 | | - | |
1773 | | - | |
1774 | | - | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
1775 | 1791 | | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
1776 | 1800 | | |
1777 | 1801 | | |
1778 | 1802 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8742 | 8742 | | |
8743 | 8743 | | |
8744 | 8744 | | |
8745 | | - | |
| 8745 | + | |
| 8746 | + | |
8746 | 8747 | | |
8747 | 8748 | | |
8748 | 8749 | | |
| |||
0 commit comments