@vercel/python-analysis 0.11.1 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +245 -4
- package/dist/index.d.ts +5 -3
- package/dist/index.js +249 -13
- package/dist/manifest/pyproject/schema.d.ts +13 -1
- package/dist/manifest/pyproject/schema.zod.d.ts +159 -0
- package/dist/manifest/pyproject/types.d.ts +19 -0
- package/dist/semantic/import-graph.d.ts +69 -0
- package/dist/wasm/interfaces/wasi-cli-environment.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-exit.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-stderr.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-stdin.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-stdout.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-terminal-input.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-terminal-output.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-terminal-stderr.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-terminal-stdin.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-terminal-stdout.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-clocks-monotonic-clock.d.ts +4 -0
- package/dist/wasm/interfaces/wasi-clocks-wall-clock.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-filesystem-preopens.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-filesystem-types.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-io-error.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-io-poll.d.ts +2 -1
- package/dist/wasm/interfaces/wasi-io-streams.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-random-insecure-seed.d.ts +1 -1
- package/dist/wasm/vercel_python_analysis.core.wasm +0 -0
- package/dist/wasm/vercel_python_analysis.core2.wasm +0 -0
- package/dist/wasm/vercel_python_analysis.core3.wasm +0 -0
- package/dist/wasm/vercel_python_analysis.d.ts +44 -34
- package/dist/wasm/vercel_python_analysis.js +292 -140
- package/package.json +1 -1
|
@@ -709,6 +709,11 @@ const I32_MAX = 2_147_483_647;
|
|
|
709
709
|
const I32_MIN = -2_147_483_648;
|
|
710
710
|
const _typeCheckValidI32 = (n) => typeof n === 'number' && n >= I32_MIN && n <= I32_MAX;
|
|
711
711
|
|
|
712
|
+
function clampGuest(i, min, max) {
|
|
713
|
+
if (i < min || i > max) throw new TypeError(`must be between ${min} and ${max}`);
|
|
714
|
+
return i;
|
|
715
|
+
}
|
|
716
|
+
|
|
712
717
|
const isNode = typeof process !== 'undefined' && process.versions && process.versions.node;
|
|
713
718
|
let _fs;
|
|
714
719
|
async function fetchCompile (url) {
|
|
@@ -817,10 +822,11 @@ const { TerminalOutput } = imports['wasi:cli/terminal-output'];
|
|
|
817
822
|
const { getTerminalStderr } = imports['wasi:cli/terminal-stderr'];
|
|
818
823
|
const { getTerminalStdin } = imports['wasi:cli/terminal-stdin'];
|
|
819
824
|
const { getTerminalStdout } = imports['wasi:cli/terminal-stdout'];
|
|
825
|
+
const { subscribeDuration } = imports['wasi:clocks/monotonic-clock'];
|
|
820
826
|
const { getDirectories } = imports['wasi:filesystem/preopens'];
|
|
821
827
|
const { Descriptor } = imports['wasi:filesystem/types'];
|
|
822
828
|
const { Error: Error$1 } = imports['wasi:io/error'];
|
|
823
|
-
const { Pollable } = imports['wasi:io/poll'];
|
|
829
|
+
const { Pollable, poll } = imports['wasi:io/poll'];
|
|
824
830
|
const { InputStream, OutputStream } = imports['wasi:io/streams'];
|
|
825
831
|
const { insecureSeed } = imports['wasi:random/insecure-seed'];
|
|
826
832
|
let gen = (function* _initGenerator () {
|
|
@@ -847,12 +853,12 @@ let gen = (function* _initGenerator () {
|
|
|
847
853
|
throw new TypeError('invalid variant discriminant for expected');
|
|
848
854
|
}
|
|
849
855
|
}
|
|
850
|
-
_debugLog('[iface="wasi:cli/exit@0.2.
|
|
856
|
+
_debugLog('[iface="wasi:cli/exit@0.2.9", function="exit"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
851
857
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'exit');
|
|
852
858
|
exit(variant0);
|
|
853
|
-
_debugLog('[iface="wasi:cli/exit@0.2.
|
|
859
|
+
_debugLog('[iface="wasi:cli/exit@0.2.9", function="exit"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
854
860
|
endCurrentTask(0);
|
|
855
|
-
_debugLog('[iface="wasi:cli/exit@0.2.
|
|
861
|
+
_debugLog('[iface="wasi:cli/exit@0.2.9", function="exit"][Instruction::Return]', {
|
|
856
862
|
funcName: 'exit',
|
|
857
863
|
paramCount: 0,
|
|
858
864
|
async: false,
|
|
@@ -875,16 +881,16 @@ let gen = (function* _initGenerator () {
|
|
|
875
881
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
876
882
|
}
|
|
877
883
|
curResourceBorrows.push(rsc0);
|
|
878
|
-
_debugLog('[iface="wasi:io/poll@0.2.
|
|
884
|
+
_debugLog('[iface="wasi:io/poll@0.2.9", function="[method]pollable.block"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
879
885
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]pollable.block');
|
|
880
886
|
rsc0.block();
|
|
881
|
-
_debugLog('[iface="wasi:io/poll@0.2.
|
|
887
|
+
_debugLog('[iface="wasi:io/poll@0.2.9", function="[method]pollable.block"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
882
888
|
for (const rsc of curResourceBorrows) {
|
|
883
889
|
rsc[symbolRscHandle] = undefined;
|
|
884
890
|
}
|
|
885
891
|
curResourceBorrows = [];
|
|
886
892
|
endCurrentTask(0);
|
|
887
|
-
_debugLog('[iface="wasi:io/poll@0.2.
|
|
893
|
+
_debugLog('[iface="wasi:io/poll@0.2.9", function="[method]pollable.block"][Instruction::Return]', {
|
|
888
894
|
funcName: '[method]pollable.block',
|
|
889
895
|
paramCount: 0,
|
|
890
896
|
async: false,
|
|
@@ -907,10 +913,10 @@ let gen = (function* _initGenerator () {
|
|
|
907
913
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
908
914
|
}
|
|
909
915
|
curResourceBorrows.push(rsc0);
|
|
910
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
916
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.subscribe"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
911
917
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]output-stream.subscribe');
|
|
912
918
|
const ret = rsc0.subscribe();
|
|
913
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
919
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.subscribe"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
914
920
|
for (const rsc of curResourceBorrows) {
|
|
915
921
|
rsc[symbolRscHandle] = undefined;
|
|
916
922
|
}
|
|
@@ -925,7 +931,7 @@ let gen = (function* _initGenerator () {
|
|
|
925
931
|
captureTable0.set(rep, ret);
|
|
926
932
|
handle3 = rscTableCreateOwn(handleTable0, rep);
|
|
927
933
|
}
|
|
928
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
934
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.subscribe"][Instruction::Return]', {
|
|
929
935
|
funcName: '[method]output-stream.subscribe',
|
|
930
936
|
paramCount: 1,
|
|
931
937
|
async: false,
|
|
@@ -940,10 +946,10 @@ let gen = (function* _initGenerator () {
|
|
|
940
946
|
handleTables[2] = handleTable2;
|
|
941
947
|
|
|
942
948
|
function trampoline10() {
|
|
943
|
-
_debugLog('[iface="wasi:cli/stdin@0.2.
|
|
949
|
+
_debugLog('[iface="wasi:cli/stdin@0.2.9", function="get-stdin"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
944
950
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'get-stdin');
|
|
945
951
|
const ret = getStdin();
|
|
946
|
-
_debugLog('[iface="wasi:cli/stdin@0.2.
|
|
952
|
+
_debugLog('[iface="wasi:cli/stdin@0.2.9", function="get-stdin"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
947
953
|
endCurrentTask(0);
|
|
948
954
|
if (!(ret instanceof InputStream)) {
|
|
949
955
|
throw new TypeError('Resource error: Not a valid "InputStream" resource.');
|
|
@@ -954,7 +960,7 @@ let gen = (function* _initGenerator () {
|
|
|
954
960
|
captureTable2.set(rep, ret);
|
|
955
961
|
handle0 = rscTableCreateOwn(handleTable2, rep);
|
|
956
962
|
}
|
|
957
|
-
_debugLog('[iface="wasi:cli/stdin@0.2.
|
|
963
|
+
_debugLog('[iface="wasi:cli/stdin@0.2.9", function="get-stdin"][Instruction::Return]', {
|
|
958
964
|
funcName: 'get-stdin',
|
|
959
965
|
paramCount: 1,
|
|
960
966
|
async: false,
|
|
@@ -965,10 +971,10 @@ let gen = (function* _initGenerator () {
|
|
|
965
971
|
|
|
966
972
|
|
|
967
973
|
function trampoline11() {
|
|
968
|
-
_debugLog('[iface="wasi:cli/stdout@0.2.
|
|
974
|
+
_debugLog('[iface="wasi:cli/stdout@0.2.9", function="get-stdout"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
969
975
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'get-stdout');
|
|
970
976
|
const ret = getStdout();
|
|
971
|
-
_debugLog('[iface="wasi:cli/stdout@0.2.
|
|
977
|
+
_debugLog('[iface="wasi:cli/stdout@0.2.9", function="get-stdout"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
972
978
|
endCurrentTask(0);
|
|
973
979
|
if (!(ret instanceof OutputStream)) {
|
|
974
980
|
throw new TypeError('Resource error: Not a valid "OutputStream" resource.');
|
|
@@ -979,7 +985,7 @@ let gen = (function* _initGenerator () {
|
|
|
979
985
|
captureTable3.set(rep, ret);
|
|
980
986
|
handle0 = rscTableCreateOwn(handleTable3, rep);
|
|
981
987
|
}
|
|
982
|
-
_debugLog('[iface="wasi:cli/stdout@0.2.
|
|
988
|
+
_debugLog('[iface="wasi:cli/stdout@0.2.9", function="get-stdout"][Instruction::Return]', {
|
|
983
989
|
funcName: 'get-stdout',
|
|
984
990
|
paramCount: 1,
|
|
985
991
|
async: false,
|
|
@@ -990,10 +996,10 @@ let gen = (function* _initGenerator () {
|
|
|
990
996
|
|
|
991
997
|
|
|
992
998
|
function trampoline12() {
|
|
993
|
-
_debugLog('[iface="wasi:cli/stderr@0.2.
|
|
999
|
+
_debugLog('[iface="wasi:cli/stderr@0.2.9", function="get-stderr"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
994
1000
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'get-stderr');
|
|
995
1001
|
const ret = getStderr();
|
|
996
|
-
_debugLog('[iface="wasi:cli/stderr@0.2.
|
|
1002
|
+
_debugLog('[iface="wasi:cli/stderr@0.2.9", function="get-stderr"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
997
1003
|
endCurrentTask(0);
|
|
998
1004
|
if (!(ret instanceof OutputStream)) {
|
|
999
1005
|
throw new TypeError('Resource error: Not a valid "OutputStream" resource.');
|
|
@@ -1004,7 +1010,7 @@ let gen = (function* _initGenerator () {
|
|
|
1004
1010
|
captureTable3.set(rep, ret);
|
|
1005
1011
|
handle0 = rscTableCreateOwn(handleTable3, rep);
|
|
1006
1012
|
}
|
|
1007
|
-
_debugLog('[iface="wasi:cli/stderr@0.2.
|
|
1013
|
+
_debugLog('[iface="wasi:cli/stderr@0.2.9", function="get-stderr"][Instruction::Return]', {
|
|
1008
1014
|
funcName: 'get-stderr',
|
|
1009
1015
|
paramCount: 1,
|
|
1010
1016
|
async: false,
|
|
@@ -1013,11 +1019,36 @@ let gen = (function* _initGenerator () {
|
|
|
1013
1019
|
return handle0;
|
|
1014
1020
|
}
|
|
1015
1021
|
|
|
1022
|
+
|
|
1023
|
+
function trampoline13(arg0) {
|
|
1024
|
+
_debugLog('[iface="wasi:clocks/monotonic-clock@0.2.9", function="subscribe-duration"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1025
|
+
const _interface_call_currentTaskID = startCurrentTask(0, false, 'subscribe-duration');
|
|
1026
|
+
const ret = subscribeDuration(BigInt.asUintN(64, arg0));
|
|
1027
|
+
_debugLog('[iface="wasi:clocks/monotonic-clock@0.2.9", function="subscribe-duration"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1028
|
+
endCurrentTask(0);
|
|
1029
|
+
if (!(ret instanceof Pollable)) {
|
|
1030
|
+
throw new TypeError('Resource error: Not a valid "Pollable" resource.');
|
|
1031
|
+
}
|
|
1032
|
+
var handle0 = ret[symbolRscHandle];
|
|
1033
|
+
if (!handle0) {
|
|
1034
|
+
const rep = ret[symbolRscRep] || ++captureCnt0;
|
|
1035
|
+
captureTable0.set(rep, ret);
|
|
1036
|
+
handle0 = rscTableCreateOwn(handleTable0, rep);
|
|
1037
|
+
}
|
|
1038
|
+
_debugLog('[iface="wasi:clocks/monotonic-clock@0.2.9", function="subscribe-duration"][Instruction::Return]', {
|
|
1039
|
+
funcName: 'subscribe-duration',
|
|
1040
|
+
paramCount: 1,
|
|
1041
|
+
async: false,
|
|
1042
|
+
postReturn: false
|
|
1043
|
+
});
|
|
1044
|
+
return handle0;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1016
1047
|
let exports1;
|
|
1017
1048
|
let memory0;
|
|
1018
1049
|
let realloc0;
|
|
1019
1050
|
|
|
1020
|
-
function
|
|
1051
|
+
function trampoline14(arg0, arg1, arg2) {
|
|
1021
1052
|
var ptr0 = arg0;
|
|
1022
1053
|
var len0 = arg1;
|
|
1023
1054
|
var result0 = utf8Decoder.decode(new Uint8Array(memory0.buffer, ptr0, len0));
|
|
@@ -1064,7 +1095,7 @@ let gen = (function* _initGenerator () {
|
|
|
1064
1095
|
}
|
|
1065
1096
|
|
|
1066
1097
|
|
|
1067
|
-
function
|
|
1098
|
+
function trampoline15(arg0, arg1, arg2) {
|
|
1068
1099
|
var ptr0 = arg0;
|
|
1069
1100
|
var len0 = arg1;
|
|
1070
1101
|
var result0 = utf8Decoder.decode(new Uint8Array(memory0.buffer, ptr0, len0));
|
|
@@ -1086,7 +1117,7 @@ let gen = (function* _initGenerator () {
|
|
|
1086
1117
|
}
|
|
1087
1118
|
|
|
1088
1119
|
|
|
1089
|
-
function
|
|
1120
|
+
function trampoline16(arg0, arg1, arg2) {
|
|
1090
1121
|
var ptr0 = arg0;
|
|
1091
1122
|
var len0 = arg1;
|
|
1092
1123
|
var result0 = utf8Decoder.decode(new Uint8Array(memory0.buffer, ptr0, len0));
|
|
@@ -1133,16 +1164,16 @@ let gen = (function* _initGenerator () {
|
|
|
1133
1164
|
}
|
|
1134
1165
|
|
|
1135
1166
|
|
|
1136
|
-
function
|
|
1137
|
-
_debugLog('[iface="wasi:random/insecure-seed@0.2.
|
|
1167
|
+
function trampoline17(arg0) {
|
|
1168
|
+
_debugLog('[iface="wasi:random/insecure-seed@0.2.9", function="insecure-seed"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1138
1169
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'insecure-seed');
|
|
1139
1170
|
const ret = insecureSeed();
|
|
1140
|
-
_debugLog('[iface="wasi:random/insecure-seed@0.2.
|
|
1171
|
+
_debugLog('[iface="wasi:random/insecure-seed@0.2.9", function="insecure-seed"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1141
1172
|
endCurrentTask(0);
|
|
1142
1173
|
var [tuple0_0, tuple0_1] = ret;
|
|
1143
1174
|
dataView(memory0).setBigInt64(arg0 + 0, toUint64(tuple0_0), true);
|
|
1144
1175
|
dataView(memory0).setBigInt64(arg0 + 8, toUint64(tuple0_1), true);
|
|
1145
|
-
_debugLog('[iface="wasi:random/insecure-seed@0.2.
|
|
1176
|
+
_debugLog('[iface="wasi:random/insecure-seed@0.2.9", function="insecure-seed"][Instruction::Return]', {
|
|
1146
1177
|
funcName: 'insecure-seed',
|
|
1147
1178
|
paramCount: 0,
|
|
1148
1179
|
async: false,
|
|
@@ -1150,12 +1181,54 @@ let gen = (function* _initGenerator () {
|
|
|
1150
1181
|
});
|
|
1151
1182
|
}
|
|
1152
1183
|
|
|
1184
|
+
|
|
1185
|
+
function trampoline18(arg0, arg1, arg2) {
|
|
1186
|
+
var len3 = arg1;
|
|
1187
|
+
var base3 = arg0;
|
|
1188
|
+
var result3 = [];
|
|
1189
|
+
for (let i = 0; i < len3; i++) {
|
|
1190
|
+
const base = base3 + i * 4;
|
|
1191
|
+
var handle1 = dataView(memory0).getInt32(base + 0, true);
|
|
1192
|
+
var rep2 = handleTable0[(handle1 << 1) + 1] & ~T_FLAG;
|
|
1193
|
+
var rsc0 = captureTable0.get(rep2);
|
|
1194
|
+
if (!rsc0) {
|
|
1195
|
+
rsc0 = Object.create(Pollable.prototype);
|
|
1196
|
+
Object.defineProperty(rsc0, symbolRscHandle, { writable: true, value: handle1});
|
|
1197
|
+
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
1198
|
+
}
|
|
1199
|
+
curResourceBorrows.push(rsc0);
|
|
1200
|
+
result3.push(rsc0);
|
|
1201
|
+
}
|
|
1202
|
+
_debugLog('[iface="wasi:io/poll@0.2.9", function="poll"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1203
|
+
const _interface_call_currentTaskID = startCurrentTask(0, false, 'poll');
|
|
1204
|
+
const ret = poll(result3);
|
|
1205
|
+
_debugLog('[iface="wasi:io/poll@0.2.9", function="poll"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1206
|
+
for (const rsc of curResourceBorrows) {
|
|
1207
|
+
rsc[symbolRscHandle] = undefined;
|
|
1208
|
+
}
|
|
1209
|
+
curResourceBorrows = [];
|
|
1210
|
+
endCurrentTask(0);
|
|
1211
|
+
var val4 = ret;
|
|
1212
|
+
var len4 = val4.length;
|
|
1213
|
+
var ptr4 = realloc0(0, 0, 4, len4 * 4);
|
|
1214
|
+
var src4 = new Uint8Array(val4.buffer, val4.byteOffset, len4 * 4);
|
|
1215
|
+
(new Uint8Array(memory0.buffer, ptr4, len4 * 4)).set(src4);
|
|
1216
|
+
dataView(memory0).setUint32(arg2 + 4, len4, true);
|
|
1217
|
+
dataView(memory0).setUint32(arg2 + 0, ptr4, true);
|
|
1218
|
+
_debugLog('[iface="wasi:io/poll@0.2.9", function="poll"][Instruction::Return]', {
|
|
1219
|
+
funcName: 'poll',
|
|
1220
|
+
paramCount: 0,
|
|
1221
|
+
async: false,
|
|
1222
|
+
postReturn: false
|
|
1223
|
+
});
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1153
1226
|
const handleTable1 = [T_FLAG, 0];
|
|
1154
1227
|
const captureTable1= new Map();
|
|
1155
1228
|
let captureCnt1 = 0;
|
|
1156
1229
|
handleTables[1] = handleTable1;
|
|
1157
1230
|
|
|
1158
|
-
function
|
|
1231
|
+
function trampoline19(arg0, arg1) {
|
|
1159
1232
|
var handle1 = arg0;
|
|
1160
1233
|
var rep2 = handleTable3[(handle1 << 1) + 1] & ~T_FLAG;
|
|
1161
1234
|
var rsc0 = captureTable3.get(rep2);
|
|
@@ -1165,7 +1238,7 @@ let gen = (function* _initGenerator () {
|
|
|
1165
1238
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
1166
1239
|
}
|
|
1167
1240
|
curResourceBorrows.push(rsc0);
|
|
1168
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1241
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.check-write"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1169
1242
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]output-stream.check-write');
|
|
1170
1243
|
let ret;
|
|
1171
1244
|
try {
|
|
@@ -1173,7 +1246,7 @@ let gen = (function* _initGenerator () {
|
|
|
1173
1246
|
} catch (e) {
|
|
1174
1247
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
1175
1248
|
}
|
|
1176
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1249
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.check-write"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1177
1250
|
for (const rsc of curResourceBorrows) {
|
|
1178
1251
|
rsc[symbolRscHandle] = undefined;
|
|
1179
1252
|
}
|
|
@@ -1221,7 +1294,7 @@ let gen = (function* _initGenerator () {
|
|
|
1221
1294
|
throw new TypeError('invalid variant specified for result');
|
|
1222
1295
|
}
|
|
1223
1296
|
}
|
|
1224
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1297
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.check-write"][Instruction::Return]', {
|
|
1225
1298
|
funcName: '[method]output-stream.check-write',
|
|
1226
1299
|
paramCount: 0,
|
|
1227
1300
|
async: false,
|
|
@@ -1230,7 +1303,7 @@ let gen = (function* _initGenerator () {
|
|
|
1230
1303
|
}
|
|
1231
1304
|
|
|
1232
1305
|
|
|
1233
|
-
function
|
|
1306
|
+
function trampoline20(arg0, arg1, arg2, arg3) {
|
|
1234
1307
|
var handle1 = arg0;
|
|
1235
1308
|
var rep2 = handleTable3[(handle1 << 1) + 1] & ~T_FLAG;
|
|
1236
1309
|
var rsc0 = captureTable3.get(rep2);
|
|
@@ -1243,7 +1316,7 @@ let gen = (function* _initGenerator () {
|
|
|
1243
1316
|
var ptr3 = arg1;
|
|
1244
1317
|
var len3 = arg2;
|
|
1245
1318
|
var result3 = new Uint8Array(memory0.buffer.slice(ptr3, ptr3 + len3 * 1));
|
|
1246
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1319
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.write"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1247
1320
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]output-stream.write');
|
|
1248
1321
|
let ret;
|
|
1249
1322
|
try {
|
|
@@ -1251,7 +1324,7 @@ let gen = (function* _initGenerator () {
|
|
|
1251
1324
|
} catch (e) {
|
|
1252
1325
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
1253
1326
|
}
|
|
1254
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1327
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.write"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1255
1328
|
for (const rsc of curResourceBorrows) {
|
|
1256
1329
|
rsc[symbolRscHandle] = undefined;
|
|
1257
1330
|
}
|
|
@@ -1298,7 +1371,7 @@ let gen = (function* _initGenerator () {
|
|
|
1298
1371
|
throw new TypeError('invalid variant specified for result');
|
|
1299
1372
|
}
|
|
1300
1373
|
}
|
|
1301
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1374
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.write"][Instruction::Return]', {
|
|
1302
1375
|
funcName: '[method]output-stream.write',
|
|
1303
1376
|
paramCount: 0,
|
|
1304
1377
|
async: false,
|
|
@@ -1307,7 +1380,7 @@ let gen = (function* _initGenerator () {
|
|
|
1307
1380
|
}
|
|
1308
1381
|
|
|
1309
1382
|
|
|
1310
|
-
function
|
|
1383
|
+
function trampoline21(arg0, arg1) {
|
|
1311
1384
|
var handle1 = arg0;
|
|
1312
1385
|
var rep2 = handleTable3[(handle1 << 1) + 1] & ~T_FLAG;
|
|
1313
1386
|
var rsc0 = captureTable3.get(rep2);
|
|
@@ -1317,7 +1390,7 @@ let gen = (function* _initGenerator () {
|
|
|
1317
1390
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
1318
1391
|
}
|
|
1319
1392
|
curResourceBorrows.push(rsc0);
|
|
1320
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1393
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.blocking-flush"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1321
1394
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]output-stream.blocking-flush');
|
|
1322
1395
|
let ret;
|
|
1323
1396
|
try {
|
|
@@ -1325,7 +1398,7 @@ let gen = (function* _initGenerator () {
|
|
|
1325
1398
|
} catch (e) {
|
|
1326
1399
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
1327
1400
|
}
|
|
1328
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1401
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.blocking-flush"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1329
1402
|
for (const rsc of curResourceBorrows) {
|
|
1330
1403
|
rsc[symbolRscHandle] = undefined;
|
|
1331
1404
|
}
|
|
@@ -1372,7 +1445,7 @@ let gen = (function* _initGenerator () {
|
|
|
1372
1445
|
throw new TypeError('invalid variant specified for result');
|
|
1373
1446
|
}
|
|
1374
1447
|
}
|
|
1375
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1448
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.blocking-flush"][Instruction::Return]', {
|
|
1376
1449
|
funcName: '[method]output-stream.blocking-flush',
|
|
1377
1450
|
paramCount: 0,
|
|
1378
1451
|
async: false,
|
|
@@ -1385,7 +1458,7 @@ let gen = (function* _initGenerator () {
|
|
|
1385
1458
|
let captureCnt6 = 0;
|
|
1386
1459
|
handleTables[6] = handleTable6;
|
|
1387
1460
|
|
|
1388
|
-
function
|
|
1461
|
+
function trampoline22(arg0, arg1, arg2) {
|
|
1389
1462
|
var handle1 = arg0;
|
|
1390
1463
|
var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
|
|
1391
1464
|
var rsc0 = captureTable6.get(rep2);
|
|
@@ -1395,7 +1468,7 @@ let gen = (function* _initGenerator () {
|
|
|
1395
1468
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
1396
1469
|
}
|
|
1397
1470
|
curResourceBorrows.push(rsc0);
|
|
1398
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
1471
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.read-via-stream"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1399
1472
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]descriptor.read-via-stream');
|
|
1400
1473
|
let ret;
|
|
1401
1474
|
try {
|
|
@@ -1403,7 +1476,7 @@ let gen = (function* _initGenerator () {
|
|
|
1403
1476
|
} catch (e) {
|
|
1404
1477
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
1405
1478
|
}
|
|
1406
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
1479
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.read-via-stream"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1407
1480
|
for (const rsc of curResourceBorrows) {
|
|
1408
1481
|
rsc[symbolRscHandle] = undefined;
|
|
1409
1482
|
}
|
|
@@ -1595,7 +1668,7 @@ let gen = (function* _initGenerator () {
|
|
|
1595
1668
|
throw new TypeError('invalid variant specified for result');
|
|
1596
1669
|
}
|
|
1597
1670
|
}
|
|
1598
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
1671
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.read-via-stream"][Instruction::Return]', {
|
|
1599
1672
|
funcName: '[method]descriptor.read-via-stream',
|
|
1600
1673
|
paramCount: 0,
|
|
1601
1674
|
async: false,
|
|
@@ -1604,7 +1677,7 @@ let gen = (function* _initGenerator () {
|
|
|
1604
1677
|
}
|
|
1605
1678
|
|
|
1606
1679
|
|
|
1607
|
-
function
|
|
1680
|
+
function trampoline23(arg0, arg1, arg2) {
|
|
1608
1681
|
var handle1 = arg0;
|
|
1609
1682
|
var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
|
|
1610
1683
|
var rsc0 = captureTable6.get(rep2);
|
|
@@ -1614,7 +1687,7 @@ let gen = (function* _initGenerator () {
|
|
|
1614
1687
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
1615
1688
|
}
|
|
1616
1689
|
curResourceBorrows.push(rsc0);
|
|
1617
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
1690
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.write-via-stream"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1618
1691
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]descriptor.write-via-stream');
|
|
1619
1692
|
let ret;
|
|
1620
1693
|
try {
|
|
@@ -1622,7 +1695,7 @@ let gen = (function* _initGenerator () {
|
|
|
1622
1695
|
} catch (e) {
|
|
1623
1696
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
1624
1697
|
}
|
|
1625
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
1698
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.write-via-stream"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1626
1699
|
for (const rsc of curResourceBorrows) {
|
|
1627
1700
|
rsc[symbolRscHandle] = undefined;
|
|
1628
1701
|
}
|
|
@@ -1814,7 +1887,7 @@ let gen = (function* _initGenerator () {
|
|
|
1814
1887
|
throw new TypeError('invalid variant specified for result');
|
|
1815
1888
|
}
|
|
1816
1889
|
}
|
|
1817
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
1890
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.write-via-stream"][Instruction::Return]', {
|
|
1818
1891
|
funcName: '[method]descriptor.write-via-stream',
|
|
1819
1892
|
paramCount: 0,
|
|
1820
1893
|
async: false,
|
|
@@ -1823,7 +1896,7 @@ let gen = (function* _initGenerator () {
|
|
|
1823
1896
|
}
|
|
1824
1897
|
|
|
1825
1898
|
|
|
1826
|
-
function
|
|
1899
|
+
function trampoline24(arg0, arg1) {
|
|
1827
1900
|
var handle1 = arg0;
|
|
1828
1901
|
var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
|
|
1829
1902
|
var rsc0 = captureTable6.get(rep2);
|
|
@@ -1833,7 +1906,7 @@ let gen = (function* _initGenerator () {
|
|
|
1833
1906
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
1834
1907
|
}
|
|
1835
1908
|
curResourceBorrows.push(rsc0);
|
|
1836
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
1909
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.append-via-stream"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1837
1910
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]descriptor.append-via-stream');
|
|
1838
1911
|
let ret;
|
|
1839
1912
|
try {
|
|
@@ -1841,7 +1914,7 @@ let gen = (function* _initGenerator () {
|
|
|
1841
1914
|
} catch (e) {
|
|
1842
1915
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
1843
1916
|
}
|
|
1844
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
1917
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.append-via-stream"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1845
1918
|
for (const rsc of curResourceBorrows) {
|
|
1846
1919
|
rsc[symbolRscHandle] = undefined;
|
|
1847
1920
|
}
|
|
@@ -2033,7 +2106,7 @@ let gen = (function* _initGenerator () {
|
|
|
2033
2106
|
throw new TypeError('invalid variant specified for result');
|
|
2034
2107
|
}
|
|
2035
2108
|
}
|
|
2036
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2109
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.append-via-stream"][Instruction::Return]', {
|
|
2037
2110
|
funcName: '[method]descriptor.append-via-stream',
|
|
2038
2111
|
paramCount: 0,
|
|
2039
2112
|
async: false,
|
|
@@ -2042,7 +2115,7 @@ let gen = (function* _initGenerator () {
|
|
|
2042
2115
|
}
|
|
2043
2116
|
|
|
2044
2117
|
|
|
2045
|
-
function
|
|
2118
|
+
function trampoline25(arg0, arg1) {
|
|
2046
2119
|
var handle1 = arg0;
|
|
2047
2120
|
var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
|
|
2048
2121
|
var rsc0 = captureTable6.get(rep2);
|
|
@@ -2052,7 +2125,7 @@ let gen = (function* _initGenerator () {
|
|
|
2052
2125
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
2053
2126
|
}
|
|
2054
2127
|
curResourceBorrows.push(rsc0);
|
|
2055
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2128
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.get-flags"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
2056
2129
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]descriptor.get-flags');
|
|
2057
2130
|
let ret;
|
|
2058
2131
|
try {
|
|
@@ -2060,7 +2133,7 @@ let gen = (function* _initGenerator () {
|
|
|
2060
2133
|
} catch (e) {
|
|
2061
2134
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
2062
2135
|
}
|
|
2063
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2136
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.get-flags"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
2064
2137
|
for (const rsc of curResourceBorrows) {
|
|
2065
2138
|
rsc[symbolRscHandle] = undefined;
|
|
2066
2139
|
}
|
|
@@ -2249,7 +2322,7 @@ let gen = (function* _initGenerator () {
|
|
|
2249
2322
|
throw new TypeError('invalid variant specified for result');
|
|
2250
2323
|
}
|
|
2251
2324
|
}
|
|
2252
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2325
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.get-flags"][Instruction::Return]', {
|
|
2253
2326
|
funcName: '[method]descriptor.get-flags',
|
|
2254
2327
|
paramCount: 0,
|
|
2255
2328
|
async: false,
|
|
@@ -2258,7 +2331,7 @@ let gen = (function* _initGenerator () {
|
|
|
2258
2331
|
}
|
|
2259
2332
|
|
|
2260
2333
|
|
|
2261
|
-
function
|
|
2334
|
+
function trampoline26(arg0, arg1) {
|
|
2262
2335
|
var handle1 = arg0;
|
|
2263
2336
|
var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
|
|
2264
2337
|
var rsc0 = captureTable6.get(rep2);
|
|
@@ -2268,7 +2341,7 @@ let gen = (function* _initGenerator () {
|
|
|
2268
2341
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
2269
2342
|
}
|
|
2270
2343
|
curResourceBorrows.push(rsc0);
|
|
2271
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2344
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.stat"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
2272
2345
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]descriptor.stat');
|
|
2273
2346
|
let ret;
|
|
2274
2347
|
try {
|
|
@@ -2276,7 +2349,7 @@ let gen = (function* _initGenerator () {
|
|
|
2276
2349
|
} catch (e) {
|
|
2277
2350
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
2278
2351
|
}
|
|
2279
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2352
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.stat"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
2280
2353
|
for (const rsc of curResourceBorrows) {
|
|
2281
2354
|
rsc[symbolRscHandle] = undefined;
|
|
2282
2355
|
}
|
|
@@ -2535,7 +2608,7 @@ let gen = (function* _initGenerator () {
|
|
|
2535
2608
|
throw new TypeError('invalid variant specified for result');
|
|
2536
2609
|
}
|
|
2537
2610
|
}
|
|
2538
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2611
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.stat"][Instruction::Return]', {
|
|
2539
2612
|
funcName: '[method]descriptor.stat',
|
|
2540
2613
|
paramCount: 0,
|
|
2541
2614
|
async: false,
|
|
@@ -2544,7 +2617,7 @@ let gen = (function* _initGenerator () {
|
|
|
2544
2617
|
}
|
|
2545
2618
|
|
|
2546
2619
|
|
|
2547
|
-
function
|
|
2620
|
+
function trampoline27(arg0, arg1, arg2, arg3, arg4) {
|
|
2548
2621
|
var handle1 = arg0;
|
|
2549
2622
|
var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
|
|
2550
2623
|
var rsc0 = captureTable6.get(rep2);
|
|
@@ -2563,7 +2636,7 @@ let gen = (function* _initGenerator () {
|
|
|
2563
2636
|
var ptr4 = arg2;
|
|
2564
2637
|
var len4 = arg3;
|
|
2565
2638
|
var result4 = utf8Decoder.decode(new Uint8Array(memory0.buffer, ptr4, len4));
|
|
2566
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2639
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.stat-at"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
2567
2640
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]descriptor.stat-at');
|
|
2568
2641
|
let ret;
|
|
2569
2642
|
try {
|
|
@@ -2571,7 +2644,7 @@ let gen = (function* _initGenerator () {
|
|
|
2571
2644
|
} catch (e) {
|
|
2572
2645
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
2573
2646
|
}
|
|
2574
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2647
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.stat-at"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
2575
2648
|
for (const rsc of curResourceBorrows) {
|
|
2576
2649
|
rsc[symbolRscHandle] = undefined;
|
|
2577
2650
|
}
|
|
@@ -2830,7 +2903,7 @@ let gen = (function* _initGenerator () {
|
|
|
2830
2903
|
throw new TypeError('invalid variant specified for result');
|
|
2831
2904
|
}
|
|
2832
2905
|
}
|
|
2833
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2906
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.stat-at"][Instruction::Return]', {
|
|
2834
2907
|
funcName: '[method]descriptor.stat-at',
|
|
2835
2908
|
paramCount: 0,
|
|
2836
2909
|
async: false,
|
|
@@ -2839,7 +2912,7 @@ let gen = (function* _initGenerator () {
|
|
|
2839
2912
|
}
|
|
2840
2913
|
|
|
2841
2914
|
|
|
2842
|
-
function
|
|
2915
|
+
function trampoline28(arg0, arg1) {
|
|
2843
2916
|
var handle1 = arg0;
|
|
2844
2917
|
var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
|
|
2845
2918
|
var rsc0 = captureTable6.get(rep2);
|
|
@@ -2849,7 +2922,7 @@ let gen = (function* _initGenerator () {
|
|
|
2849
2922
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
2850
2923
|
}
|
|
2851
2924
|
curResourceBorrows.push(rsc0);
|
|
2852
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2925
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.metadata-hash"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
2853
2926
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]descriptor.metadata-hash');
|
|
2854
2927
|
let ret;
|
|
2855
2928
|
try {
|
|
@@ -2857,7 +2930,7 @@ let gen = (function* _initGenerator () {
|
|
|
2857
2930
|
} catch (e) {
|
|
2858
2931
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
2859
2932
|
}
|
|
2860
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2933
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.metadata-hash"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
2861
2934
|
for (const rsc of curResourceBorrows) {
|
|
2862
2935
|
rsc[symbolRscHandle] = undefined;
|
|
2863
2936
|
}
|
|
@@ -3042,7 +3115,7 @@ let gen = (function* _initGenerator () {
|
|
|
3042
3115
|
throw new TypeError('invalid variant specified for result');
|
|
3043
3116
|
}
|
|
3044
3117
|
}
|
|
3045
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
3118
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.metadata-hash"][Instruction::Return]', {
|
|
3046
3119
|
funcName: '[method]descriptor.metadata-hash',
|
|
3047
3120
|
paramCount: 0,
|
|
3048
3121
|
async: false,
|
|
@@ -3051,7 +3124,7 @@ let gen = (function* _initGenerator () {
|
|
|
3051
3124
|
}
|
|
3052
3125
|
|
|
3053
3126
|
|
|
3054
|
-
function
|
|
3127
|
+
function trampoline29(arg0, arg1, arg2, arg3, arg4) {
|
|
3055
3128
|
var handle1 = arg0;
|
|
3056
3129
|
var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
|
|
3057
3130
|
var rsc0 = captureTable6.get(rep2);
|
|
@@ -3070,7 +3143,7 @@ let gen = (function* _initGenerator () {
|
|
|
3070
3143
|
var ptr4 = arg2;
|
|
3071
3144
|
var len4 = arg3;
|
|
3072
3145
|
var result4 = utf8Decoder.decode(new Uint8Array(memory0.buffer, ptr4, len4));
|
|
3073
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
3146
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.metadata-hash-at"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
3074
3147
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]descriptor.metadata-hash-at');
|
|
3075
3148
|
let ret;
|
|
3076
3149
|
try {
|
|
@@ -3078,7 +3151,7 @@ let gen = (function* _initGenerator () {
|
|
|
3078
3151
|
} catch (e) {
|
|
3079
3152
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
3080
3153
|
}
|
|
3081
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
3154
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.metadata-hash-at"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
3082
3155
|
for (const rsc of curResourceBorrows) {
|
|
3083
3156
|
rsc[symbolRscHandle] = undefined;
|
|
3084
3157
|
}
|
|
@@ -3263,7 +3336,7 @@ let gen = (function* _initGenerator () {
|
|
|
3263
3336
|
throw new TypeError('invalid variant specified for result');
|
|
3264
3337
|
}
|
|
3265
3338
|
}
|
|
3266
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
3339
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.metadata-hash-at"][Instruction::Return]', {
|
|
3267
3340
|
funcName: '[method]descriptor.metadata-hash-at',
|
|
3268
3341
|
paramCount: 0,
|
|
3269
3342
|
async: false,
|
|
@@ -3272,11 +3345,11 @@ let gen = (function* _initGenerator () {
|
|
|
3272
3345
|
}
|
|
3273
3346
|
|
|
3274
3347
|
|
|
3275
|
-
function
|
|
3276
|
-
_debugLog('[iface="wasi:cli/environment@0.2.
|
|
3348
|
+
function trampoline30(arg0) {
|
|
3349
|
+
_debugLog('[iface="wasi:cli/environment@0.2.9", function="get-environment"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
3277
3350
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'get-environment');
|
|
3278
3351
|
const ret = getEnvironment();
|
|
3279
|
-
_debugLog('[iface="wasi:cli/environment@0.2.
|
|
3352
|
+
_debugLog('[iface="wasi:cli/environment@0.2.9", function="get-environment"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
3280
3353
|
endCurrentTask(0);
|
|
3281
3354
|
var vec3 = ret;
|
|
3282
3355
|
var len3 = vec3.length;
|
|
@@ -3295,7 +3368,7 @@ let gen = (function* _initGenerator () {
|
|
|
3295
3368
|
}
|
|
3296
3369
|
dataView(memory0).setUint32(arg0 + 4, len3, true);
|
|
3297
3370
|
dataView(memory0).setUint32(arg0 + 0, result3, true);
|
|
3298
|
-
_debugLog('[iface="wasi:cli/environment@0.2.
|
|
3371
|
+
_debugLog('[iface="wasi:cli/environment@0.2.9", function="get-environment"][Instruction::Return]', {
|
|
3299
3372
|
funcName: 'get-environment',
|
|
3300
3373
|
paramCount: 0,
|
|
3301
3374
|
async: false,
|
|
@@ -3308,11 +3381,11 @@ let gen = (function* _initGenerator () {
|
|
|
3308
3381
|
let captureCnt4 = 0;
|
|
3309
3382
|
handleTables[4] = handleTable4;
|
|
3310
3383
|
|
|
3311
|
-
function
|
|
3312
|
-
_debugLog('[iface="wasi:cli/terminal-stdin@0.2.
|
|
3384
|
+
function trampoline31(arg0) {
|
|
3385
|
+
_debugLog('[iface="wasi:cli/terminal-stdin@0.2.9", function="get-terminal-stdin"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
3313
3386
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'get-terminal-stdin');
|
|
3314
3387
|
const ret = getTerminalStdin();
|
|
3315
|
-
_debugLog('[iface="wasi:cli/terminal-stdin@0.2.
|
|
3388
|
+
_debugLog('[iface="wasi:cli/terminal-stdin@0.2.9", function="get-terminal-stdin"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
3316
3389
|
endCurrentTask(0);
|
|
3317
3390
|
var variant1 = ret;
|
|
3318
3391
|
if (variant1 === null || variant1=== undefined) {
|
|
@@ -3331,7 +3404,7 @@ let gen = (function* _initGenerator () {
|
|
|
3331
3404
|
}
|
|
3332
3405
|
dataView(memory0).setInt32(arg0 + 4, handle0, true);
|
|
3333
3406
|
}
|
|
3334
|
-
_debugLog('[iface="wasi:cli/terminal-stdin@0.2.
|
|
3407
|
+
_debugLog('[iface="wasi:cli/terminal-stdin@0.2.9", function="get-terminal-stdin"][Instruction::Return]', {
|
|
3335
3408
|
funcName: 'get-terminal-stdin',
|
|
3336
3409
|
paramCount: 0,
|
|
3337
3410
|
async: false,
|
|
@@ -3344,11 +3417,11 @@ let gen = (function* _initGenerator () {
|
|
|
3344
3417
|
let captureCnt5 = 0;
|
|
3345
3418
|
handleTables[5] = handleTable5;
|
|
3346
3419
|
|
|
3347
|
-
function
|
|
3348
|
-
_debugLog('[iface="wasi:cli/terminal-stdout@0.2.
|
|
3420
|
+
function trampoline32(arg0) {
|
|
3421
|
+
_debugLog('[iface="wasi:cli/terminal-stdout@0.2.9", function="get-terminal-stdout"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
3349
3422
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'get-terminal-stdout');
|
|
3350
3423
|
const ret = getTerminalStdout();
|
|
3351
|
-
_debugLog('[iface="wasi:cli/terminal-stdout@0.2.
|
|
3424
|
+
_debugLog('[iface="wasi:cli/terminal-stdout@0.2.9", function="get-terminal-stdout"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
3352
3425
|
endCurrentTask(0);
|
|
3353
3426
|
var variant1 = ret;
|
|
3354
3427
|
if (variant1 === null || variant1=== undefined) {
|
|
@@ -3367,7 +3440,7 @@ let gen = (function* _initGenerator () {
|
|
|
3367
3440
|
}
|
|
3368
3441
|
dataView(memory0).setInt32(arg0 + 4, handle0, true);
|
|
3369
3442
|
}
|
|
3370
|
-
_debugLog('[iface="wasi:cli/terminal-stdout@0.2.
|
|
3443
|
+
_debugLog('[iface="wasi:cli/terminal-stdout@0.2.9", function="get-terminal-stdout"][Instruction::Return]', {
|
|
3371
3444
|
funcName: 'get-terminal-stdout',
|
|
3372
3445
|
paramCount: 0,
|
|
3373
3446
|
async: false,
|
|
@@ -3376,11 +3449,11 @@ let gen = (function* _initGenerator () {
|
|
|
3376
3449
|
}
|
|
3377
3450
|
|
|
3378
3451
|
|
|
3379
|
-
function
|
|
3380
|
-
_debugLog('[iface="wasi:cli/terminal-stderr@0.2.
|
|
3452
|
+
function trampoline33(arg0) {
|
|
3453
|
+
_debugLog('[iface="wasi:cli/terminal-stderr@0.2.9", function="get-terminal-stderr"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
3381
3454
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'get-terminal-stderr');
|
|
3382
3455
|
const ret = getTerminalStderr();
|
|
3383
|
-
_debugLog('[iface="wasi:cli/terminal-stderr@0.2.
|
|
3456
|
+
_debugLog('[iface="wasi:cli/terminal-stderr@0.2.9", function="get-terminal-stderr"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
3384
3457
|
endCurrentTask(0);
|
|
3385
3458
|
var variant1 = ret;
|
|
3386
3459
|
if (variant1 === null || variant1=== undefined) {
|
|
@@ -3399,7 +3472,7 @@ let gen = (function* _initGenerator () {
|
|
|
3399
3472
|
}
|
|
3400
3473
|
dataView(memory0).setInt32(arg0 + 4, handle0, true);
|
|
3401
3474
|
}
|
|
3402
|
-
_debugLog('[iface="wasi:cli/terminal-stderr@0.2.
|
|
3475
|
+
_debugLog('[iface="wasi:cli/terminal-stderr@0.2.9", function="get-terminal-stderr"][Instruction::Return]', {
|
|
3403
3476
|
funcName: 'get-terminal-stderr',
|
|
3404
3477
|
paramCount: 0,
|
|
3405
3478
|
async: false,
|
|
@@ -3408,11 +3481,11 @@ let gen = (function* _initGenerator () {
|
|
|
3408
3481
|
}
|
|
3409
3482
|
|
|
3410
3483
|
|
|
3411
|
-
function
|
|
3412
|
-
_debugLog('[iface="wasi:filesystem/preopens@0.2.
|
|
3484
|
+
function trampoline34(arg0) {
|
|
3485
|
+
_debugLog('[iface="wasi:filesystem/preopens@0.2.9", function="get-directories"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
3413
3486
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'get-directories');
|
|
3414
3487
|
const ret = getDirectories();
|
|
3415
|
-
_debugLog('[iface="wasi:filesystem/preopens@0.2.
|
|
3488
|
+
_debugLog('[iface="wasi:filesystem/preopens@0.2.9", function="get-directories"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
3416
3489
|
endCurrentTask(0);
|
|
3417
3490
|
var vec3 = ret;
|
|
3418
3491
|
var len3 = vec3.length;
|
|
@@ -3437,7 +3510,7 @@ let gen = (function* _initGenerator () {
|
|
|
3437
3510
|
}
|
|
3438
3511
|
dataView(memory0).setUint32(arg0 + 4, len3, true);
|
|
3439
3512
|
dataView(memory0).setUint32(arg0 + 0, result3, true);
|
|
3440
|
-
_debugLog('[iface="wasi:filesystem/preopens@0.2.
|
|
3513
|
+
_debugLog('[iface="wasi:filesystem/preopens@0.2.9", function="get-directories"][Instruction::Return]', {
|
|
3441
3514
|
funcName: 'get-directories',
|
|
3442
3515
|
paramCount: 0,
|
|
3443
3516
|
async: false,
|
|
@@ -3453,6 +3526,7 @@ let gen = (function* _initGenerator () {
|
|
|
3453
3526
|
let postReturn4;
|
|
3454
3527
|
let postReturn5;
|
|
3455
3528
|
let postReturn6;
|
|
3529
|
+
let postReturn7;
|
|
3456
3530
|
function trampoline0(handle) {
|
|
3457
3531
|
const handleEntry = rscTableRemove(handleTable1, handle);
|
|
3458
3532
|
if (handleEntry.own) {
|
|
@@ -3553,7 +3627,7 @@ let gen = (function* _initGenerator () {
|
|
|
3553
3627
|
'read-file': exports0['0'],
|
|
3554
3628
|
},
|
|
3555
3629
|
'wasi:cli/environment@0.2.0': {
|
|
3556
|
-
'get-environment': exports0['
|
|
3630
|
+
'get-environment': exports0['16'],
|
|
3557
3631
|
},
|
|
3558
3632
|
'wasi:cli/exit@0.2.0': {
|
|
3559
3633
|
exit: trampoline7,
|
|
@@ -3574,26 +3648,29 @@ let gen = (function* _initGenerator () {
|
|
|
3574
3648
|
'[resource-drop]terminal-output': trampoline5,
|
|
3575
3649
|
},
|
|
3576
3650
|
'wasi:cli/terminal-stderr@0.2.0': {
|
|
3577
|
-
'get-terminal-stderr': exports0['
|
|
3651
|
+
'get-terminal-stderr': exports0['19'],
|
|
3578
3652
|
},
|
|
3579
3653
|
'wasi:cli/terminal-stdin@0.2.0': {
|
|
3580
|
-
'get-terminal-stdin': exports0['
|
|
3654
|
+
'get-terminal-stdin': exports0['17'],
|
|
3581
3655
|
},
|
|
3582
3656
|
'wasi:cli/terminal-stdout@0.2.0': {
|
|
3583
|
-
'get-terminal-stdout': exports0['
|
|
3657
|
+
'get-terminal-stdout': exports0['18'],
|
|
3658
|
+
},
|
|
3659
|
+
'wasi:clocks/monotonic-clock@0.2.0': {
|
|
3660
|
+
'subscribe-duration': trampoline13,
|
|
3584
3661
|
},
|
|
3585
3662
|
'wasi:filesystem/preopens@0.2.0': {
|
|
3586
|
-
'get-directories': exports0['
|
|
3663
|
+
'get-directories': exports0['20'],
|
|
3587
3664
|
},
|
|
3588
3665
|
'wasi:filesystem/types@0.2.0': {
|
|
3589
|
-
'[method]descriptor.append-via-stream': exports0['
|
|
3590
|
-
'[method]descriptor.get-flags': exports0['
|
|
3591
|
-
'[method]descriptor.metadata-hash': exports0['
|
|
3592
|
-
'[method]descriptor.metadata-hash-at': exports0['
|
|
3593
|
-
'[method]descriptor.read-via-stream': exports0['
|
|
3594
|
-
'[method]descriptor.stat': exports0['
|
|
3595
|
-
'[method]descriptor.stat-at': exports0['
|
|
3596
|
-
'[method]descriptor.write-via-stream': exports0['
|
|
3666
|
+
'[method]descriptor.append-via-stream': exports0['10'],
|
|
3667
|
+
'[method]descriptor.get-flags': exports0['11'],
|
|
3668
|
+
'[method]descriptor.metadata-hash': exports0['14'],
|
|
3669
|
+
'[method]descriptor.metadata-hash-at': exports0['15'],
|
|
3670
|
+
'[method]descriptor.read-via-stream': exports0['8'],
|
|
3671
|
+
'[method]descriptor.stat': exports0['12'],
|
|
3672
|
+
'[method]descriptor.stat-at': exports0['13'],
|
|
3673
|
+
'[method]descriptor.write-via-stream': exports0['9'],
|
|
3597
3674
|
'[resource-drop]descriptor': trampoline6,
|
|
3598
3675
|
},
|
|
3599
3676
|
'wasi:io/error@0.2.0': {
|
|
@@ -3602,16 +3679,17 @@ let gen = (function* _initGenerator () {
|
|
|
3602
3679
|
'wasi:io/poll@0.2.0': {
|
|
3603
3680
|
'[method]pollable.block': trampoline8,
|
|
3604
3681
|
'[resource-drop]pollable': trampoline1,
|
|
3682
|
+
poll: exports0['4'],
|
|
3605
3683
|
},
|
|
3606
3684
|
'wasi:io/streams@0.2.0': {
|
|
3607
|
-
'[method]output-stream.blocking-flush': exports0['
|
|
3608
|
-
'[method]output-stream.check-write': exports0['
|
|
3685
|
+
'[method]output-stream.blocking-flush': exports0['7'],
|
|
3686
|
+
'[method]output-stream.check-write': exports0['5'],
|
|
3609
3687
|
'[method]output-stream.subscribe': trampoline9,
|
|
3610
|
-
'[method]output-stream.write': exports0['
|
|
3688
|
+
'[method]output-stream.write': exports0['6'],
|
|
3611
3689
|
'[resource-drop]input-stream': trampoline2,
|
|
3612
3690
|
'[resource-drop]output-stream': trampoline3,
|
|
3613
3691
|
},
|
|
3614
|
-
'wasi:random/insecure-seed@0.2.
|
|
3692
|
+
'wasi:random/insecure-seed@0.2.9': {
|
|
3615
3693
|
'insecure-seed': exports0['3'],
|
|
3616
3694
|
},
|
|
3617
3695
|
}));
|
|
@@ -3620,35 +3698,37 @@ let gen = (function* _initGenerator () {
|
|
|
3620
3698
|
({ exports: exports2 } = yield instantiateCore(yield module2, {
|
|
3621
3699
|
'': {
|
|
3622
3700
|
$imports: exports0.$imports,
|
|
3623
|
-
'0':
|
|
3624
|
-
'1':
|
|
3625
|
-
'10':
|
|
3626
|
-
'11':
|
|
3627
|
-
'12':
|
|
3628
|
-
'13':
|
|
3629
|
-
'14':
|
|
3630
|
-
'15':
|
|
3631
|
-
'16':
|
|
3632
|
-
'17':
|
|
3633
|
-
'18':
|
|
3634
|
-
'19':
|
|
3635
|
-
'2':
|
|
3636
|
-
'
|
|
3637
|
-
'
|
|
3638
|
-
'
|
|
3639
|
-
'
|
|
3640
|
-
'
|
|
3641
|
-
'
|
|
3642
|
-
'
|
|
3701
|
+
'0': trampoline14,
|
|
3702
|
+
'1': trampoline15,
|
|
3703
|
+
'10': trampoline24,
|
|
3704
|
+
'11': trampoline25,
|
|
3705
|
+
'12': trampoline26,
|
|
3706
|
+
'13': trampoline27,
|
|
3707
|
+
'14': trampoline28,
|
|
3708
|
+
'15': trampoline29,
|
|
3709
|
+
'16': trampoline30,
|
|
3710
|
+
'17': trampoline31,
|
|
3711
|
+
'18': trampoline32,
|
|
3712
|
+
'19': trampoline33,
|
|
3713
|
+
'2': trampoline16,
|
|
3714
|
+
'20': trampoline34,
|
|
3715
|
+
'3': trampoline17,
|
|
3716
|
+
'4': trampoline18,
|
|
3717
|
+
'5': trampoline19,
|
|
3718
|
+
'6': trampoline20,
|
|
3719
|
+
'7': trampoline21,
|
|
3720
|
+
'8': trampoline22,
|
|
3721
|
+
'9': trampoline23,
|
|
3643
3722
|
},
|
|
3644
3723
|
}));
|
|
3645
3724
|
postReturn0 = exports1['cabi_post_evaluate-marker'];
|
|
3646
|
-
postReturn1 = exports1['
|
|
3647
|
-
postReturn2 = exports1['cabi_post_parse-
|
|
3648
|
-
postReturn3 = exports1['cabi_post_parse-
|
|
3649
|
-
postReturn4 = exports1['
|
|
3650
|
-
postReturn5 = exports1['
|
|
3651
|
-
postReturn6 = exports1['cabi_post_parse-
|
|
3725
|
+
postReturn1 = exports1['cabi_post_extract-imports'];
|
|
3726
|
+
postReturn2 = exports1['cabi_post_parse-dist-metadata'];
|
|
3727
|
+
postReturn3 = exports1['cabi_post_parse-record'];
|
|
3728
|
+
postReturn4 = exports1['cabi_post_parse-direct-url'];
|
|
3729
|
+
postReturn5 = exports1['cabi_post_normalize-package-name'];
|
|
3730
|
+
postReturn6 = exports1['cabi_post_parse-requirements-txt'];
|
|
3731
|
+
postReturn7 = exports1['cabi_post_parse-pep508'];
|
|
3652
3732
|
let exports1FindAppOrHandler;
|
|
3653
3733
|
|
|
3654
3734
|
function findAppOrHandler(arg0) {
|
|
@@ -3768,6 +3848,77 @@ let gen = (function* _initGenerator () {
|
|
|
3768
3848
|
});
|
|
3769
3849
|
return bool2 == 0 ? false : (bool2 == 1 ? true : throwInvalidBool());
|
|
3770
3850
|
}
|
|
3851
|
+
let exports1ExtractImports;
|
|
3852
|
+
|
|
3853
|
+
function extractImports(arg0) {
|
|
3854
|
+
var ptr0 = utf8Encode(arg0, realloc0, memory0);
|
|
3855
|
+
var len0 = utf8EncodedLen;
|
|
3856
|
+
_debugLog('[iface="extract-imports", function="extract-imports"][Instruction::CallWasm] enter', {
|
|
3857
|
+
funcName: 'extract-imports',
|
|
3858
|
+
paramCount: 2,
|
|
3859
|
+
async: false,
|
|
3860
|
+
postReturn: true,
|
|
3861
|
+
});
|
|
3862
|
+
const _wasm_call_currentTaskID = startCurrentTask(0, false, 'exports1ExtractImports');
|
|
3863
|
+
const ret = exports1ExtractImports(ptr0, len0);
|
|
3864
|
+
endCurrentTask(0);
|
|
3865
|
+
var len7 = dataView(memory0).getUint32(ret + 4, true);
|
|
3866
|
+
var base7 = dataView(memory0).getUint32(ret + 0, true);
|
|
3867
|
+
var result7 = [];
|
|
3868
|
+
for (let i = 0; i < len7; i++) {
|
|
3869
|
+
const base = base7 + i * 28;
|
|
3870
|
+
let variant2;
|
|
3871
|
+
switch (dataView(memory0).getUint8(base + 0, true)) {
|
|
3872
|
+
case 0: {
|
|
3873
|
+
variant2 = undefined;
|
|
3874
|
+
break;
|
|
3875
|
+
}
|
|
3876
|
+
case 1: {
|
|
3877
|
+
var ptr1 = dataView(memory0).getUint32(base + 4, true);
|
|
3878
|
+
var len1 = dataView(memory0).getUint32(base + 8, true);
|
|
3879
|
+
var result1 = utf8Decoder.decode(new Uint8Array(memory0.buffer, ptr1, len1));
|
|
3880
|
+
variant2 = result1;
|
|
3881
|
+
break;
|
|
3882
|
+
}
|
|
3883
|
+
default: {
|
|
3884
|
+
throw new TypeError('invalid variant discriminant for option');
|
|
3885
|
+
}
|
|
3886
|
+
}
|
|
3887
|
+
var len4 = dataView(memory0).getUint32(base + 20, true);
|
|
3888
|
+
var base4 = dataView(memory0).getUint32(base + 16, true);
|
|
3889
|
+
var result4 = [];
|
|
3890
|
+
for (let i = 0; i < len4; i++) {
|
|
3891
|
+
const base = base4 + i * 8;
|
|
3892
|
+
var ptr3 = dataView(memory0).getUint32(base + 0, true);
|
|
3893
|
+
var len3 = dataView(memory0).getUint32(base + 4, true);
|
|
3894
|
+
var result3 = utf8Decoder.decode(new Uint8Array(memory0.buffer, ptr3, len3));
|
|
3895
|
+
result4.push(result3);
|
|
3896
|
+
}
|
|
3897
|
+
var bool5 = dataView(memory0).getUint8(base + 24, true);
|
|
3898
|
+
var bool6 = dataView(memory0).getUint8(base + 25, true);
|
|
3899
|
+
result7.push({
|
|
3900
|
+
module: variant2,
|
|
3901
|
+
level: clampGuest(dataView(memory0).getUint8(base + 12, true), 0, 255),
|
|
3902
|
+
names: result4,
|
|
3903
|
+
isModuleLevel: bool5 == 0 ? false : (bool5 == 1 ? true : throwInvalidBool()),
|
|
3904
|
+
inTypeChecking: bool6 == 0 ? false : (bool6 == 1 ? true : throwInvalidBool()),
|
|
3905
|
+
});
|
|
3906
|
+
}
|
|
3907
|
+
_debugLog('[iface="extract-imports", function="extract-imports"][Instruction::Return]', {
|
|
3908
|
+
funcName: 'extract-imports',
|
|
3909
|
+
paramCount: 1,
|
|
3910
|
+
async: false,
|
|
3911
|
+
postReturn: true
|
|
3912
|
+
});
|
|
3913
|
+
const retCopy = result7;
|
|
3914
|
+
|
|
3915
|
+
let cstate = getOrCreateAsyncState(0);
|
|
3916
|
+
cstate.mayLeave = false;
|
|
3917
|
+
postReturn1(ret);
|
|
3918
|
+
cstate.mayLeave = true;
|
|
3919
|
+
return retCopy;
|
|
3920
|
+
|
|
3921
|
+
}
|
|
3771
3922
|
let exports1ParseDistMetadata;
|
|
3772
3923
|
|
|
3773
3924
|
function parseDistMetadata(arg0) {
|
|
@@ -4098,7 +4249,7 @@ let gen = (function* _initGenerator () {
|
|
|
4098
4249
|
|
|
4099
4250
|
let cstate = getOrCreateAsyncState(0);
|
|
4100
4251
|
cstate.mayLeave = false;
|
|
4101
|
-
|
|
4252
|
+
postReturn2(ret);
|
|
4102
4253
|
cstate.mayLeave = true;
|
|
4103
4254
|
|
|
4104
4255
|
|
|
@@ -4201,7 +4352,7 @@ let gen = (function* _initGenerator () {
|
|
|
4201
4352
|
|
|
4202
4353
|
let cstate = getOrCreateAsyncState(0);
|
|
4203
4354
|
cstate.mayLeave = false;
|
|
4204
|
-
|
|
4355
|
+
postReturn3(ret);
|
|
4205
4356
|
cstate.mayLeave = true;
|
|
4206
4357
|
|
|
4207
4358
|
|
|
@@ -4361,7 +4512,7 @@ let gen = (function* _initGenerator () {
|
|
|
4361
4512
|
|
|
4362
4513
|
let cstate = getOrCreateAsyncState(0);
|
|
4363
4514
|
cstate.mayLeave = false;
|
|
4364
|
-
|
|
4515
|
+
postReturn4(ret);
|
|
4365
4516
|
cstate.mayLeave = true;
|
|
4366
4517
|
|
|
4367
4518
|
|
|
@@ -4399,7 +4550,7 @@ let gen = (function* _initGenerator () {
|
|
|
4399
4550
|
|
|
4400
4551
|
let cstate = getOrCreateAsyncState(0);
|
|
4401
4552
|
cstate.mayLeave = false;
|
|
4402
|
-
|
|
4553
|
+
postReturn5(ret);
|
|
4403
4554
|
cstate.mayLeave = true;
|
|
4404
4555
|
return retCopy;
|
|
4405
4556
|
|
|
@@ -4856,7 +5007,7 @@ let gen = (function* _initGenerator () {
|
|
|
4856
5007
|
|
|
4857
5008
|
let cstate = getOrCreateAsyncState(0);
|
|
4858
5009
|
cstate.mayLeave = false;
|
|
4859
|
-
|
|
5010
|
+
postReturn6(ret);
|
|
4860
5011
|
cstate.mayLeave = true;
|
|
4861
5012
|
|
|
4862
5013
|
|
|
@@ -5071,7 +5222,7 @@ let gen = (function* _initGenerator () {
|
|
|
5071
5222
|
|
|
5072
5223
|
let cstate = getOrCreateAsyncState(0);
|
|
5073
5224
|
cstate.mayLeave = false;
|
|
5074
|
-
|
|
5225
|
+
postReturn7(ret);
|
|
5075
5226
|
cstate.mayLeave = true;
|
|
5076
5227
|
|
|
5077
5228
|
|
|
@@ -5211,6 +5362,7 @@ let gen = (function* _initGenerator () {
|
|
|
5211
5362
|
exports1FindAppOrHandler = exports1['find-app-or-handler'];
|
|
5212
5363
|
exports1GetStringConstant = exports1['get-string-constant'];
|
|
5213
5364
|
exports1ContainsTopLevelCallable = exports1['contains-top-level-callable'];
|
|
5365
|
+
exports1ExtractImports = exports1['extract-imports'];
|
|
5214
5366
|
exports1ParseDistMetadata = exports1['parse-dist-metadata'];
|
|
5215
5367
|
exports1ParseRecord = exports1['parse-record'];
|
|
5216
5368
|
exports1ParseDirectUrl = exports1['parse-direct-url'];
|
|
@@ -5220,7 +5372,7 @@ let gen = (function* _initGenerator () {
|
|
|
5220
5372
|
exports1IsWheelCompatible = exports1['is-wheel-compatible'];
|
|
5221
5373
|
exports1EvaluateMarker = exports1['evaluate-marker'];
|
|
5222
5374
|
|
|
5223
|
-
return { containsTopLevelCallable, evaluateMarker, findAppOrHandler, getStringConstant, isWheelCompatible, normalizePackageName, parseDirectUrl, parseDistMetadata, parsePep508, parseRecord, parseRequirementsTxt, };
|
|
5375
|
+
return { containsTopLevelCallable, evaluateMarker, extractImports, findAppOrHandler, getStringConstant, isWheelCompatible, normalizePackageName, parseDirectUrl, parseDistMetadata, parsePep508, parseRecord, parseRequirementsTxt, };
|
|
5224
5376
|
})();
|
|
5225
5377
|
let promise, resolve, reject;
|
|
5226
5378
|
function runNext (value) {
|