Bug 222526

Summary: [JSC] Default constructor definition is changing
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ashvayka, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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.