Bug 166462

Summary: WebAssembly: link import calls directly, instead of delaying to Plan linking
Product: WebKit Reporter: JF Bastien <jfbastien>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: jfbastien, keith_miller, sbarati
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 165282    
Bug Blocks: 161709    

Description JF Bastien 2016-12-23 10:13:44 PST
The WasmB3IRGenerator's addCall doesn't need to generate a patchpoint for imports (toJS and toWasm) because they all get generated before the B3 compilation starts. Plan the goes through m_unlinkedWasmToWasmCalls and links them after all B3 compilation is done, which is extra work we didn't need to do.

This is a slight optimization and requires improving WasmB3IRGenerator, which I'll do later. I'm leaving two FIXMEs for now.