59a8eba8d7
With just five cache registers, Liftoff can run out of memory on a 64bit shift. This CL solves this by using a parallel register move and pinning less registers. R=ahaas@chromium.org Bug: chromium:894307 Change-Id: I91ed0fee00ceb452841e5d1bb10905be6702dcce Reviewed-on: https://chromium-review.googlesource.com/c/1337580 Commit-Queue: Clemens Hammacher <clemensh@chromium.org> Reviewed-by: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#57552}
17 lines
507 B
JavaScript
17 lines
507 B
JavaScript
// Copyright 2018 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();
|
|
const sig = makeSig([kWasmI32, kWasmI64, kWasmI64], [kWasmI64]);
|
|
builder.addFunction(undefined, sig)
|
|
.addBody([
|
|
kExprGetLocal, 2,
|
|
kExprGetLocal, 1,
|
|
kExprI64Shl,
|
|
]);
|
|
builder.instantiate();
|