[Webkit-unassigned] [Bug 119504] New: DFG optimizes out strict mode arguments tear off

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 5 18:01:12 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=119504

           Summary: DFG optimizes out strict mode arguments tear off
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: oliver at apple.com
                CC: fpizlo at apple.com


If i have a strict mode function:

function f(a) {
    "use strict";
    a = 5;
    return arguments[0];
}

var x = 0;
for (var i = 0; i < N; i++)
     x = x + f(1);


The result should be N, but the DFG optimizes out the eager tear off of the Arguments object, leading to arguments[0] eventually being optimized to return 5, which is incorrect.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list