Bug 155686

Summary: ShadowChicken should integrate with DFG's existing debug data about inlined tail calls
Product: WebKit Reporter: Filip Pizlo <fpizlo>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 155684    

Description Filip Pizlo 2016-03-19 14:57:29 PDT
Currently ShadowChicken will give you confusing information when there was inlining.  That's easy to fix.  ShadowChicken doesn't need to log anything about tail calls.  We can just use the DFG's existing InlineCallFrame meta-data to fill in the missing frames.

To do this well, we need to refactor StackVisitor.  There shouldn't be a thing called StackVisitor.  There should be a functor on CallFrame, and a full-fledged object like AbstractFrame.  AbstractFrame contains all of the data about a logical stack frame, i.e. either an inline frame or machine frame.  Then, ShadowChicken::Frame can just be replaced with AbstractFrame, and the CallFrame iteration functor would use it, too.