line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#include |
2
|
|
|
|
|
|
|
#include |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
namespace xs { |
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
|
|
|
void Object::stash (const Stash& stash) { |
7
|
2
|
|
|
|
|
|
auto old = SvSTASH(sv); |
8
|
2
|
|
|
|
|
|
SvSTASH_set(sv, (HV*)SvREFCNT_inc_simple(stash.get())); |
9
|
2
|
50
|
|
|
|
|
SvREFCNT_dec(old); |
10
|
2
|
|
|
|
|
|
} |
11
|
|
|
|
|
|
|
|
12
|
0
|
0
|
|
|
|
|
Sub Object::method (const Sv& name) const { return stash().method(name); } |
13
|
13
|
50
|
|
|
|
|
Sub Object::method (const panda::string_view& name) const { return stash().method(name); } |
14
|
0
|
0
|
|
|
|
|
Sub Object::method_strict (const Sv& name) const { return stash().method_strict(name); } |
15
|
8
|
100
|
|
|
|
|
Sub Object::method_strict (const panda::string_view& name) const { return stash().method_strict(name); } |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
|
|
|
void Object::rebless (const Stash& stash) { |
18
|
1
|
|
|
|
|
|
_check_ref(); |
19
|
1
|
|
|
|
|
|
sv_bless(_ref, stash); |
20
|
1
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
} |