benchmark: remove old alias usage in ffi benchmarks#63666
Open
addaleax wants to merge 1 commit into
Open
Conversation
Follow-up to df09b2a. Refs: nodejs#63482 Signed-off-by: Anna Henningsen <anna@addaleax.net>
Collaborator
|
Review requested:
|
|
|
||
| const { lib, functions } = ffi.dlopen(libraryPath, { | ||
| add_f64: { result: 'f64', parameters: ['f64', 'f64'] }, | ||
| add_f64: { result: 'f64', arguments: ['f64', 'f64'] }, |
Member
There was a problem hiding this comment.
I guess this should be return df09b2a#diff-58e332998f95a4eba485ff5fcee1e396ae23b1ac86d099926cd23d12995ba0dcL129-L132
Suggested change
| add_f64: { result: 'f64', arguments: ['f64', 'f64'] }, | |
| add_f64: { return: 'f64', arguments: ['f64', 'f64'] }, |
|
|
||
| const { lib, functions } = ffi.dlopen(null, { | ||
| uv_os_getpid: { result: 'i32', parameters: [] }, | ||
| uv_os_getpid: { result: 'i32', arguments: [] }, |
Member
There was a problem hiding this comment.
Suggested change
| uv_os_getpid: { result: 'i32', arguments: [] }, | |
| uv_os_getpid: { return: 'i32', arguments: [] }, |
|
|
||
| const { lib, functions } = ffi.dlopen(libraryPath, { | ||
| sum_6_i32: { result: 'i32', parameters: ['i32', 'i32', 'i32', 'i32', 'i32', 'i32'] }, | ||
| sum_6_i32: { result: 'i32', arguments: ['i32', 'i32', 'i32', 'i32', 'i32', 'i32'] }, |
Member
There was a problem hiding this comment.
Suggested change
| sum_6_i32: { result: 'i32', arguments: ['i32', 'i32', 'i32', 'i32', 'i32', 'i32'] }, | |
| sum_6_i32: { return: 'i32', arguments: ['i32', 'i32', 'i32', 'i32', 'i32', 'i32'] }, |
|
|
||
| const { lib, functions } = ffi.dlopen(libraryPath, { | ||
| pointer_to_usize: { result: 'u64', parameters: ['pointer'] }, | ||
| pointer_to_usize: { result: 'u64', arguments: ['pointer'] }, |
Member
There was a problem hiding this comment.
Suggested change
| pointer_to_usize: { result: 'u64', arguments: ['pointer'] }, | |
| pointer_to_usize: { return: 'u64', arguments: ['pointer'] }, |
|
|
||
| const { lib, functions } = ffi.dlopen(libraryPath, { | ||
| sum_buffer: { result: 'u64', parameters: ['pointer', 'u64'] }, | ||
| sum_buffer: { result: 'u64', arguments: ['pointer', 'u64'] }, |
Member
There was a problem hiding this comment.
Suggested change
| sum_buffer: { result: 'u64', arguments: ['pointer', 'u64'] }, | |
| sum_buffer: { return: 'u64', arguments: ['pointer', 'u64'] }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to df09b2a.
Refs: #63482