From fec2b177288643b258fa65bb4b660f080a53e960 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 22 Jul 2023 11:07:53 +0100 Subject: Add Patio code gen for push-string --- ...ompiler.testing.snapshots.Snapshotter)].expected | 21 +++++++++++++++++++++ ...ompiler.testing.snapshots.Snapshotter)].expected | 17 +++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushStringTests]/[method:canHaveMultipleStrings(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected create mode 100644 snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected (limited to 'snapshots') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushStringTests]/[method:canHaveMultipleStrings(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushStringTests]/[method:canHaveMultipleStrings(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..18305494 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushStringTests]/[method:canHaveMultipleStrings(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,21 @@ +Compilation unit elements: + +(data-immutable "shed__string__0" (struct ((int 5) (array ((byte 0x68) (byte 0x65) (byte 0x6c) (byte 0x6c) (byte 0x6f)))))) +(data-immutable "shed__string__1" (struct ((int 5) (array ((byte 0x77) (byte 0x6f) (byte 0x72) (byte 0x6c) (byte 0x64)))))) + +Locals: + * ("string__0" int) + * ("string__1" int) + +Args: + +Instructions: + +( + (data-ptr-to-int (local "string__0") (data-ptr "shed__string__0")) + (data-ptr-to-int (local "string__1") (data-ptr "shed__string__1")) +) + +Temporary stack: + * string__1 + * string__0 diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..914e150d --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,17 @@ +Compilation unit elements: + +(data-immutable "shed__string__0" (struct ((int 5) (array ((byte 0x68) (byte 0x65) (byte 0x6c) (byte 0x6c) (byte 0x6f)))))) + +Locals: + * ("string__0" int) + +Args: + +Instructions: + +( + (data-ptr-to-int (local "string__0") (data-ptr "shed__string__0")) +) + +Temporary stack: + * string__0 -- cgit v1.2.3