Skip to content

Commit

Permalink
Revert "use direct lexinfo access in install_lexical_symbol()"
Browse files Browse the repository at this point in the history
This reverts commit 13508b4.
  • Loading branch information
diakopter committed Nov 22, 2011
1 parent d4f6e5c commit 734d9f3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/NQP/SymbolTable.pm
Expand Up @@ -121,14 +121,20 @@ class NQP::SymbolTable is HLL::Compiler::SerializationContextBuilder {
my $fixup := PAST::Stmts.new(
PAST::Op.new(
:pasttype('callmethod'), :name('set_static_lexpad_value'),
PAST::Val.new( :value($block), :returns('LexInfo')),
PAST::Op.new(
:pasttype('callmethod'), :name('get_lexinfo'),
PAST::Val.new( :value($block) )
),
~$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::Val.new( :value($block), :returns('LexInfo' ))
PAST::Op.new(
:pasttype('callmethod'), :name('get_lexinfo'),
PAST::Val.new( :value($block) )
)
)
);
self.add_event(:deserialize_past($fixup), :fixup_past($fixup));
Expand Down

0 comments on commit 734d9f3

Please sign in to comment.