9a91669f40
Ensure that the type is always stored correctly. R=titzer@chromium.org Bug: v8:6600, chromium:791810 Change-Id: Id3a3c20b14f8730b9550c548dec49ac47121e691 Reviewed-on: https://chromium-review.googlesource.com/811188 Reviewed-by: Ben Titzer <titzer@chromium.org> Commit-Queue: Clemens Hammacher <clemensh@chromium.org> Cr-Commit-Position: refs/heads/master@{#49924}
22 lines
736 B
JavaScript
22 lines
736 B
JavaScript
// Copyright 2017 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.
|
|
|
|
load('test/mjsunit/wasm/wasm-constants.js');
|
|
load('test/mjsunit/wasm/wasm-module-builder.js');
|
|
|
|
const builder = new WasmModuleBuilder();
|
|
builder.addFunction('test', kSig_i_i)
|
|
.addBody([
|
|
kExprGetLocal, 0x00, // get_local 0
|
|
kExprBlock, kWasmStmt, // block
|
|
kExprBr, 0x00, // br depth=0
|
|
kExprEnd, // end
|
|
kExprBlock, kWasmStmt, // block
|
|
kExprBr, 0x00, // br depth=0
|
|
kExprEnd, // end
|
|
kExprBr, 0x00, // br depth=0
|
|
])
|
|
.exportFunc();
|
|
builder.instantiate();
|