| Summary: | DirectArguments::create needs to initialize to undefined instead of the empty value | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Saam Barati <saam> | ||||
| Component: | JavaScriptCore | Assignee: | Saam Barati <saam> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | benjamin, commit-queue, fpizlo, ggaren, gskachkov, jfbastien, keith_miller, mark.lam, msaboff, rmorisset, ticaiolima, webkit-bug-importer, ysuzuki | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Saam Barati
2018-06-19 13:59:52 PDT
The test case
```
function foo(a, b) {
let x = arguments;
OSRExit();
return a + b; // Will load JSValue() instead of jsUndefined() since we'll materialize a DirectArguments in OSRExit that only has slots filled with JSValue()
}
function bar() {
foo();
}
noInline(bar);
for (let i = 0; i < 1000; ++i) {
bar();
}
```
Created attachment 343118 [details]
patch
Comment on attachment 343118 [details] patch Clearing flags on attachment: 343118 Committed r233000: <https://trac.webkit.org/changeset/233000> All reviewed patches have been landed. Closing bug. |