2019-08-16 11:32:46 +02:00
|
|
|
// Copyright 2019 the V8 project authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2021-08-29 14:20:49 +02:00
|
|
|
d8.file.execute('test/mjsunit/wasm/wasm-module-builder.js');
|
2019-08-16 11:32:46 +02:00
|
|
|
|
|
|
|
var builder = new WasmModuleBuilder();
|
|
|
|
|
2023-10-05 08:46:07 +02:00
|
|
|
builder.addMemory(1, 1, /*shared*/ true);
|
2019-08-16 11:32:46 +02:00
|
|
|
|
|
|
|
builder.addFunction('test', kSig_v_v).addBody([
|
|
|
|
kExprI32Const, 0, //
|
|
|
|
kExprI64Const, 0, //
|
|
|
|
kExprI64Const, 0, //
|
|
|
|
kAtomicPrefix, kExprI64AtomicWait, 3, 0, //
|
|
|
|
kExprDrop, //
|
|
|
|
]);
|
|
|
|
|
|
|
|
builder.instantiate();
|