From f4a0159dc00fd1caa7a251d7f6bcd23948cf5f7d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 16 Dec 2023 15:50:49 +0000 Subject: Store namespace fields as permanent GC roots --- ...(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'snapshots') 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: -- cgit v1.2.3