Bug 146967

Summary: jsc-tailcall: Only non-constructors functions are candidate for tail calls
Product: WebKit Reporter: Basile Clement <basile_clement>
Component: JavaScriptCoreAssignee: Basile Clement <basile_clement>
Status: RESOLVED FIXED    
Severity: Enhancement CC: msaboff, saam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 146484    
Attachments:
Description Flags
Patch none

Description Basile Clement 2015-07-15 10:18:29 PDT
We were emitting tail calls at the Program / Script level (which is weird but probably inconsequential) and in ES6 constructors (which is completely wrong and semantics-breaking). Patch forthcoming.
Comment 1 Basile Clement 2015-07-15 10:29:51 PDT
Created attachment 256845 [details]
Patch
Comment 2 Saam Barati 2015-07-15 10:37:18 PDT
Comment on attachment 256845 [details]
Patch

Looks good to me.
Comment 3 Basile Clement 2015-07-15 10:43:41 PDT
Committed r186848 <http://trac.webkit.org/changeset/186848> on branch jsc-tailcall.
Comment 4 Csaba Osztrogonác 2015-09-14 10:57:04 PDT
Comment on attachment 256845 [details]
Patch

Cleared review? from attachment 256845 [details] so that this bug does not appear in http://webkit.org/pending-review.  If you would like this patch reviewed, please attach it to a new bug (or re-open this bug before marking it for review again).