Permalink
Browse files

use direct lexinfo access in install_lexical_symbol()

  • Loading branch information...
mlschroe committed Nov 21, 2011
1 parent cc3918c commit 13508b4874034715cf09c929da41b8709d753833
Showing with 2 additions and 8 deletions.
  1. +2 −8 src/NQP/SymbolTable.pm
View
@@ -121,20 +121,14 @@ class NQP::SymbolTable is HLL::Compiler::SerializationContextBuilder {
my $fixup := PAST::Stmts.new(
PAST::Op.new(
:pasttype('callmethod'), :name('set_static_lexpad_value'),
PAST::Op.new(
:pasttype('callmethod'), :name('get_lexinfo'),
PAST::Val.new( :value($block) )
),
PAST::Val.new( :value($block), :returns('LexInfo')),
~$name, self.get_slot_past_for_object($obj)
),
# XXX Should only do this once per block we put static stuff
# in...or find a way to not do it at all.
PAST::Op.new(
:pasttype('callmethod'), :name('finish_static_lexpad'),
PAST::Op.new(
:pasttype('callmethod'), :name('get_lexinfo'),
PAST::Val.new( :value($block) )
)
PAST::Val.new( :value($block), :returns('LexInfo' ))
)
);
self.add_event(:deserialize_past($fixup), :fixup_past($fixup));

0 comments on commit 13508b4

Please sign in to comment.