Skip to content

Commit

Permalink
Use 'inlinable' instead of 'inlineable' (#4474)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterDuke17 committed Jul 22, 2021
1 parent ac92caa commit 22f78f4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Optimizer.nqp
Expand Up @@ -543,7 +543,7 @@ my class BlockVarOptimizer {

method is_poisoned() { $!poisoned }

method is_inlineable() {
method is_inlinable() {
!($!poisoned || $!uses_p6return)
}

Expand Down Expand Up @@ -1150,7 +1150,7 @@ class Perl6::Optimizer {
my int $flattened := 0;
my $result := $block;
if $!level >= 2 && $block.blocktype eq 'immediate' && $block.arity == 0
&& $vars_info.is_inlineable && !$block.has_exit_handler {
&& $vars_info.is_inlinable && !$block.has_exit_handler {
# Scan symbols for any non-lowered ones.
my $impossible := 0;
for $block.symtable() {
Expand Down
10 changes: 5 additions & 5 deletions src/core.c/IterationBuffer.pm6
Expand Up @@ -9,7 +9,7 @@
# outside the scope of the method API it exposes. This type is engineered for
# performance over friendliness, and should not be encountered in normal use
# of Raku. Do NOT add any checks and validation to methods in here. They
# need to remain trivially inlineable for performance reasons.
# need to remain trivially inlinable for performance reasons.
my class IterationBuffer {
method clear(IterationBuffer:D: --> Nil) {
nqp::setelems(self, 0)
Expand Down Expand Up @@ -40,25 +40,25 @@ my class IterationBuffer {
}

# For maintainability mainly, and possibly for creating smaller, more
# inlineable candidates
# inlinable candidates
method Slip(IterationBuffer:D:) {
nqp::p6bindattrinvres(nqp::create(Slip),List,'$!reified',self)
}

# For maintainability mainly, and possibly for creating smaller, more
# inlineable candidates
# inlinable candidates
method List(IterationBuffer:D:) {
nqp::p6bindattrinvres(nqp::create(List),List,'$!reified',self)
}

# For maintainability mainly, and possibly for creating smaller, more
# inlineable candidates
# inlinable candidates
method Seq(IterationBuffer:D:) {
Seq.new(Rakudo::Iterator.ReifiedList(self))
}

# For maintainability mainly, and possibly for creating smaller, more
# inlineable candidates
# inlinable candidates
method iterator(IterationBuffer:D:) {
Rakudo::Iterator.ReifiedList(self)
}
Expand Down
4 changes: 2 additions & 2 deletions src/core.c/Rakudo/Internals.pm6
Expand Up @@ -1525,7 +1525,7 @@ my class Rakudo::Internals {
$i
}

# next logical string frontend, hopefully inlineable (pos >= 0)
# next logical string frontend, hopefully inlinable (pos >= 0)
method SUCC(str \string, int \pos) {
my int $at = nqp::index($succ-nlook,nqp::substr(string,pos,1));
nqp::iseq_i($at,-1)
Expand Down Expand Up @@ -1576,7 +1576,7 @@ my class Rakudo::Internals {
}
}

# previous logical string frontend, hopefully inlineable
# previous logical string frontend, hopefully inlinable
method PRED(str \string, int \pos) {
my int $at = nqp::index($pred-nlook,nqp::substr(string,pos,1));
nqp::iseq_i($at,-1)
Expand Down

0 comments on commit 22f78f4

Please sign in to comment.