Bug 120174

Summary: Don't leak registers for redeclared variables
Product: WebKit Reporter: Gavin Barraclough <barraclough>
Component: JavaScriptCoreAssignee: Gavin Barraclough <barraclough>
Status: RESOLVED FIXED    
Severity: Normal CC: ggaren
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Fix ggaren: review+

Description Gavin Barraclough 2013-08-22 15:00:31 PDT
We currently always allocate registers for new global variables, but these are wasted when the variable is being redeclared.
Only allocate new registers when necessary.
Comment 1 Gavin Barraclough 2013-08-22 15:02:25 PDT
Created attachment 209397 [details]
Fix
Comment 2 Gavin Barraclough 2013-08-22 15:40:57 PDT
Comment on attachment 209397 [details]
Fix

Ooops, self r+!
Comment 3 Geoffrey Garen 2013-08-22 16:02:12 PDT
Comment on attachment 209397 [details]
Fix

r=me
Comment 4 Gavin Barraclough 2013-08-23 10:50:14 PDT
Committed revision 154466.