forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1871606 - Disable abstractFramePtr for IndirectCallBadSig trap. r…
…=rhunt Differential Revision: https://phabricator.services.mozilla.com/D197785
- Loading branch information
1 parent
719b4a8
commit 4cb11ab
Showing
5 changed files
with
41 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// |jit-test| --more-compartments; skip-variant-if: --wasm-test-serialization, true; skip-variant-if: --wasm-compiler=ion, true | ||
dbg = newGlobal(); | ||
dbg.b = this; | ||
dbg.eval("(" + function() { | ||
Debugger(b) | ||
} + ")()"); | ||
var ins = wasmEvalText(` | ||
(table 1 funcref) | ||
(type $d (func (param f64))) | ||
(func $e | ||
(export "test") | ||
f64.const 0.0 | ||
i32.const 0 | ||
return_call_indirect (type $d) | ||
) | ||
(elem (i32.const 0) $e) | ||
`); | ||
|
||
assertErrorMessage( | ||
() => ins.exports.test(), | ||
WebAssembly.RuntimeError, /indirect call signature mismatch/ | ||
); |
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
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