GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: fix Fast FFI argument count in ffi.md · nodejs/node@ef4915f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • ffi.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/ffi.md‎

Copy file name to clipboardExpand all lines: doc/api/ffi.md
+7-2Lines changed: 7 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,13 @@ raw pointer `bigint` values. For pointer-like parameters, `null`, `undefined`,
125125
strings, `Buffer`, typed array, `DataView`, and `ArrayBuffer` values are
126126
converted on the JavaScript side before calling the optimized native wrapper.
127127

128-
Optimized Fast FFI calls support at most 8 function arguments. Functions with
129-
more than 7 arguments use the generic FFI call path instead.
128+
Optimized Fast FFI calls support at most 8 function arguments, but the exact
129+
limit depends on the architecture and on the argument types, because each
130+
argument must fit in the registers used by the platform trampoline. Integer
131+
and pointer arguments are limited to 7 on AArch64 and to 6 on x86-64, while
132+
floating-point arguments can use up to 8 on both. Functions that exceed these
133+
limits, including any function with more than 8 arguments, use the generic FFI
134+
call path instead.
130135

131136
## Signature objects
132137

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.