Bug 173884
| Summary: | Every function return should be an invalidation point for VMTraps | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Keith Miller <keith_miller> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | keith_miller, mark.lam |
| Priority: | P2 | ||
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Keith Miller
We want this as an optimization for VMTraps where we have the following problem:
DFG code, A, calls 1000 unique functions (also in DFG) in a loop that each take a long time to run. We insert traps in each of the unique calls but they never fire because we return to A, which calls the next function. i.e.
A() {
B();
C();
D();
E();
...
}
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |