Skip to content

Commit 9d0873f

Browse files
committed
Merge pull request #180 from bdw/master
Add force_gc to MoarVM backend
2 parents f84a159 + c6d375f commit 9d0873f

14 files changed

+5
-2
lines changed

src/vm/moar/HLL/Backend.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class HLL::Backend::MoarVM {
1111
}
1212

1313
method force_gc() {
14-
nqp::die("Cannot force GC on Moar backend yet");
14+
nqp::force_gc();
1515
}
1616

1717
method name() {

src/vm/moar/QAST/QASTOperationsMAST.nqp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2589,6 +2589,9 @@ QAST::MASTOperations.add_core_moarop_mapping('continuationinvoke', 'continuation
25892589
QAST::MASTOperations.add_core_moarop_mapping('mvmstartprofile', 'startprofile', 0);
25902590
QAST::MASTOperations.add_core_moarop_mapping('mvmendprofile', 'endprofile');
25912591

2592+
# MoarVM-specific GC ops
2593+
QAST::MASTOperations.add_core_moarop_mapping('force_gc', 'force_gc');
2594+
25922595
sub resolve_condition_op($kind, $negated) {
25932596
return $negated ??
25942597
$kind == $MVM_reg_int64 ?? 'unless_i' !!

src/vm/moar/stage0/MASTNodes.moarvm

2.28 KB
Binary file not shown.

src/vm/moar/stage0/MASTOps.moarvm

-14 KB
Binary file not shown.
-816 Bytes
Binary file not shown.
-1.21 KB
Binary file not shown.

src/vm/moar/stage0/NQPHLL.moarvm

3.19 KB
Binary file not shown.

src/vm/moar/stage0/NQPP6QRegex.moarvm

-2.19 KB
Binary file not shown.

src/vm/moar/stage0/QAST.moarvm

-32.4 KB
Binary file not shown.

src/vm/moar/stage0/QASTNode.moarvm

23.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)