NEW 222526
[JSC] Default constructor definition is changing
https://bugs.webkit.org/show_bug.cgi?id=222526
Summary [JSC] Default constructor definition is changing
Yusuke Suzuki
Reported 2021-02-28 00:55:50 PST
Attachments
Yusuke Suzuki
Comment 1 2021-02-28 00:57:50 PST
Yusuke Suzuki
Comment 2 2021-02-28 01:32:30 PST
We should introduce @tailConstructForwardArguments. function() { return @tailConstructForwardArguments(@getPrototypeOf(@callee)), this); } Why can it happen? We do not need to check |this| when finishing this constructor since 1. we can ensure that we are always calling the super 2. we can ensure that we call super only once
Yusuke Suzuki
Comment 3 2021-02-28 01:59:12 PST
In this way, we can completely eliminate allocation for this default constructor, which is good ;)
Radar WebKit Bug Importer
Comment 4 2021-03-07 00:56:13 PST
Note You need to log in before you can comment on or make changes to this bug.