| 1 |
|
| #include <xs/Object.h> |
| 2 |
|
| #include <xs/Stash.h> |
| 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 |
| SvREFCNT_dec(old); |
| 10 |
2 |
| } |
| 11 |
|
| |
| 12 |
0 |
▶ | Sub Object::method (const Sv& name) const { return stash().method(name); } |
Branch: 2 branches
| Branch | True | False | Total |
| Sub Object::method (const Sv& name) const { return stash().method(name); } |
0 |
0 |
0 |
| Sub Object::method (const Sv& name) const { return stash().method(name); } |
0 |
0 |
0 |
|
| 13 |
13 |
▶ | Sub Object::method (const panda::string_view& name) const { return stash().method(name); } |
Branch: 2 branches
| Branch | True | False | Total |
| Sub Object::method (const panda::string_view& name) const { return stash().method(name); } |
13 |
0 |
13 |
| Sub Object::method (const panda::string_view& name) const { return stash().method(name); } |
13 |
0 |
13 |
|
| 14 |
0 |
▶ | Sub Object::method_strict (const Sv& name) const { return stash().method_strict(name); } |
Branch: 2 branches
| Branch | True | False | Total |
| Sub Object::method_strict (const Sv& name) const { return stash().method_strict(name); } |
0 |
0 |
0 |
| Sub Object::method_strict (const Sv& name) const { return stash().method_strict(name); } |
0 |
0 |
0 |
|
| 15 |
7 |
▶ | Sub Object::method_strict (const panda::string_view& name) const { return stash().method_strict(name); } |
Branch: 2 branches
| Branch | True | False | Total |
| Sub Object::method_strict (const panda::string_view& name) const { return stash().method_strict(name); } |
7 |
0 |
7 |
| Sub Object::method_strict (const panda::string_view& name) const { return stash().method_strict(name); } |
6 |
1 |
7 |
|
| 16 |
|
| |
| 17 |
1 |
| void Object::rebless (const Stash& stash) { |
| 18 |
1 |
| _check_ref(); |
| 19 |
1 |
| sv_bless(_ref, stash); |
| 20 |
1 |
| } |
| 21 |
|
| |
| 22 |
|
| } |