Skip to content

Commit 727b917

Browse files
committed
nqp:: ops for getting/setting a Sub's code object.
1 parent 93966ce commit 727b917

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/QAST/Operations.nqp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,6 +1555,8 @@ QAST::Operations.add_core_pirop_mapping('rebless', 'repr_change_type', '0PP', :i
15551555

15561556
# code object related opcodes
15571557
QAST::Operations.add_core_pirop_mapping('takeclosure', 'newclosure', 'PP');
1558+
QAST::Operations.add_core_pirop_mapping('getcodeobj', 'get_sub_code_object', 'PP');
1559+
QAST::Operations.add_core_pirop_mapping('setcodeobj', 'set_sub_code_object', '1PP');
15581560

15591561
# serialization context related opcodes
15601562
QAST::Operations.add_core_pirop_mapping('sha1', 'nqp_sha1', 'Ss');

0 commit comments

Comments
 (0)