aboutsummaryrefslogtreecommitdiff
path: root/snapshots
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-16 15:50:49 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-16 15:52:18 +0000
commitf4a0159dc00fd1caa7a251d7f6bcd23948cf5f7d (patch)
tree21ce45b98a3d23f6744efe6556944405f6530994 /snapshots
parent4d5143de9b16a980bd865d786a03cdfee46cbe17 (diff)
Store namespace fields as permanent GC roots
Diffstat (limited to 'snapshots')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenNamespaceFieldStoreTests]/[method:canGenerateCodeForNamespaceFieldStore(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected7
1 files changed, 7 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenNamespaceFieldStoreTests]/[method:canGenerateCodeForNamespaceFieldStore(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenNamespaceFieldStoreTests]/[method:canGenerateCodeForNamespaceFieldStore(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
index 03399c60..2408d323 100644
--- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenNamespaceFieldStoreTests]/[method:canGenerateCodeForNamespaceFieldStore(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenNamespaceFieldStoreTests]/[method:canGenerateCodeForNamespaceFieldStore(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -1,5 +1,11 @@
Compilation unit elements:
+(
+ function-decl
+ "shed__runtime__gc_add_perm_root"
+ params=((param "gc_root" int))
+ return-type=void
+)
Locals:
@@ -13,6 +19,7 @@ Instructions:
offset=(1)
value=(local "b")
)
+ (call _ "shed__runtime__gc_add_perm_root" ((local "b")))
)
Temporary stack: