From feeb048fe9ab2e2d9f748a6028a8ca05d8a8eacf Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 16 Dec 2023 14:27:54 +0000 Subject: Make user defined effects GC objects --- ....shedlang.compiler.testing.snapshots.Snapshotter)].expected | 10 +++++----- ....shedlang.compiler.testing.snapshots.Snapshotter)].expected | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'snapshots') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineEffectTests]/[method:canGenerateCodeForDefineEffect(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineEffectTests]/[method:canGenerateCodeForDefineEffect(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index 4bb1c523..401ed700 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineEffectTests]/[method:canGenerateCodeForDefineEffect(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineEffectTests]/[method:canGenerateCodeForDefineEffect(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -59,7 +59,7 @@ Locals: Instructions: ( - (alloc-heap (local "userDefinedEffectPointer__State__0") (struct (int int))) + (alloc-heap (local "userDefinedEffectPointer__State__0") (struct (data-ptr (struct (int int))))) (alloc-heap (local "closurePointer__read__0") (struct (data-ptr (struct (function-ptr (struct ()) (struct ())))))) ( memory-store @@ -72,8 +72,8 @@ Instructions: ( memory-store pointer=(local "userDefinedEffectPointer__State__0") - layout=(struct (int int)) - offset=(0) + layout=(struct (data-ptr (struct (int int)))) + offset=(1 0) value=(local "userDefinedMethod__read__0") ) (alloc-heap (local "closurePointer__write__0") (struct (data-ptr (struct (function-ptr (struct ()) (struct ())))))) @@ -88,8 +88,8 @@ Instructions: ( memory-store pointer=(local "userDefinedEffectPointer__State__0") - layout=(struct (int int)) - offset=(1) + layout=(struct (data-ptr (struct (int int)))) + offset=(1 1) value=(local "userDefinedMethod__write__0") ) (data-ptr-to-int (local "userDefinedEffect__State__0") (local "userDefinedEffectPointer__State__0")) diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForUserDefinedEffectFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForUserDefinedEffectFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index dbd97455..cbdc2fba 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForUserDefinedEffectFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForUserDefinedEffectFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -13,8 +13,8 @@ Instructions: memory-load (local "tmp__fence__0") pointer=(local "userDefinedEffectPointer__0") - layout=(struct (int int int)) - offset=(1) + layout=(struct (data-ptr (struct (int int int)))) + offset=(1 1) ) ) -- cgit v1.2.3