@noir-lang/noirc_abi 0.30.0-e4eb5f5.nightly → 0.30.0-e73cdbb.nightly
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/nodejs/noirc_abi_wasm.js +45 -45
- package/nodejs/noirc_abi_wasm_bg.wasm +0 -0
- package/package.json +2 -2
- package/web/noirc_abi_wasm.js +42 -42
- package/web/noirc_abi_wasm_bg.wasm +0 -0
package/nodejs/noirc_abi_wasm.js
CHANGED
|
@@ -9,17 +9,30 @@ heap.push(undefined, null, true, false);
|
|
|
9
9
|
|
|
10
10
|
function getObject(idx) { return heap[idx]; }
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
function isLikeNone(x) {
|
|
13
|
+
return x === undefined || x === null;
|
|
14
|
+
}
|
|
13
15
|
|
|
14
|
-
|
|
15
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
16
|
-
const idx = heap_next;
|
|
17
|
-
heap_next = heap[idx];
|
|
16
|
+
let cachedFloat64Memory0 = null;
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
function getFloat64Memory0() {
|
|
19
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
20
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
21
|
+
}
|
|
22
|
+
return cachedFloat64Memory0;
|
|
21
23
|
}
|
|
22
24
|
|
|
25
|
+
let cachedInt32Memory0 = null;
|
|
26
|
+
|
|
27
|
+
function getInt32Memory0() {
|
|
28
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
29
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
30
|
+
}
|
|
31
|
+
return cachedInt32Memory0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
let heap_next = heap.length;
|
|
35
|
+
|
|
23
36
|
function dropObject(idx) {
|
|
24
37
|
if (idx < 132) return;
|
|
25
38
|
heap[idx] = heap_next;
|
|
@@ -96,26 +109,13 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
96
109
|
return ptr;
|
|
97
110
|
}
|
|
98
111
|
|
|
99
|
-
function
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
let cachedInt32Memory0 = null;
|
|
104
|
-
|
|
105
|
-
function getInt32Memory0() {
|
|
106
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
107
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
108
|
-
}
|
|
109
|
-
return cachedInt32Memory0;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
let cachedFloat64Memory0 = null;
|
|
112
|
+
function addHeapObject(obj) {
|
|
113
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
114
|
+
const idx = heap_next;
|
|
115
|
+
heap_next = heap[idx];
|
|
113
116
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
117
|
-
}
|
|
118
|
-
return cachedFloat64Memory0;
|
|
117
|
+
heap[idx] = obj;
|
|
118
|
+
return idx;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
@@ -229,6 +229,17 @@ function handleError(f, args) {
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
+
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
233
|
+
const obj = getObject(arg1);
|
|
234
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
235
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
236
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
240
|
+
takeObject(arg0);
|
|
241
|
+
};
|
|
242
|
+
|
|
232
243
|
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
233
244
|
const ret = getObject(arg0) === undefined;
|
|
234
245
|
return ret;
|
|
@@ -239,20 +250,6 @@ module.exports.__wbg_constructor_f316a911c89e6ad1 = function(arg0) {
|
|
|
239
250
|
return addHeapObject(ret);
|
|
240
251
|
};
|
|
241
252
|
|
|
242
|
-
module.exports.__wbg_new_c532f61074fa67e0 = function() {
|
|
243
|
-
const ret = new Map();
|
|
244
|
-
return addHeapObject(ret);
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
module.exports.__wbindgen_number_new = function(arg0) {
|
|
248
|
-
const ret = arg0;
|
|
249
|
-
return addHeapObject(ret);
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
253
|
-
takeObject(arg0);
|
|
254
|
-
};
|
|
255
|
-
|
|
256
253
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
257
254
|
const obj = getObject(arg1);
|
|
258
255
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -262,11 +259,14 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
262
259
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
263
260
|
};
|
|
264
261
|
|
|
265
|
-
module.exports.
|
|
266
|
-
const
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
262
|
+
module.exports.__wbg_new_c532f61074fa67e0 = function() {
|
|
263
|
+
const ret = new Map();
|
|
264
|
+
return addHeapObject(ret);
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
268
|
+
const ret = arg0;
|
|
269
|
+
return addHeapObject(ret);
|
|
270
270
|
};
|
|
271
271
|
|
|
272
272
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"contributors": [
|
|
4
4
|
"The Noir Team <team@noir-lang.org>"
|
|
5
5
|
],
|
|
6
|
-
"version": "0.30.0-
|
|
6
|
+
"version": "0.30.0-e73cdbb.nightly",
|
|
7
7
|
"license": "(MIT OR Apache-2.0)",
|
|
8
8
|
"homepage": "https://noir-lang.org/",
|
|
9
9
|
"repository": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@noir-lang/types": "0.30.0-
|
|
39
|
+
"@noir-lang/types": "0.30.0-e73cdbb.nightly"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@esm-bundle/chai": "^4.3.4-fix.0",
|
package/web/noirc_abi_wasm.js
CHANGED
|
@@ -6,17 +6,30 @@ heap.push(undefined, null, true, false);
|
|
|
6
6
|
|
|
7
7
|
function getObject(idx) { return heap[idx]; }
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
function isLikeNone(x) {
|
|
10
|
+
return x === undefined || x === null;
|
|
11
|
+
}
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
13
|
-
const idx = heap_next;
|
|
14
|
-
heap_next = heap[idx];
|
|
13
|
+
let cachedFloat64Memory0 = null;
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
function getFloat64Memory0() {
|
|
16
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
17
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
18
|
+
}
|
|
19
|
+
return cachedFloat64Memory0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
let cachedInt32Memory0 = null;
|
|
23
|
+
|
|
24
|
+
function getInt32Memory0() {
|
|
25
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
26
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
27
|
+
}
|
|
28
|
+
return cachedInt32Memory0;
|
|
18
29
|
}
|
|
19
30
|
|
|
31
|
+
let heap_next = heap.length;
|
|
32
|
+
|
|
20
33
|
function dropObject(idx) {
|
|
21
34
|
if (idx < 132) return;
|
|
22
35
|
heap[idx] = heap_next;
|
|
@@ -93,26 +106,13 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
93
106
|
return ptr;
|
|
94
107
|
}
|
|
95
108
|
|
|
96
|
-
function
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
let cachedInt32Memory0 = null;
|
|
101
|
-
|
|
102
|
-
function getInt32Memory0() {
|
|
103
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
104
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
105
|
-
}
|
|
106
|
-
return cachedInt32Memory0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
let cachedFloat64Memory0 = null;
|
|
109
|
+
function addHeapObject(obj) {
|
|
110
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
111
|
+
const idx = heap_next;
|
|
112
|
+
heap_next = heap[idx];
|
|
110
113
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
114
|
-
}
|
|
115
|
-
return cachedFloat64Memory0;
|
|
114
|
+
heap[idx] = obj;
|
|
115
|
+
return idx;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
@@ -260,6 +260,15 @@ async function __wbg_load(module, imports) {
|
|
|
260
260
|
function __wbg_get_imports() {
|
|
261
261
|
const imports = {};
|
|
262
262
|
imports.wbg = {};
|
|
263
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
264
|
+
const obj = getObject(arg1);
|
|
265
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
266
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
267
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
268
|
+
};
|
|
269
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
270
|
+
takeObject(arg0);
|
|
271
|
+
};
|
|
263
272
|
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
264
273
|
const ret = getObject(arg0) === undefined;
|
|
265
274
|
return ret;
|
|
@@ -268,17 +277,6 @@ function __wbg_get_imports() {
|
|
|
268
277
|
const ret = new Error(takeObject(arg0));
|
|
269
278
|
return addHeapObject(ret);
|
|
270
279
|
};
|
|
271
|
-
imports.wbg.__wbg_new_c532f61074fa67e0 = function() {
|
|
272
|
-
const ret = new Map();
|
|
273
|
-
return addHeapObject(ret);
|
|
274
|
-
};
|
|
275
|
-
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
276
|
-
const ret = arg0;
|
|
277
|
-
return addHeapObject(ret);
|
|
278
|
-
};
|
|
279
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
280
|
-
takeObject(arg0);
|
|
281
|
-
};
|
|
282
280
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
283
281
|
const obj = getObject(arg1);
|
|
284
282
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -287,11 +285,13 @@ function __wbg_get_imports() {
|
|
|
287
285
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
288
286
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
289
287
|
};
|
|
290
|
-
imports.wbg.
|
|
291
|
-
const
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
288
|
+
imports.wbg.__wbg_new_c532f61074fa67e0 = function() {
|
|
289
|
+
const ret = new Map();
|
|
290
|
+
return addHeapObject(ret);
|
|
291
|
+
};
|
|
292
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
293
|
+
const ret = arg0;
|
|
294
|
+
return addHeapObject(ret);
|
|
295
295
|
};
|
|
296
296
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
297
297
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
Binary file
|