2019-07-10 00:55:26 +00: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.
|
|
|
|
// Flags: --experimental-wasm-threads
|
|
|
|
|
2021-06-01 12:46:36 +00:00
|
|
|
d8.file.execute('test/mjsunit/wasm/wasm-module-builder.js');
|
2019-07-10 00:55:26 +00:00
|
|
|
|
|
|
|
var builder = new WasmModuleBuilder();
|
|
|
|
|
|
|
|
builder.addMemory(1, 1, /*exp*/ false, /*shared*/ true);
|
|
|
|
|
|
|
|
builder.addFunction('test', kSig_v_v).addBody([
|
|
|
|
kExprI32Const, 0, //
|
|
|
|
kExprI64Const, 0, //
|
|
|
|
kExprI64Const, 0, //
|
|
|
|
kAtomicPrefix, kExprI64AtomicWait, 3, 0, //
|
|
|
|
kExprDrop, //
|
|
|
|
]);
|
|
|
|
|
|
|
|
builder.instantiate();
|