Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 272448.653@safari-7618-branch (f6e2c3b). https://bugs.web…
…kit.org/show_bug.cgi?id=270259 GetWebAssemblyInstanceExports nodes should not be blindly hoisted https://bugs.webkit.org/show_bug.cgi?id=270259 rdar://123617167 Reviewed by Alexey Shvayka. GetWebAssemblyInstanceExports nodes should not be blindly hoisted above their structure check. ``` case WebAssemblyInstanceExportsIntrinsic: ... addToGraph(CheckStructure, OpInfo(m_graph.addStructureSet(variant.structureSet())), thisNode); set(result, addToGraph(GetWebAssemblyInstanceExports, Edge(thisNode, KnownCellUse))); ``` Similar to GetByOffset, we should only hoist this node if we have proven that the child has the structure of a WebAssembly Instance. * JSTests/stress/hoist-get-wasm-exports.js: Added. (opt): (main): * Source/JavaScriptCore/dfg/DFGSafeToExecute.h: (JSC::DFG::safeToExecute): Canonical link: https://commits.webkit.org/272448.653@safari-7618-branch Canonical link: https://commits.webkit.org/274313.223@webkitglib/2.44
- Loading branch information