-
Notifications
You must be signed in to change notification settings - Fork 29.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs: v8/v8@7.8.279.15...7.8.279.17 PR-URL: #29928 Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
- Loading branch information
Showing
5 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
deps/v8/test/mjsunit/regress/wasm/regress-crbug-1007608.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// 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. | ||
|
||
// Bug is in the C-to-Wasm entry, used e.g. by the Wasm interpreter. | ||
// Flags: --wasm-interpret-all | ||
|
||
load("test/mjsunit/wasm/wasm-module-builder.js"); | ||
|
||
let argc = 7; | ||
let builder = new WasmModuleBuilder(); | ||
let types = new Array(argc).fill(kWasmI32); | ||
let sig = makeSig(types, []); | ||
let body = []; | ||
for (let i = 0; i < argc; ++i) { | ||
body.push(kExprGetLocal, i); | ||
} | ||
body.push(kExprCallFunction, 0); | ||
builder.addImport('', 'f', sig); | ||
builder.addFunction("main", sig).addBody(body).exportAs('main'); | ||
let instance = builder.instantiate({ | ||
'': { | ||
'f': function() { throw "don't crash"; } | ||
} | ||
}); | ||
assertThrows(instance.exports.main); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters