| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 238b54e commit 066fff1
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ const bench = common.createBenchmark(main, { | |||
| 13 | 13 | ensureFixtureLibrary(); | |
| 14 | 14 | ||
| 15 | 15 | const { lib, functions } = ffi.dlopen(libraryPath, { | |
| 16 | - add_f64: { result: 'f64', parameters: ['f64', 'f64'] }, | ||
| 16 | + add_f64: { return: 'f64', arguments: ['f64', 'f64'] }, | ||
| 17 | 17 | }); | |
| 18 | 18 | ||
| 19 | 19 | const add = functions.add_f64; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ const bench = common.createBenchmark(main, { | |||
| 13 | 13 | ensureFixtureLibrary(); | |
| 14 | 14 | ||
| 15 | 15 | const { lib, functions } = ffi.dlopen(libraryPath, { | |
| 16 | - add_i32: { result: 'i32', parameters: ['i32', 'i32'] }, | ||
| 16 | + add_i32: { return: 'i32', arguments: ['i32', 'i32'] }, | ||
| 17 | 17 | }); | |
| 18 | 18 | ||
| 19 | 19 | const add = functions.add_i32; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, { | |||
| 10 | 10 | }); | |
| 11 | 11 | ||
| 12 | 12 | const { lib, functions } = ffi.dlopen(null, { | |
| 13 | - uv_os_getpid: { result: 'i32', parameters: [] }, | ||
| 13 | + uv_os_getpid: { return: 'i32', arguments: [] }, | ||
| 14 | 14 | }); | |
| 15 | 15 | ||
| 16 | 16 | const getpid = functions.uv_os_getpid; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ const bench = common.createBenchmark(main, { | |||
| 13 | 13 | ensureFixtureLibrary(); | |
| 14 | 14 | ||
| 15 | 15 | const { lib, functions } = ffi.dlopen(libraryPath, { | |
| 16 | - sum_6_i32: { result: 'i32', parameters: ['i32', 'i32', 'i32', 'i32', 'i32', 'i32'] }, | ||
| 16 | + sum_6_i32: { return: 'i32', arguments: ['i32', 'i32', 'i32', 'i32', 'i32', 'i32'] }, | ||
| 17 | 17 | }); | |
| 18 | 18 | ||
| 19 | 19 | const fn = functions.sum_6_i32; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ const bench = common.createBenchmark(main, { | |||
| 13 | 13 | ensureFixtureLibrary(); | |
| 14 | 14 | ||
| 15 | 15 | const { lib, functions } = ffi.dlopen(libraryPath, { | |
| 16 | - pointer_to_usize: { result: 'u64', parameters: ['pointer'] }, | ||
| 16 | + pointer_to_usize: { return: 'u64', arguments: ['pointer'] }, | ||
| 17 | 17 | }); | |
| 18 | 18 | ||
| 19 | 19 | const fn = functions.pointer_to_usize; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,7 @@ const bench = common.createBenchmark(main, { | |||
| 14 | 14 | ensureFixtureLibrary(); | |
| 15 | 15 | ||
| 16 | 16 | const { lib, functions } = ffi.dlopen(libraryPath, { | |
| 17 | - sum_buffer: { result: 'u64', parameters: ['pointer', 'u64'] }, | ||
| 17 | + sum_buffer: { return: 'u64', arguments: ['pointer', 'u64'] }, | ||
| 18 | 18 | }); | |
| 19 | 19 | ||
| 20 | 20 | function main({ n, size }) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments