Skip to content

Commit

Permalink
Stub openpipe op.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Nov 27, 2013
1 parent 77490b3 commit b235e2e
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 7 deletions.
19 changes: 14 additions & 5 deletions lib/MAST/Ops.nqp
Expand Up @@ -546,7 +546,8 @@ BEGIN {
1288,
1291,
1293,
1298);
1298,
1299);
MAST::Ops.WHO<@counts> := nqp::list_i(0,
2,
2,
Expand Down Expand Up @@ -1090,7 +1091,8 @@ BEGIN {
3,
2,
5,
1);
1,
5);
MAST::Ops.WHO<@values> := nqp::list_i(10,
8,
18,
Expand Down Expand Up @@ -2389,7 +2391,12 @@ BEGIN {
33,
33,
57,
66);
66,
66,
57,
57,
65,
57);
MAST::Ops.WHO<%codes> := nqp::hash('no_op', 0,
'const_i8', 1,
'const_i16', 2,
Expand Down Expand Up @@ -2933,7 +2940,8 @@ BEGIN {
'read_fhb', 540,
'write_fhb', 541,
'replace', 542,
'newexception', 543);
'newexception', 543,
'openpipe', 544);
MAST::Ops.WHO<@names> := nqp::list('no_op',
'const_i8',
'const_i16',
Expand Down Expand Up @@ -3477,5 +3485,6 @@ BEGIN {
'read_fhb',
'write_fhb',
'replace',
'newexception');
'newexception',
'openpipe');
}
2 changes: 1 addition & 1 deletion src/core/oplabels.h
Expand Up @@ -545,7 +545,7 @@ static const void * const LABELS[] = {
&&OP_write_fhb,
&&OP_replace,
&&OP_newexception,
NULL,
&&OP_openpipe,
NULL,
NULL,
NULL,
Expand Down
1 change: 1 addition & 0 deletions src/core/oplist
Expand Up @@ -573,3 +573,4 @@ read_fhb r(obj) r(obj) r(int64)
write_fhb r(obj) r(obj)
replace w(str) r(str) r(int64) r(int64) r(str)
newexception w(obj)
openpipe w(obj) r(str) r(str) r(obj) r(str)
9 changes: 8 additions & 1 deletion src/core/ops.c
Expand Up @@ -3814,9 +3814,16 @@ static MVMOpInfo MVM_op_infos[] = {
1,
{ MVM_operand_write_reg | MVM_operand_obj }
},
{
MVM_OP_openpipe,
"openpipe",
" ",
5,
{ MVM_operand_write_reg | MVM_operand_obj, MVM_operand_read_reg | MVM_operand_str, MVM_operand_read_reg | MVM_operand_str, MVM_operand_read_reg | MVM_operand_obj, MVM_operand_read_reg | MVM_operand_str }
},
};

static unsigned short MVM_op_counts = 544;
static unsigned short MVM_op_counts = 545;

MVMOpInfo * MVM_op_get_op(unsigned short op) {
if (op >= MVM_op_counts)
Expand Down
1 change: 1 addition & 0 deletions src/core/ops.h
Expand Up @@ -545,6 +545,7 @@
#define MVM_OP_write_fhb 541
#define MVM_OP_replace 542
#define MVM_OP_newexception 543
#define MVM_OP_openpipe 544

#define MVM_OP_EXT_BASE 1024
#define MVM_OP_EXT_CU_LIMIT 1024
Expand Down

0 comments on commit b235e2e

Please sign in to comment.