Summary: | ToThis should be able to be eliminated in Constant Folding | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Keith Miller <keith_miller> | ||||||
Component: | New Bugs | Assignee: | Keith Miller <keith_miller> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, mark.lam, msaboff, saam | ||||||
Priority: | P2 | ||||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Keith Miller
2016-04-29 16:16:37 PDT
Created attachment 277790 [details]
Patch
Comment on attachment 277790 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=277790&action=review r=me > Source/JavaScriptCore/dfg/DFGAbstractInterpreterInlines.h:146 > + ASSERT(!isStrictMode ? (type.type() != StringType && type.type() != SymbolType) : true); I think this is easier to read as: if (!strictMode) ASSERT(type.type() != StringType && type.type() != SymbolType) Created attachment 277910 [details]
Patch for landing
Comment on attachment 277790 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=277790&action=review >> Source/JavaScriptCore/dfg/DFGAbstractInterpreterInlines.h:146 >> + ASSERT(!isStrictMode ? (type.type() != StringType && type.type() != SymbolType) : true); > > I think this is easier to read as: > if (!strictMode) > ASSERT(type.type() != StringType && type.type() != SymbolType) I agree, although I actually changed it to: if (!isStrictMode) ASSERT(type.isObjet()); Comment on attachment 277910 [details] Patch for landing Clearing flags on attachment: 277910 Committed r200325: <http://trac.webkit.org/changeset/200325> All reviewed patches have been landed. Closing bug. Comment on attachment 277910 [details]
Patch for landing
Seems like we want a performance regression test for this improvement too.
|