@noir-lang/noir_wasm 0.31.0-49e1b0c.nightly → 0.31.0-6936a52.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/dist/node/index_bg.wasm
CHANGED
|
Binary file
|
package/dist/node/main.js
CHANGED
|
@@ -199,21 +199,19 @@ function _assertClass(instance, klass) {
|
|
|
199
199
|
return instance.ptr;
|
|
200
200
|
}
|
|
201
201
|
/**
|
|
202
|
-
* This is a method that exposes the same API as `compile`
|
|
203
|
-
* But uses the Context based APi internally
|
|
204
202
|
* @param {string} entry_point
|
|
205
203
|
* @param {DependencyGraph | undefined} dependency_graph
|
|
206
204
|
* @param {PathToFileSourceMap} file_source_map
|
|
207
205
|
* @returns {ProgramCompileResult}
|
|
208
206
|
*/
|
|
209
|
-
module.exports.
|
|
207
|
+
module.exports.compile_program = function(entry_point, dependency_graph, file_source_map) {
|
|
210
208
|
try {
|
|
211
209
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
212
210
|
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
213
211
|
const len0 = WASM_VECTOR_LEN;
|
|
214
212
|
_assertClass(file_source_map, PathToFileSourceMap);
|
|
215
213
|
var ptr1 = file_source_map.__destroy_into_raw();
|
|
216
|
-
wasm.
|
|
214
|
+
wasm.compile_program(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
|
|
217
215
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
218
216
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
219
217
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -227,21 +225,19 @@ module.exports.compile_program_ = function(entry_point, dependency_graph, file_s
|
|
|
227
225
|
};
|
|
228
226
|
|
|
229
227
|
/**
|
|
230
|
-
* This is a method that exposes the same API as `compile`
|
|
231
|
-
* But uses the Context based APi internally
|
|
232
228
|
* @param {string} entry_point
|
|
233
229
|
* @param {DependencyGraph | undefined} dependency_graph
|
|
234
230
|
* @param {PathToFileSourceMap} file_source_map
|
|
235
231
|
* @returns {ContractCompileResult}
|
|
236
232
|
*/
|
|
237
|
-
module.exports.
|
|
233
|
+
module.exports.compile_contract = function(entry_point, dependency_graph, file_source_map) {
|
|
238
234
|
try {
|
|
239
235
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
240
236
|
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
241
237
|
const len0 = WASM_VECTOR_LEN;
|
|
242
238
|
_assertClass(file_source_map, PathToFileSourceMap);
|
|
243
239
|
var ptr1 = file_source_map.__destroy_into_raw();
|
|
244
|
-
wasm.
|
|
240
|
+
wasm.compile_contract(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
|
|
245
241
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
246
242
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
247
243
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -272,19 +268,21 @@ module.exports.build_info = function() {
|
|
|
272
268
|
};
|
|
273
269
|
|
|
274
270
|
/**
|
|
271
|
+
* This is a method that exposes the same API as `compile`
|
|
272
|
+
* But uses the Context based APi internally
|
|
275
273
|
* @param {string} entry_point
|
|
276
274
|
* @param {DependencyGraph | undefined} dependency_graph
|
|
277
275
|
* @param {PathToFileSourceMap} file_source_map
|
|
278
276
|
* @returns {ProgramCompileResult}
|
|
279
277
|
*/
|
|
280
|
-
module.exports.
|
|
278
|
+
module.exports.compile_program_ = function(entry_point, dependency_graph, file_source_map) {
|
|
281
279
|
try {
|
|
282
280
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
283
281
|
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
284
282
|
const len0 = WASM_VECTOR_LEN;
|
|
285
283
|
_assertClass(file_source_map, PathToFileSourceMap);
|
|
286
284
|
var ptr1 = file_source_map.__destroy_into_raw();
|
|
287
|
-
wasm.
|
|
285
|
+
wasm.compile_program_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
|
|
288
286
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
289
287
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
290
288
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -298,19 +296,21 @@ module.exports.compile_program = function(entry_point, dependency_graph, file_so
|
|
|
298
296
|
};
|
|
299
297
|
|
|
300
298
|
/**
|
|
299
|
+
* This is a method that exposes the same API as `compile`
|
|
300
|
+
* But uses the Context based APi internally
|
|
301
301
|
* @param {string} entry_point
|
|
302
302
|
* @param {DependencyGraph | undefined} dependency_graph
|
|
303
303
|
* @param {PathToFileSourceMap} file_source_map
|
|
304
304
|
* @returns {ContractCompileResult}
|
|
305
305
|
*/
|
|
306
|
-
module.exports.
|
|
306
|
+
module.exports.compile_contract_ = function(entry_point, dependency_graph, file_source_map) {
|
|
307
307
|
try {
|
|
308
308
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
309
309
|
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
310
310
|
const len0 = WASM_VECTOR_LEN;
|
|
311
311
|
_assertClass(file_source_map, PathToFileSourceMap);
|
|
312
312
|
var ptr1 = file_source_map.__destroy_into_raw();
|
|
313
|
-
wasm.
|
|
313
|
+
wasm.compile_contract_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
|
|
314
314
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
315
315
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
316
316
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -519,25 +519,25 @@ class PathToFileSourceMap {
|
|
|
519
519
|
}
|
|
520
520
|
module.exports.PathToFileSourceMap = PathToFileSourceMap;
|
|
521
521
|
|
|
522
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
523
|
-
takeObject(arg0);
|
|
524
|
-
};
|
|
525
|
-
|
|
526
|
-
module.exports.__wbg_constructor_2a2d75afec348bca = function(arg0) {
|
|
527
|
-
const ret = new Error(takeObject(arg0));
|
|
528
|
-
return addHeapObject(ret);
|
|
529
|
-
};
|
|
530
|
-
|
|
531
522
|
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
532
523
|
const ret = getObject(arg0) === undefined;
|
|
533
524
|
return ret;
|
|
534
525
|
};
|
|
535
526
|
|
|
527
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
528
|
+
takeObject(arg0);
|
|
529
|
+
};
|
|
530
|
+
|
|
536
531
|
module.exports.__wbg_constructor_23a70262203c0d24 = function() {
|
|
537
532
|
const ret = new Object();
|
|
538
533
|
return addHeapObject(ret);
|
|
539
534
|
};
|
|
540
535
|
|
|
536
|
+
module.exports.__wbg_constructor_2a2d75afec348bca = function(arg0) {
|
|
537
|
+
const ret = new Error(takeObject(arg0));
|
|
538
|
+
return addHeapObject(ret);
|
|
539
|
+
};
|
|
540
|
+
|
|
541
541
|
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
542
542
|
const ret = new Error();
|
|
543
543
|
return addHeapObject(ret);
|