5df2f65de7
Added --trace-wasm flag which prints function entry in wasm. R=clemensb@chromium.org Bug: v8:10559 Change-Id: I049efeadb0149f4f58ce34a29fd53fbf5688bd4b Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2215052 Commit-Queue: Arnaud Robin <arobin@google.com> Reviewed-by: Clemens Backes <clemensb@chromium.org> Reviewed-by: Thibaud Michaud <thibaudm@chromium.org> Cr-Commit-Position: refs/heads/master@{#67998}
20 lines
697 B
JavaScript
20 lines
697 B
JavaScript
// Copyright 2020 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: --trace-wasm --no-wasm-tier-up --liftoff --no-stress-opt
|
|
|
|
load('test/mjsunit/wasm/wasm-module-builder.js');
|
|
|
|
let builder = new WasmModuleBuilder();
|
|
let kRet23Function = builder.addFunction('ret_23', kSig_i_v)
|
|
.addBody([kExprI32Const, 23])
|
|
.exportFunc()
|
|
.index;
|
|
builder.addFunction('main', kSig_v_v)
|
|
.addBody([kExprCallFunction, kRet23Function, kExprDrop])
|
|
.exportAs('main');
|
|
|
|
let instance = builder.instantiate();
|
|
instance.exports.main();
|