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: | JavaScriptCore | Assignee: | Keith Miller <keith_miller> |
| Status: | NEW | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Keith Miller
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |