cc71e231f7
The alignment should be 3 (i.e. 8 bytes), but was specified as 2 (i.e. 4 bytes). Bug: v8:9425 Change-Id: I0beb09df25fe0281ed604909e894afd804f5411e Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1693836 Reviewed-by: Andreas Haas <ahaas@chromium.org> Commit-Queue: Ben Smith <binji@chromium.org> Cr-Commit-Position: refs/heads/master@{#62657}
21 lines
666 B
JavaScript
21 lines
666 B
JavaScript
// 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
|
|
|
|
load('test/mjsunit/wasm/wasm-module-builder.js');
|
|
|
|
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();
|