aboutsummaryrefslogtreecommitdiff
path: root/snapshots
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-07-22 11:07:53 +0100
committerMichael Williamson <mike@zwobble.org>2023-07-22 11:08:22 +0100
commitfec2b177288643b258fa65bb4b660f080a53e960 (patch)
treea8378baacaf1d0dcb38d94effc4a08bf9c2cdb3b /snapshots
parentf525339cdcab1a44d370ffe619d46bdc2116c3b5 (diff)
Add Patio code gen for push-string
Diffstat (limited to 'snapshots')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushStringTests]/[method:canHaveMultipleStrings(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected21
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected17
2 files changed, 38 insertions, 0 deletions
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