Skip to content

Commit

Permalink
Don't handle mangled strings anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
samcv committed Mar 30, 2020
1 parent 6903d0f commit 9aca235
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions src/vm/moar/QAST/QASTCompilerMAST.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -318,23 +318,26 @@ my class MASTCompilerInstance {
nqp::setmethcache($buf, nqp::hash('new', method () {nqp::create($buf)}));
$buf;
}
my $mangled_name_two := convert-two($name);
$block := self;
$out := 0;
while $block {
my $lex := ($block.lexicals()){$mangled_name_two};
return MAST::Lexical.new( :index($lex.index), :frames_out($out) ) if $lex;
$out++;
$block := $block.outer;
}
my $mangled_name := convert($name);
$block := self;
$out := 0;
while $block {
my $lex := ($block.lexicals()){$mangled_name};
return MAST::Lexical.new( :index($lex.index), :frames_out($out) ) if $lex;
$out++;
$block := $block.outer;
my $handle-mangled-strings := 0;
if $handle-mangled-strings {
my $mangled_name_two := convert-two($name);
$block := self;
$out := 0;
while $block {
my $lex := ($block.lexicals()){$mangled_name_two};
return MAST::Lexical.new( :index($lex.index), :frames_out($out) ) if $lex;
$out++;
$block := $block.outer;
}
my $mangled_name := convert($name);
$block := self;
$out := 0;
while $block {
my $lex := ($block.lexicals()){$mangled_name};
return MAST::Lexical.new( :index($lex.index), :frames_out($out) ) if $lex;
$out++;
$block := $block.outer;
}
}
nqp::die("Could not resolve lexical $name");
}
Expand Down

0 comments on commit 9aca235

Please sign in to comment.