Skip to content

Commit 0fbc43b

Browse files
mlschroediakopter
authored andcommitted
use direct lexinfo access in install_lexical_symbol()
1 parent 137dd06 commit 0fbc43b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/NQP/SymbolTable.pm

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,14 @@ 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::Op.new(
125-
:pasttype('callmethod'), :name('get_lexinfo'),
126-
PAST::Val.new( :value($block) )
127-
),
124+
PAST::Val.new( :value($block), :returns('LexInfo')),
128125
~$name, self.get_slot_past_for_object($obj)
129126
),
130127
# XXX Should only do this once per block we put static stuff
131128
# in...or find a way to not do it at all.
132129
PAST::Op.new(
133130
:pasttype('callmethod'), :name('finish_static_lexpad'),
134-
PAST::Op.new(
135-
:pasttype('callmethod'), :name('get_lexinfo'),
136-
PAST::Val.new( :value($block) )
137-
)
131+
PAST::Val.new( :value($block), :returns('LexInfo' ))
138132
)
139133
);
140134
self.add_event(:deserialize_past($fixup), :fixup_past($fixup));

0 commit comments

Comments
 (0)