Repository navigation
Commit 9f770b1
committed
[JSC] Add a fast path to Parser::useVariable
https://bugs.webkit.org/show_bug.cgi?id=321716
rdar://184855343
Reviewed by Yijia Huang.
Parser::useVariable adds a variable to the top set of the m_usedVariables stack.
It's not uncommon for the same variable to be added repeatedly, so it helps
to remember the last added variable and skip the extra work if it gets added again.
Covered by existing tests.
Canonical link: https://commits.webkit.org/319191@main1 parent 60019eb commit 9f770b1
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
653 | 660 | | |
654 | 661 | | |
655 | 662 | | |
| |||
659 | 666 | | |
660 | 667 | | |
661 | 668 | | |
662 | | - | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
663 | 674 | | |
664 | | - | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
665 | 680 | | |
666 | 681 | | |
667 | 682 | | |
| |||
1031 | 1046 | | |
1032 | 1047 | | |
1033 | 1048 | | |
| 1049 | + | |
1034 | 1050 | | |
1035 | 1051 | | |
1036 | 1052 | | |
| |||
0 commit comments