line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Wasm::Trap; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
222299
|
use strict; |
|
5
|
|
|
|
|
30
|
|
|
5
|
|
|
|
|
142
|
|
4
|
5
|
|
|
5
|
|
23
|
use warnings; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
120
|
|
5
|
5
|
|
|
5
|
|
1607
|
use Wasm::Wasmtime::Trap; |
|
5
|
|
|
|
|
17
|
|
|
5
|
|
|
|
|
181
|
|
6
|
5
|
|
|
5
|
|
99
|
use 5.008004; |
|
5
|
|
|
|
|
16
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: Wasm trap class |
9
|
|
|
|
|
|
|
our $VERSION = '0.23'; # VERSION |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new |
13
|
|
|
|
|
|
|
{ |
14
|
1
|
|
|
1
|
1
|
85
|
my(undef, $message) = @_; |
15
|
1
|
|
|
|
|
417
|
require Wasm; |
16
|
1
|
|
|
|
|
6
|
my $linker = Wasm::_linker(); |
17
|
1
|
|
|
|
|
14
|
Wasm::Wasmtime::Trap->new($linker->store, $message); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
push @Wasm::Wasmtime::Trap::ISA, __PACKAGE__; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |