Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update to new MAST::Label API.
Includes NQP_REVISION update, which also updated MOAR_REVISION.
  • Loading branch information
jnthn committed Aug 2, 2014
1 parent 8d56c56 commit f5d1870
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/vm/moar/Perl6/Ops.nqp
Expand Up @@ -150,8 +150,8 @@ $ops.add_hll_op('perl6', 'p6store', -> $qastcomp, $op {

my $iscont_reg := $*REGALLOC.fresh_i();
my $decont_reg := $*REGALLOC.fresh_o();
my $no_cont_lbl := MAST::Label.new(:name($op.unique('p6store_no_cont_')));
my $done_lbl := MAST::Label.new(:name($op.unique('p6store_done_')));
my $no_cont_lbl := MAST::Label.new();
my $done_lbl := MAST::Label.new();
nqp::push(@ops, MAST::Op.new( :op('iscont'), $iscont_reg, $cont_res.result_reg ));
nqp::push(@ops, MAST::Op.new( :op('unless_i'), $iscont_reg, $no_cont_lbl ));
$*REGALLOC.release_register($iscont_reg, $MVM_reg_int64);
Expand Down Expand Up @@ -202,7 +202,7 @@ $ops.add_hll_op('perl6', 'p6bindassert', -> $qastcomp, $op {
# Emit a type check.
my $tcr_reg := $*REGALLOC.fresh_i();
my $dc_reg := $*REGALLOC.fresh_o();
my $lbl_done := MAST::Label.new(:name($op.unique('bindassert_done_')));
my $lbl_done := MAST::Label.new();
nqp::push(@ops, MAST::Op.new( :op('decont'), $dc_reg, $value_res.result_reg ));
nqp::push(@ops, MAST::Op.new( :op('istype'), $tcr_reg, $dc_reg, $type_res.result_reg ));
nqp::push(@ops, MAST::Op.new( :op('if_i'), $tcr_reg, $lbl_done ));
Expand Down Expand Up @@ -262,8 +262,8 @@ $ops.add_hll_op('perl6', 'p6argvmarray', -> $qastcomp, $op {
my $n_reg := $*REGALLOC.fresh_i();
my $cmp_reg := $*REGALLOC.fresh_i();
my $tmp_reg := $*REGALLOC.fresh_o();
my $lbl_next := MAST::Label.new(:name($op.unique('vmarr_next')));
my $lbl_done := MAST::Label.new(:name($op.unique('vmarr_done')));
my $lbl_next := MAST::Label.new();
my $lbl_done := MAST::Label.new();
nqp::push(@ops, MAST::Op.new( :op('elems'), $n_reg, $res_reg ));
nqp::push(@ops, MAST::Op.new( :op('const_i64'), $i_reg, MAST::IVal.new( :value(0) ) ));
nqp::push(@ops, $lbl_next);
Expand Down Expand Up @@ -444,7 +444,7 @@ $ops.add_hll_op('perl6', 'p6sink', -> $qastcomp, $op {
# Check it's concrete and can sink.
my $sinkee_reg := $sinkee_res.result_reg;
my $itmp := $*REGALLOC.fresh_i();
my $done_lbl := MAST::Label.new( :name($op.unique('p6sink')) );
my $done_lbl := MAST::Label.new();
nqp::push(@ops, MAST::Op.new( :op('isconcrete'), $itmp, $sinkee_reg ));
nqp::push(@ops, MAST::Op.new( :op('unless_i'), $itmp, $done_lbl ));
nqp::push(@ops, MAST::Op.new( :op('can'), $itmp, $sinkee_reg,
Expand Down Expand Up @@ -557,7 +557,7 @@ our $Binder;
$ops.add_hll_op('perl6', 'p6bindsig', :!inlinable, -> $qastcomp, $op {
my @ops;
my $isnull_result := $*REGALLOC.fresh_i();
my $dont_return_lbl := MAST::Label.new(:name($op.unique('p6bind_no_junction_return')));
my $dont_return_lbl := MAST::Label.new();
my $bind_res := $qastcomp.as_mast(
QAST::Op.new(
:op('callmethod'), :name('bind_sig'),
Expand Down Expand Up @@ -623,7 +623,7 @@ $ops.add_hll_op('perl6', 'p6typecheckrv', -> $qastcomp, $op {
my @ops;
my $value_res := $qastcomp.as_mast($op[0], :want($MVM_reg_obj));
my $type_res := $qastcomp.as_mast(QAST::WVal.new( :value($type) ), :want($MVM_reg_obj));
my $lbl_done := MAST::Label.new(:name($op.unique('rtc_done_')));
my $lbl_done := MAST::Label.new();
push_ilist(@ops, $value_res);
push_ilist(@ops, $type_res);
my $decont := $*REGALLOC.fresh_o();
Expand Down
2 changes: 1 addition & 1 deletion tools/build/NQP_REVISION
@@ -1 +1 @@
2014.07-49-g183e611
2014.07-50-gfadd779

0 comments on commit f5d1870

Please sign in to comment.