line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Wasm::Trap; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
224452
|
use strict; |
|
5
|
|
|
|
|
27
|
|
|
5
|
|
|
|
|
146
|
|
4
|
5
|
|
|
5
|
|
25
|
use warnings; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
122
|
|
5
|
5
|
|
|
5
|
|
1689
|
use Wasm::Wasmtime::Trap; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
160
|
|
6
|
5
|
|
|
5
|
|
148
|
use 5.008004; |
|
5
|
|
|
|
|
16
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: Wasm trap class |
9
|
|
|
|
|
|
|
our $VERSION = '0.21'; # VERSION |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new |
13
|
|
|
|
|
|
|
{ |
14
|
1
|
|
|
1
|
1
|
96
|
my(undef, $message) = @_; |
15
|
1
|
|
|
|
|
455
|
require Wasm; |
16
|
1
|
|
|
|
|
5
|
my $linker = Wasm::_linker(); |
17
|
1
|
|
|
|
|
4
|
Wasm::Wasmtime::Trap->new($linker->store, $message); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
push @Wasm::Wasmtime::Trap::ISA, __PACKAGE__; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |