Skip to content

Commit 734d9f3

Browse files
committed
Revert "use direct lexinfo access in install_lexical_symbol()"
This reverts commit 13508b4.
1 parent d4f6e5c commit 734d9f3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/NQP/SymbolTable.pm

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,20 @@ class NQP::SymbolTable is HLL::Compiler::SerializationContextBuilder {
121121
my $fixup := PAST::Stmts.new(
122122
PAST::Op.new(
123123
:pasttype('callmethod'), :name('set_static_lexpad_value'),
124-
PAST::Val.new( :value($block), :returns('LexInfo')),
124+
PAST::Op.new(
125+
:pasttype('callmethod'), :name('get_lexinfo'),
126+
PAST::Val.new( :value($block) )
127+
),
125128
~$name, self.get_slot_past_for_object($obj)
126129
),
127130
# XXX Should only do this once per block we put static stuff
128131
# in...or find a way to not do it at all.
129132
PAST::Op.new(
130133
:pasttype('callmethod'), :name('finish_static_lexpad'),
131-
PAST::Val.new( :value($block), :returns('LexInfo' ))
134+
PAST::Op.new(
135+
:pasttype('callmethod'), :name('get_lexinfo'),
136+
PAST::Val.new( :value($block) )
137+
)
132138
)
133139
);
134140
self.add_event(:deserialize_past($fixup), :fixup_past($fixup));

0 commit comments

Comments
 (0)