implements PR-05.0.3
This commit is contained in:
+12
-10
@@ -2,7 +2,9 @@ package p.studio.compiler.models;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import p.studio.compiler.source.Span;
|
||||
import p.studio.compiler.source.identifiers.CallableId;
|
||||
import p.studio.compiler.source.identifiers.FileId;
|
||||
import p.studio.compiler.source.identifiers.IntrinsicId;
|
||||
import p.studio.compiler.source.tables.CallableSignatureRef;
|
||||
import p.studio.compiler.source.tables.IntrinsicReference;
|
||||
import p.studio.utilities.structures.ReadOnlyList;
|
||||
@@ -27,7 +29,7 @@ class IRBackendExecutableContractTest {
|
||||
IRBackendExecutableFunction.InstructionKind.CALL_FUNC,
|
||||
"app/main",
|
||||
"foo",
|
||||
7,
|
||||
new CallableId(7),
|
||||
null,
|
||||
null,
|
||||
Span.none());
|
||||
@@ -40,7 +42,7 @@ class IRBackendExecutableContractTest {
|
||||
new FileId(1),
|
||||
"app",
|
||||
"main",
|
||||
1,
|
||||
new CallableId(1),
|
||||
10,
|
||||
5,
|
||||
0,
|
||||
@@ -54,7 +56,7 @@ class IRBackendExecutableContractTest {
|
||||
new FileId(1),
|
||||
"app",
|
||||
"main",
|
||||
1,
|
||||
new CallableId(1),
|
||||
0,
|
||||
10,
|
||||
0,
|
||||
@@ -72,7 +74,7 @@ class IRBackendExecutableContractTest {
|
||||
IRBackendExecutableFunction.InstructionKind.CALL_FUNC,
|
||||
"app/main",
|
||||
"foo",
|
||||
1,
|
||||
new CallableId(1),
|
||||
new IRBackendExecutableFunction.HostCallMetadata("gfx", "draw", 1, 0, 0),
|
||||
null,
|
||||
Span.none()));
|
||||
@@ -123,7 +125,7 @@ class IRBackendExecutableContractTest {
|
||||
new FileId(1),
|
||||
"app/main",
|
||||
"entry",
|
||||
0,
|
||||
new CallableId(0),
|
||||
0,
|
||||
10,
|
||||
0,
|
||||
@@ -149,7 +151,7 @@ class IRBackendExecutableContractTest {
|
||||
new FileId(2),
|
||||
"app/main",
|
||||
"aux",
|
||||
0,
|
||||
new CallableId(0),
|
||||
11,
|
||||
20,
|
||||
0,
|
||||
@@ -189,7 +191,7 @@ class IRBackendExecutableContractTest {
|
||||
new FileId(1),
|
||||
"app/main",
|
||||
"entry",
|
||||
0,
|
||||
new CallableId(0),
|
||||
0,
|
||||
10,
|
||||
0,
|
||||
@@ -201,7 +203,7 @@ class IRBackendExecutableContractTest {
|
||||
"",
|
||||
"",
|
||||
null,
|
||||
new IRBackendExecutableFunction.IntrinsicCallMetadata("core.color.pack", 1, 0),
|
||||
new IRBackendExecutableFunction.IntrinsicCallMetadata("core.color.pack", 1, new IntrinsicId(0)),
|
||||
Span.none())),
|
||||
Span.none())),
|
||||
IRReservedMetadata.empty(),
|
||||
@@ -214,7 +216,7 @@ class IRBackendExecutableContractTest {
|
||||
new FileId(2),
|
||||
"app/main",
|
||||
"aux",
|
||||
0,
|
||||
new CallableId(0),
|
||||
11,
|
||||
20,
|
||||
0,
|
||||
@@ -226,7 +228,7 @@ class IRBackendExecutableContractTest {
|
||||
"",
|
||||
"",
|
||||
null,
|
||||
new IRBackendExecutableFunction.IntrinsicCallMetadata("core.color.pack", 1, 0),
|
||||
new IRBackendExecutableFunction.IntrinsicCallMetadata("core.color.pack", 1, new IntrinsicId(0)),
|
||||
Span.none())),
|
||||
Span.none())),
|
||||
IRReservedMetadata.empty(),
|
||||
|
||||
Reference in New Issue
Block a user