Bug 146967 - jsc-tailcall: Only non-constructors functions are candidate for tail calls
Summary: jsc-tailcall: Only non-constructors functions are candidate for tail calls
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Enhancement
Assignee: Basile Clement
URL:
Keywords:
Depends on:
Blocks: 146484
  Show dependency treegraph
 
Reported: 2015-07-15 10:18 PDT by Basile Clement
Modified: 2015-09-14 10:57 PDT (History)
2 users (show)

See Also:


Attachments
Patch (3.26 KB, patch)
2015-07-15 10:29 PDT, Basile Clement
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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).