RESOLVED FIXED Bug 220219
[JSC] Remove unnecessary mov bytecodes when performing simple object pattern destructuring to variables
https://bugs.webkit.org/show_bug.cgi?id=220219
Summary [JSC] Remove unnecessary mov bytecodes when performing simple object pattern ...
Yusuke Suzuki
Reported 2021-01-01 04:08:03 PST
[JSC] Remove unnecessary mov bytecodes when performing simple object pattern destructuring to variables
Attachments
Patch (12.14 KB, patch)
2021-01-01 04:13 PST, Yusuke Suzuki
no flags
Patch (12.38 KB, patch)
2021-01-01 04:22 PST, Yusuke Suzuki
no flags
Patch (12.79 KB, patch)
2021-01-01 13:21 PST, Yusuke Suzuki
no flags
Patch (13.14 KB, patch)
2021-01-01 13:54 PST, Yusuke Suzuki
ashvayka: review+
Yusuke Suzuki
Comment 1 2021-01-01 04:13:27 PST
Yusuke Suzuki
Comment 2 2021-01-01 04:22:16 PST
Yusuke Suzuki
Comment 3 2021-01-01 13:21:04 PST
Yusuke Suzuki
Comment 4 2021-01-01 13:54:14 PST
Alexey Shvayka
Comment 5 2021-01-01 13:56:17 PST
Comment on attachment 416885 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=416885&action=review r=me, great change! > JSTests/stress/object-pattern-simple-fast-path.js:102 > +}()); Would it be reasonable to add more tests for guards in writableDirectBindingIfPossible()? Like `var`, global object property that is non-writable or accessor, WithStatement?
Yusuke Suzuki
Comment 6 2021-01-02 12:40:25 PST
Comment on attachment 416885 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=416885&action=review >> JSTests/stress/object-pattern-simple-fast-path.js:102 >> +}()); > > Would it be reasonable to add more tests for guards in writableDirectBindingIfPossible()? Like `var`, global object property that is non-writable or accessor, WithStatement? Nice! Added.
Yusuke Suzuki
Comment 7 2021-01-02 12:46:50 PST
Radar WebKit Bug Importer
Comment 8 2021-01-02 12:47:15 PST
Note You need to log in before you can comment on or make changes to this bug.