Bug 152700

Summary: We should be able to inline super calls to InternalFunctions if we have inlined to the construction site.
Product: WebKit Reporter: Keith Miller <keith_miller>
Component: JavaScriptCoreAssignee: Keith Miller <keith_miller>
Status: NEW ---    
Severity: Normal    
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

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.