[JSC] Use "destroy" function directly for JSWebAssemblyCodeBlock and WebAssemblyFunction
authorysuzuki@apple.com <ysuzuki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Aug 2019 19:46:45 +0000 (19:46 +0000)
committerysuzuki@apple.com <ysuzuki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Aug 2019 19:46:45 +0000 (19:46 +0000)
commit3dc4b153ba606dbd0e758592c3859daa98b7ff8e
treec4f748858573acc1f0f859d9df011e2dae62775b
parent172f85b26ff647af848f97222083290fb2b9b45e
[JSC] Use "destroy" function directly for JSWebAssemblyCodeBlock and WebAssemblyFunction
https://bugs.webkit.org/show_bug.cgi?id=200385

Reviewed by Mark Lam.

These CellTypes are not using classInfo stored in the cells, so we can just call JSWebAssemblyCodeBlock::destroy
and WebAssemblyFunction::destroy directly.

* wasm/js/JSWebAssemblyCodeBlockHeapCellType.cpp:
(JSC::JSWebAssemblyCodeBlockDestroyFunc::operator() const):
* wasm/js/WebAssemblyFunctionHeapCellType.cpp:
(JSC::WebAssemblyFunctionDestroyFunc::operator() const):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248171 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/wasm/js/JSWebAssemblyCodeBlockHeapCellType.cpp
Source/JavaScriptCore/wasm/js/WebAssemblyFunctionHeapCellType.cpp