Bug 165862

Summary: WebAssembly: improve function parser control stack handling
Product: WebKit Reporter: JF Bastien <jfbastien>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: ASSIGNED ---    
Severity: Normal CC: jfbastien, keith_miller, saam
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 163919    
Bug Blocks: 159775, 165833    

Description JF Bastien 2016-12-14 12:55:35 PST
As a follow-up to bug #163919, add a macro WASM_TRY_APPEND_TO_CONTROL_STACK which handles growth cases for this type of code:
  m_controlStack.append({ WTFMove(m_expressionStack), control });

Note: as part of bug #165833 we may add a size limit for control stack depth.