Bug 88141

Summary: DFG constant folding search for the last local access skips the immediately previous local access
Product: WebKit Reporter: Filip Pizlo <fpizlo>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
the patch msaboff: review+

Filip Pizlo
Reported 2012-06-01 15:24:19 PDT
If you use a loop in the style of: for (i = start; i--;) then you need to remember that the first value of 'i' that the loop body will see is 'start - 1'. Hence the following is probably wrong: for (i = start - 1; i--;)
Attachments
the patch (4.49 KB, patch)
2012-06-01 15:26 PDT, Filip Pizlo
msaboff: review+
Filip Pizlo
Comment 1 2012-06-01 15:26:43 PDT
Created attachment 145390 [details] the patch
Filip Pizlo
Comment 2 2012-06-01 15:45:10 PDT
Note You need to log in before you can comment on or make changes to this bug.