Bug 122363

Summary: FTL: Optimize IsString(@2<String>) -> JSConst(true) + Phantom()
Product: WebKit Reporter: Nadav Rotem <nrotem>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, fpizlo, ggaren
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Nadav Rotem
Reported 2013-10-04 17:19:17 PDT
FTL: Optimize IsString(@2<String) -> JSConst(true) + Phantom()
Attachments
Patch (1.86 KB, patch)
2013-10-04 17:19 PDT, Nadav Rotem
no flags
Patch (1.80 KB, patch)
2013-10-04 17:35 PDT, Nadav Rotem
no flags
Patch (1.93 KB, patch)
2013-10-07 14:34 PDT, Nadav Rotem
no flags
Nadav Rotem
Comment 1 2013-10-04 17:19:52 PDT
Darin Adler
Comment 2 2013-10-04 17:28:44 PDT
Comment on attachment 213424 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=213424&action=review > Source/JavaScriptCore/dfg/DFGFixupPhase.cpp:894 > + case IsString: { > + if (node->child1().useKind() == StringUse) { > + m_insertionSet.insertNode(m_indexInBlock, SpecNone, Phantom, node->codeOrigin, > + Edge(node->child1().node(), StringUse)); > + node->convertToConstant(1); > + break; > + } > + } While I am not qualified to review this, I do have two small style comments: We should break rather than falling through at the end of this case. Also, there is no need for the outer braces around the if statement, so please remove them.
Nadav Rotem
Comment 3 2013-10-04 17:35:34 PDT
Nadav Rotem
Comment 4 2013-10-07 14:34:47 PDT
WebKit Commit Bot
Comment 5 2013-10-07 15:07:26 PDT
Comment on attachment 213617 [details] Patch Clearing flags on attachment: 213617 Committed r157059: <http://trac.webkit.org/changeset/157059>
WebKit Commit Bot
Comment 6 2013-10-07 15:07:29 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.