| Summary: | Need a regression test for bug 139533 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Saboff <msaboff> | ||||
| Component: | JavaScriptCore | Assignee: | Michael Saboff <msaboff> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | fpizlo, ggaren, mark.lam, oliver | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Attachments: |
|
||||||
|
Description
Michael Saboff
2014-12-11 17:46:36 PST
Created attachment 243168 [details]
New Test
Comment on attachment 243168 [details] New Test View in context: https://bugs.webkit.org/attachment.cgi?id=243168&action=review r=me with fixes. > LayoutTests/js/script-tests/regress-139533.js:9 > + return arg + obj.addend; Bad indentation here. > LayoutTests/js/script-tests/regress-139533.js:32 > + // After tiering up into the DFG, change the "addend" of obj. This will do two things: > + // 1) We should OSR exit with a BadType (addend is no longer an integer) > + // 2) In the next call to inner, we will call jsAddSlowCase which will make a > + // native call to get the default value of obj.addend. > + // The OSR exit handler will not restore the ScopeChain slot in the header and the inlining > + // should have overwritten inner's ScopeChain slot with something else. Down the road, this could be misread as how things work then. I think you should add a comment here indicating how the fix for 139533 makes this not crash anymore. (In reply to comment #2) > Comment on attachment 243168 [details] > New Test > > View in context: > https://bugs.webkit.org/attachment.cgi?id=243168&action=review > > r=me with fixes. > > > LayoutTests/js/script-tests/regress-139533.js:9 > > + return arg + obj.addend; > > Bad indentation here. Changed the tab to spaces. > > LayoutTests/js/script-tests/regress-139533.js:32 > > + // After tiering up into the DFG, change the "addend" of obj. This will do two things: > > + // 1) We should OSR exit with a BadType (addend is no longer an integer) > > + // 2) In the next call to inner, we will call jsAddSlowCase which will make a > > + // native call to get the default value of obj.addend. > > + // The OSR exit handler will not restore the ScopeChain slot in the header and the inlining > > + // should have overwritten inner's ScopeChain slot with something else. > > Down the road, this could be misread as how things work then. I think you > should add a comment here indicating how the fix for 139533 makes this not > crash anymore. I added a little more details. Committed r177203: <http://trac.webkit.org/changeset/177203> |