Bug 130764

Summary: Arguments simplification phase should be fine with marking the arguments local itself as an arguments alias
Product: WebKit Reporter: Filip Pizlo <fpizlo>
Component: JavaScriptCoreAssignee: Filip Pizlo <fpizlo>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, ggaren, mark.lam, mhahnenberg, msaboff, nrotem, oliver, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
the patch sam: review+

Description Filip Pizlo 2014-03-25 19:52:53 PDT
Being an arguments alias just means that your OSR exit recovery should attempt arguments creation.  This is true of arguments locals.  We had special cases that tried to make it not true of arguments locals.  The only consequence of those special cases was to cause crashes in case of arguments that are also captured variables (i.e. we have SlowArguments).

<rdar://problem/16304788>
Comment 1 Filip Pizlo 2014-03-25 19:56:17 PDT
Created attachment 227824 [details]
the patch
Comment 2 Sam Weinig 2014-03-25 21:06:09 PDT
Comment on attachment 227824 [details]
the patch

View in context: https://bugs.webkit.org/attachment.cgi?id=227824&action=review

> Source/JavaScriptCore/ChangeLog:17
> +        arguments aliases, and non-captured variables get completely SSAified - i.e. no Setocals

Setocals -> SetLocals
Comment 3 Filip Pizlo 2014-03-25 21:09:35 PDT
Landed in http://trac.webkit.org/changeset/166281