Skip to content

Commit 5ad5467

Browse files
committed
Ensure we end up with runtime lexpads being NQPLexPad.
1 parent e08aaf1 commit 5ad5467

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/HLL.pir

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ and HLL::Grammar.
1414
=cut
1515

1616
.HLL 'nqp'
17+
.loadlib "nqp_group"
18+
.loadlib "nqp_ops"
1719

1820
.sub '' :anon :load :init
1921
load_bytecode 'Regex.pbc'

src/NQP/Compiler.pir

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ NQP::Compiler - NQP compiler
1515
.loadlib "nqp_ops"
1616
.sub '' :anon :load :init
1717
nqp_dynop_setup
18+
19+
.local pmc interp, lexpad, nqplexpad
20+
interp = getinterp
21+
lexpad = get_class 'LexPad'
22+
nqplexpad = get_class 'NQPLexPad'
23+
interp.'hll_map'(lexpad, nqplexpad)
1824
.end
1925
.include 'gen/nqp-how.pir'
2026

0 commit comments

Comments
 (0)