Bug 152700 - We should be able to inline super calls to InternalFunctions if we have inlined to the construction site.
Summary: We should be able to inline super calls to InternalFunctions if we have inlin...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Keith Miller
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-04 11:13 PST by Keith Miller
Modified: 2016-01-04 16:29 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Miller 2016-01-04 11:13:16 PST
In general, when subclassing there is no way to know what the prototype of the created object is statically, as the new.target may change on each call. It is possible, however, if we inline to the construction site (i.e. the "new <function name>(...)" in JS) because then we might know the new.target statically.