We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3190cf commit 3dce35cCopy full SHA for 3dce35c
src/QAST/Compiler.nqp
@@ -87,6 +87,14 @@ class QAST::Compiler is HLL::Compiler {
87
self.escape($node.value)
88
}
89
90
+ multi method as_post(QAST::BVal $node) {
91
+ my $cuid := self.escape($node.block.cuid);
92
+ my $reg := $*REGALLOC.fresh_p();
93
+ my $ops := self.post_new('Ops', :result($reg));
94
+ $ops.push_pirop(".const 'Sub' $reg = '$cuid'");
95
+ $ops;
96
+ }
97
+
98
multi method as_post(QAST::WVal $node) {
99
my $val := $node.value;
100
my $sc := pir::nqp_get_sc_for_object__PP($val);
0 commit comments