<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[210422] branches/safari-603-branch</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/210422">210422</a></dd>
<dt>Author</dt> <dd>matthew_hanson@apple.com</dd>
<dt>Date</dt> <dd>2017-01-05 17:49:39 -0800 (Thu, 05 Jan 2017)</dd>
</dl>
<h3>Log Message</h3>
<pre>Merge <a href="http://trac.webkit.org/projects/webkit/changeset/210282">r210282</a>. rdar://problem/29760326</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#branchessafari603branchJSTestsChangeLog">branches/safari-603-branch/JSTests/ChangeLog</a></li>
<li><a href="#branchessafari603branchJSTestswasmBuilderjs">branches/safari-603-branch/JSTests/wasm/Builder.js</a></li>
<li><a href="#branchessafari603branchSourceJavaScriptCoreChangeLog">branches/safari-603-branch/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#branchessafari603branchSourceJavaScriptCorewasmWasmFormath">branches/safari-603-branch/Source/JavaScriptCore/wasm/WasmFormat.h</a></li>
<li><a href="#branchessafari603branchSourceJavaScriptCorewasmWasmModuleParsercpp">branches/safari-603-branch/Source/JavaScriptCore/wasm/WasmModuleParser.cpp</a></li>
<li><a href="#branchessafari603branchSourceJavaScriptCorewasmWasmModuleParserh">branches/safari-603-branch/Source/JavaScriptCore/wasm/WasmModuleParser.h</a></li>
<li><a href="#branchessafari603branchSourceJavaScriptCorewasmjsWebAssemblyModulePrototypecpp">branches/safari-603-branch/Source/JavaScriptCore/wasm/js/WebAssemblyModulePrototype.cpp</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#branchessafari603branchJSTestswasmjsapiModulecustomSectionjs">branches/safari-603-branch/JSTests/wasm/js-api/Module.customSection.js</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="branchessafari603branchJSTestsChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-603-branch/JSTests/ChangeLog (210421 => 210422)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-603-branch/JSTests/ChangeLog        2017-01-06 01:49:36 UTC (rev 210421)
+++ branches/safari-603-branch/JSTests/ChangeLog        2017-01-06 01:49:39 UTC (rev 210422)
</span><span class="lines">@@ -1,5 +1,24 @@
</span><span class="cx"> 2017-01-05 Matthew Hanson <matthew_hanson@apple.com>
</span><span class="cx">
</span><ins>+ Merge r210282. rdar://problem/29760326
+
+ 2017-01-04 JF Bastien <jfbastien@apple.com>
+
+ WebAssembly JS API: add Module.sections
+ https://bugs.webkit.org/show_bug.cgi?id=165159
+ <rdar://problem/29760326>
+
+ Reviewed by Mark Lam.
+
+ As described here: https://github.com/WebAssembly/design/blob/master/JS.md#webassemblymodulecustomsections
+
+ * wasm/Builder.js: allow custom sections to be duplicated
+ * wasm/js-api/Module.customSection.js: Added.
+ (assert.throws.WebAssembly.Module.prototype.customSections):
+ (assert.eq):
+
+2017-01-05 Matthew Hanson <matthew_hanson@apple.com>
+
</ins><span class="cx"> Merge r210229. rdar://problem/29760322
</span><span class="cx">
</span><span class="cx"> 2017-01-02 JF Bastien <jfbastien@apple.com>
</span></span></pre></div>
<a id="branchessafari603branchJSTestswasmBuilderjs"></a>
<div class="modfile"><h4>Modified: branches/safari-603-branch/JSTests/wasm/Builder.js (210421 => 210422)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-603-branch/JSTests/wasm/Builder.js        2017-01-06 01:49:36 UTC (rev 210421)
+++ branches/safari-603-branch/JSTests/wasm/Builder.js        2017-01-06 01:49:39 UTC (rev 210422)
</span><span class="lines">@@ -713,7 +713,8 @@
</span><span class="cx"> if (this._checked) {
</span><span class="cx"> // Check uniqueness.
</span><span class="cx"> for (const s of this._sections)
</span><del>- assert.falsy(s.name === name && s.id === number, `Cannot have two sections with the same name "${name}" and ID ${number}`);
</del><ins>+ if (number !== _unknownSectionId)
+ assert.falsy(s.name === name && s.id === number, `Cannot have two sections with the same name "${name}" and ID ${number}`);
</ins><span class="cx"> // Check ordering.
</span><span class="cx"> if ((number !== _unknownSectionId) && (this._sections.length !== 0)) {
</span><span class="cx"> for (let i = this._sections.length - 1; i >= 0; --i) {
</span></span></pre></div>
<a id="branchessafari603branchJSTestswasmjsapiModulecustomSectionjs"></a>
<div class="addfile"><h4>Added: branches/safari-603-branch/JSTests/wasm/js-api/Module.customSection.js (0 => 210422)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-603-branch/JSTests/wasm/js-api/Module.customSection.js         (rev 0)
+++ branches/safari-603-branch/JSTests/wasm/js-api/Module.customSection.js        2017-01-06 01:49:39 UTC (rev 210422)
</span><span class="lines">@@ -0,0 +1,76 @@
</span><ins>+import Builder from '../Builder.js';
+import * as assert from '../assert.js';
+
+assert.throws(() => WebAssembly.Module.prototype.customSections(undefined, ""), TypeError, `WebAssembly.Module.prototype.customSections called with non WebAssembly.Module |this| value`);
+
+{
+ const empty = new WebAssembly.Module((new Builder()).WebAssembly().get());
+ assert.isArray(empty.customSections(""));
+ assert.eq(empty.customSections("").length, 0);
+}
+
+{
+ const single = new WebAssembly.Module((new Builder())
+ .Unknown("hello").Byte(0x00).Byte(0x42).Byte(0xFF).End()
+ .WebAssembly().get());
+ assert.eq(single.customSections("").length, 0);
+ const hello = single.customSections("hello");
+ assert.eq(hello.length, 1);
+ assert.eq(hello[0].byteLength, 3);
+ const helloI8 = new Int8Array(hello[0]);
+ assert.eq(helloI8[0], 0x00);
+ assert.eq(helloI8[1], 0x42);
+ assert.eq(helloI8[2], -1);
+}
+
+{
+ const unicode = new WebAssembly.Module((new Builder())
+ .Unknown("👨❤️💋👨").Byte(42).End()
+ .WebAssembly().get());
+ const family = unicode.customSections("👨❤️💋👨");
+ assert.eq(family.length, 1);
+ assert.eq(family[0].byteLength, 1);
+ const familyI8 = new Int8Array(family[0]);
+ assert.eq(familyI8[0], 42);
+}
+
+{
+ const many = new WebAssembly.Module((new Builder())
+ .Unknown("zero").Byte(0).End()
+ .Unknown("one").Byte(1).Byte(1).End()
+ .Unknown("one").Byte(2).Byte(2).Byte(2).End()
+ .Unknown("two").Byte(3).Byte(3).Byte(3).Byte(3).End()
+ .Unknown("one").Byte(4).Byte(4).Byte(4).Byte(4).Byte(4).End()
+ .WebAssembly().get());
+
+ const zero = many.customSections("zero");
+ assert.eq(zero.length, 1);
+ assert.eq(zero[0].byteLength, 1);
+ const zeroI8 = new Int8Array(zero[0]);
+ assert.eq(zeroI8[0], 0);
+
+ const two = many.customSections("two");
+ assert.eq(two.length, 1);
+ assert.eq(two[0].byteLength, 4);
+ const twoI8 = new Int8Array(two[0]);
+ assert.eq(twoI8[0], 3);
+ assert.eq(twoI8[1], 3);
+ assert.eq(twoI8[2], 3);
+ assert.eq(twoI8[3], 3);
+
+ const one = many.customSections("one");
+ assert.eq(one.length, 3);
+ let seen = 0;
+ const expect = [
+ [1, 1],
+ [2, 2, 2],
+ [4, 4, 4, 4, 4],
+ ];
+ for (const section of one) {
+ assert.eq(section.byteLength, expect[seen].length);
+ const I8 = new Int8Array(section);
+ for (let i = 0; i < expect[seen].length; ++i)
+ assert.eq(I8[i], expect[seen][i]);
+ ++seen;
+ }
+}
</ins></span></pre></div>
<a id="branchessafari603branchSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-603-branch/Source/JavaScriptCore/ChangeLog (210421 => 210422)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-603-branch/Source/JavaScriptCore/ChangeLog        2017-01-06 01:49:36 UTC (rev 210421)
+++ branches/safari-603-branch/Source/JavaScriptCore/ChangeLog        2017-01-06 01:49:39 UTC (rev 210422)
</span><span class="lines">@@ -1,5 +1,28 @@
</span><span class="cx"> 2017-01-05 Matthew Hanson <matthew_hanson@apple.com>
</span><span class="cx">
</span><ins>+ Merge r210282. rdar://problem/29760326
+
+ 2017-01-04 JF Bastien <jfbastien@apple.com>
+
+ WebAssembly JS API: add Module.sections
+ https://bugs.webkit.org/show_bug.cgi?id=165159
+ <rdar://problem/29760326>
+
+ Reviewed by Mark Lam.
+
+ As described in: https://github.com/WebAssembly/design/blob/master/JS.md#webassemblymodulecustomsections
+
+ This was added for Emscripten, and is likely to be used soon.
+
+ * wasm/WasmFormat.h: custom sections are just name + bytes
+ * wasm/WasmModuleParser.cpp: parse them, instead of skipping over
+ * wasm/WasmModuleParser.h:
+ * wasm/js/WebAssemblyModulePrototype.cpp: construct the Array of
+ ArrayBuffer as described in the spec
+ (JSC::webAssemblyModuleProtoCustomSections):
+
+2017-01-05 Matthew Hanson <matthew_hanson@apple.com>
+
</ins><span class="cx"> Merge r210229. rdar://problem/29760322
</span><span class="cx">
</span><span class="cx"> 2017-01-02 JF Bastien <jfbastien@apple.com>
</span></span></pre></div>
<a id="branchessafari603branchSourceJavaScriptCorewasmWasmFormath"></a>
<div class="modfile"><h4>Modified: branches/safari-603-branch/Source/JavaScriptCore/wasm/WasmFormat.h (210421 => 210422)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-603-branch/Source/JavaScriptCore/wasm/WasmFormat.h        2017-01-06 01:49:36 UTC (rev 210421)
+++ branches/safari-603-branch/Source/JavaScriptCore/wasm/WasmFormat.h        2017-01-06 01:49:39 UTC (rev 210422)
</span><span class="lines">@@ -220,6 +220,11 @@
</span><span class="cx"> bool m_isImport { false };
</span><span class="cx"> bool m_isValid { false };
</span><span class="cx"> };
</span><ins>+
+struct CustomSection {
+ String name;
+ Vector<uint8_t> payload;
+};
</ins><span class="cx">
</span><span class="cx"> struct ModuleInformation {
</span><span class="cx"> Vector<Import> imports;
</span><span class="lines">@@ -235,6 +240,8 @@
</span><span class="cx"> TableInformation tableInformation;
</span><span class="cx"> Vector<Global> globals;
</span><span class="cx"> unsigned firstInternalGlobal { 0 };
</span><ins>+ Vector<CustomSection> customSections;
+
</ins><span class="cx"> size_t functionIndexSpaceSize() const { return importFunctionSignatureIndices.size() + internalFunctionSignatureIndices.size(); }
</span><span class="cx"> bool isImportedFunctionFromFunctionIndexSpace(size_t functionIndex) const
</span><span class="cx"> {
</span></span></pre></div>
<a id="branchessafari603branchSourceJavaScriptCorewasmWasmModuleParsercpp"></a>
<div class="modfile"><h4>Modified: branches/safari-603-branch/Source/JavaScriptCore/wasm/WasmModuleParser.cpp (210421 => 210422)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-603-branch/Source/JavaScriptCore/wasm/WasmModuleParser.cpp        2017-01-06 01:49:36 UTC (rev 210421)
+++ branches/safari-603-branch/Source/JavaScriptCore/wasm/WasmModuleParser.cpp        2017-01-06 01:49:39 UTC (rev 210422)
</span><span class="lines">@@ -87,8 +87,7 @@
</span><span class="cx"> #undef WASM_SECTION_PARSE
</span><span class="cx">
</span><span class="cx"> case Section::Unknown: {
</span><del>- // Ignore section's name LEB and bytes: they're already included in sectionLength.
- m_offset += sectionLength;
</del><ins>+ WASM_FAIL_IF_HELPER_FAILS(parseCustom(sectionLength));
</ins><span class="cx"> break;
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="lines">@@ -600,7 +599,31 @@
</span><span class="cx"> }
</span><span class="cx"> return { };
</span><span class="cx"> }
</span><ins>+
+auto ModuleParser::parseCustom(uint32_t sectionLength) -> PartialResult
+{
+ const uint32_t customSectionStartOffset = m_offset;
</ins><span class="cx">
</span><ins>+ CustomSection section;
+ uint32_t customSectionNumber = m_result.module->customSections.size() + 1;
+ uint32_t nameLen;
+ WASM_PARSER_FAIL_IF(!m_result.module->customSections.tryReserveCapacity(customSectionNumber), "can't allocate enough memory for ", customSectionNumber, "th custom section");
+ WASM_PARSER_FAIL_IF(!parseVarUInt32(nameLen), "can't get ", customSectionNumber, "th custom section's name length");
+ WASM_PARSER_FAIL_IF(!consumeUTF8String(section.name, nameLen), "nameLen get ", customSectionNumber, "th custom section's name of length ", nameLen);
+
+ uint32_t payloadBytes = sectionLength - (m_offset - customSectionStartOffset);
+ WASM_PARSER_FAIL_IF(!section.payload.tryReserveCapacity(payloadBytes), "can't allocate enough memory for ", customSectionNumber, "th custom section's ", payloadBytes, " bytes");
+ for (uint32_t byteNumber = 0; byteNumber < payloadBytes; ++byteNumber) {
+ uint8_t byte;
+ WASM_PARSER_FAIL_IF(!parseUInt8(byte), "can't get ", byteNumber, "th data byte from ", customSectionNumber, "th custom section");
+ section.payload.uncheckedAppend(byte);
+ }
+
+ m_result.module->customSections.uncheckedAppend(WTFMove(section));
+
+ return { };
+}
+
</ins><span class="cx"> } } // namespace JSC::Wasm
</span><span class="cx">
</span><span class="cx"> #endif // ENABLE(WEBASSEMBLY)
</span></span></pre></div>
<a id="branchessafari603branchSourceJavaScriptCorewasmWasmModuleParserh"></a>
<div class="modfile"><h4>Modified: branches/safari-603-branch/Source/JavaScriptCore/wasm/WasmModuleParser.h (210421 => 210422)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-603-branch/Source/JavaScriptCore/wasm/WasmModuleParser.h        2017-01-06 01:49:36 UTC (rev 210421)
+++ branches/safari-603-branch/Source/JavaScriptCore/wasm/WasmModuleParser.h        2017-01-06 01:49:39 UTC (rev 210422)
</span><span class="lines">@@ -60,6 +60,7 @@
</span><span class="cx"> FOR_EACH_WASM_SECTION(WASM_SECTION_DECLARE_PARSER)
</span><span class="cx"> #undef WASM_SECTION_DECLARE_PARSER
</span><span class="cx">
</span><ins>+ PartialResult WARN_UNUSED_RETURN parseCustom(uint32_t);
</ins><span class="cx"> PartialResult WARN_UNUSED_RETURN parseGlobalType(Global&);
</span><span class="cx"> PartialResult WARN_UNUSED_RETURN parseMemoryHelper(bool isImport);
</span><span class="cx"> PartialResult WARN_UNUSED_RETURN parseTableHelper(bool isImport);
</span></span></pre></div>
<a id="branchessafari603branchSourceJavaScriptCorewasmjsWebAssemblyModulePrototypecpp"></a>
<div class="modfile"><h4>Modified: branches/safari-603-branch/Source/JavaScriptCore/wasm/js/WebAssemblyModulePrototype.cpp (210421 => 210422)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-603-branch/Source/JavaScriptCore/wasm/js/WebAssemblyModulePrototype.cpp        2017-01-06 01:49:36 UTC (rev 210421)
+++ branches/safari-603-branch/Source/JavaScriptCore/wasm/js/WebAssemblyModulePrototype.cpp        2017-01-06 01:49:39 UTC (rev 210422)
</span><span class="lines">@@ -28,9 +28,16 @@
</span><span class="cx">
</span><span class="cx"> #if ENABLE(WEBASSEMBLY)
</span><span class="cx">
</span><ins>+#include "ArrayBuffer.h"
</ins><span class="cx"> #include "FunctionPrototype.h"
</span><ins>+#include "JSArrayBuffer.h"
</ins><span class="cx"> #include "JSCInlines.h"
</span><ins>+#include "JSWebAssemblyModule.h"
</ins><span class="cx">
</span><ins>+namespace JSC {
+static EncodedJSValue JSC_HOST_CALL webAssemblyModuleProtoCustomSections(ExecState*);
+}
+
</ins><span class="cx"> #include "WebAssemblyModulePrototype.lut.h"
</span><span class="cx">
</span><span class="cx"> namespace JSC {
</span><span class="lines">@@ -39,9 +46,45 @@
</span><span class="cx">
</span><span class="cx"> /* Source for WebAssemblyModulePrototype.lut.h
</span><span class="cx"> @begin prototypeTableWebAssemblyModule
</span><ins>+ customSections webAssemblyModuleProtoCustomSections DontEnum|Function 1
</ins><span class="cx"> @end
</span><span class="cx"> */
</span><span class="cx">
</span><ins>+EncodedJSValue JSC_HOST_CALL webAssemblyModuleProtoCustomSections(ExecState* exec)
+{
+ VM& vm = exec->vm();
+ auto* globalObject = exec->lexicalGlobalObject();
+ auto throwScope = DECLARE_THROW_SCOPE(vm);
+
+ JSWebAssemblyModule* module = jsDynamicCast<JSWebAssemblyModule*>(exec->thisValue());
+ if (!module)
+ throwException(exec, throwScope, createTypeError(exec, ASCIILiteral("WebAssembly.Module.prototype.customSections called with non WebAssembly.Module |this| value")));
+ RETURN_IF_EXCEPTION(throwScope, { });
+
+ const String sectionNameString = exec->argument(0).getString(exec);
+ RETURN_IF_EXCEPTION(throwScope, { });
+
+ JSArray* result = constructEmptyArray(exec, nullptr, globalObject);
+ RETURN_IF_EXCEPTION(throwScope, { });
+
+ const auto& customSections = module->moduleInformation().customSections;
+ for (const Wasm::CustomSection& section : customSections) {
+ if (section.name == sectionNameString) {
+ auto buffer = ArrayBuffer::tryCreate(section.payload.data(), section.payload.size());
+ if (!buffer)
+ throwException(exec, throwScope, createOutOfMemoryError(exec));
+
+ Structure* arrayBufferStructure = InternalFunction::createSubclassStructure(exec, JSValue(), globalObject->arrayBufferStructure(ArrayBufferSharingMode::Default));
+ RETURN_IF_EXCEPTION(throwScope, { });
+
+ result->push(exec, JSArrayBuffer::create(vm, arrayBufferStructure, WTFMove(buffer)));
+ RETURN_IF_EXCEPTION(throwScope, { });
+ }
+ }
+
+ return JSValue::encode(result);
+}
+
</ins><span class="cx"> WebAssemblyModulePrototype* WebAssemblyModulePrototype::create(VM& vm, JSGlobalObject*, Structure* structure)
</span><span class="cx"> {
</span><span class="cx"> auto* object = new (NotNull, allocateCell<WebAssemblyModulePrototype>(vm.heap)) WebAssemblyModulePrototype(vm, structure);
</span></span></pre>
</div>
</div>
</body>
</html>