Skip to content

Commit

Permalink
save a few extra kilobytes from indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Aug 27, 2019
1 parent ead2670 commit d340e97
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/vm/moar/HLL/Backend.nqp
Expand Up @@ -465,7 +465,7 @@ class HLL::Backend::MoarVM {
my $v := $mapping{$k};
if nqp::ishash($v) {
if !$is-first {
nqp::push_s($pieces, ",\n ('");
nqp::push_s($pieces, ",\n('");
}
else { $is-first := 0 }
nqp::push_s($pieces,
Expand All @@ -492,7 +492,7 @@ class HLL::Backend::MoarVM {
my $v := $mapping{$k};
if !nqp::ishash($v) {
if !$is-first {
nqp::push_s($pieces, ",\n ('");
nqp::push_s($pieces, ",\n('");
}
else { $is-first := 0 }
my $type-info := %type-info{nqp::iterkey_s($k)};
Expand Down Expand Up @@ -542,7 +542,7 @@ class HLL::Backend::MoarVM {

for $v -> $gc {
if !$is-first {
nqp::push_s($pieces, ",\n (");
nqp::push_s($pieces, ",\n(");
}
else { $is-first := 0 }
my @g := nqp::list_s();
Expand Down Expand Up @@ -571,7 +571,7 @@ class HLL::Backend::MoarVM {

for $deallocs -> $entry {
if !$is-first {
nqp::push_s($pieces, ",\n (");
nqp::push_s($pieces, ",\n(");
}
else { $is-first := 0 }
@g := nqp::list_s($gc<sequence>, $thread_id);
Expand Down Expand Up @@ -611,7 +611,7 @@ class HLL::Backend::MoarVM {
$is_first := 0;
}
else {
nqp::push_s($pieces, "),\n ");
nqp::push_s($pieces, "),\n");
}
my str $routine_id := ~%call_graph<id>;
%call_rec_depth{$routine_id} := 0 unless %call_rec_depth{$routine_id};
Expand All @@ -626,7 +626,7 @@ class HLL::Backend::MoarVM {
nqp::push_s(@a, ~($a{$f} // '0'));
}
if nqp::elems($allocation_pieces) > 1 {
nqp::push_s($allocation_pieces, ",\n (");
nqp::push_s($allocation_pieces, ",\n(");
}
nqp::push_s($allocation_pieces, nqp::join(',', @a) ~ ")");
}
Expand Down

0 comments on commit d340e97

Please sign in to comment.