Skip to content
Permalink
Browse files

BEGINnify nqp::getcurhllsym('default_cont_spec')

Because we don't need to look that up each time at runtime
  • Loading branch information...
lizmat committed Sep 27, 2018
1 parent bab9a8d commit 06dfbf0273cfefd51945484b9293e519025d9af2
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/core/Array.pm6
  2. +1 −1 src/core/Map.pm6
@@ -200,7 +200,7 @@ my class Array { # declared in BOOTSTRAP
$iter.push-until-lazy(
my \target := ArrayReificationTarget.new(
(my \buffer := nqp::create(IterationBuffer)),
nqp::getcurhllsym('default_cont_spec')
BEGIN nqp::getcurhllsym('default_cont_spec')
)
),
IterationEnd
@@ -55,7 +55,7 @@ my class Map does Iterable does Associative { # declared in BOOTSTRAP
if nqp::elems($!storage) {
my \hash := nqp::create(Hash);
my \storage := nqp::bindattr(hash,Map,'$!storage',nqp::hash);
my \descriptor := nqp::getcurhllsym('default_cont_spec');
my \descriptor := BEGIN nqp::getcurhllsym('default_cont_spec');
my \iter := nqp::iterator(nqp::getattr(self,Map,'$!storage'));
nqp::while(
iter,

0 comments on commit 06dfbf0

Please sign in to comment.
You can’t perform that action at this time.