Bug 127253

Summary: JSC Parser: Shrink BindingNode.
Product: WebKit Reporter: Andreas Kling <kling>
Component: JavaScriptCoreAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: ggaren, kling, oliver
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch ggaren: review+

Andreas Kling
Reported 2014-01-19 10:59:10 PST
JSC Parser: Shrink BindingNode.
Attachments
Patch (7.41 KB, patch)
2014-01-19 10:59 PST, Andreas Kling
ggaren: review+
Andreas Kling
Comment 1 2014-01-19 10:59:44 PST
Geoffrey Garen
Comment 2 2014-01-19 11:29:03 PST
Comment on attachment 221590 [details] Patch r=me
Geoffrey Garen
Comment 3 2014-01-19 11:29:24 PST
I'm surprised that this matters, since the parse tree is a temporary data structure.
Andreas Kling
Comment 4 2014-01-19 11:30:37 PST
(In reply to comment #3) > I'm surprised that this matters, since the parse tree is a temporary data structure. These hang off of the VM's CodeCache.
Geoffrey Garen
Comment 5 2014-01-19 11:31:51 PST
Are you sure? The code cache stores an UnlinkedCodeBlock, which contains bytecode, not AST.
Andreas Kling
Comment 6 2014-01-19 11:39:03 PST
Hurgh, right you are! Something is keeping these objects alive though. Maybe we have a bug. :O
Geoffrey Garen
Comment 7 2014-01-19 11:44:59 PST
Maybe a leak?
Andreas Kling
Comment 8 2014-01-19 12:05:05 PST
Looks like these hang off of UnlinkedCodeBlock. UnlinkedFunctionExecutable has a FunctionParameters which contains a bunch of DeconstructionPatternNodes originating in the parser.
Geoffrey Garen
Comment 9 2014-01-19 13:17:59 PST
I see. We should be able to refactor and remove those. Can you send a bug to Oliver?
Oliver Hunt
Comment 10 2014-01-19 21:09:02 PST
(In reply to comment #9) > I see. We should be able to refactor and remove those. Can you send a bug to Oliver? Hurk - yeah that's not ideal currently, it's deliberately held but i think reparsing of the arg list is probably the best approach.
Andreas Kling
Comment 11 2014-01-20 17:06:07 PST
Note You need to log in before you can comment on or make changes to this bug.