diff options
author | 2022-08-13 18:16:32 -0700 | |
---|---|---|
committer | 2022-08-13 18:18:05 -0700 | |
commit | f90c09d7154f4b4ac3c9539739b33a445956cc33 (patch) | |
tree | 5d0bf1e09a1245a8d93d8f70d087de02b3f775ee /src/bun.js/headergen/sizegen.cpp | |
parent | 5644da1a3eff62ec4f5b7a72da36c1da390dc981 (diff) | |
download | bun-f90c09d7154f4b4ac3c9539739b33a445956cc33.tar.gz bun-f90c09d7154f4b4ac3c9539739b33a445956cc33.tar.zst bun-f90c09d7154f4b4ac3c9539739b33a445956cc33.zip |
wip SyntheticModule
Diffstat (limited to 'src/bun.js/headergen/sizegen.cpp')
-rw-r--r-- | src/bun.js/headergen/sizegen.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bun.js/headergen/sizegen.cpp b/src/bun.js/headergen/sizegen.cpp index 316caabc6..721f8e652 100644 --- a/src/bun.js/headergen/sizegen.cpp +++ b/src/bun.js/headergen/sizegen.cpp @@ -14,6 +14,7 @@ using namespace std; #include "headers-cpp.h" #include "JavaScriptCore/CallFrame.h" +#include "JavaScriptCore/JSArrayBufferViewInlines.h" int main() { time_t rawtime; @@ -49,12 +50,14 @@ int main() { "in the output. That's how all the bJSC__.* types are created - from " "these values. \n"; int i = 0; - int len = sizeof(sizes) / sizeof(sizes[0]); + int len = 31; for (i = 0; i < len; i++) { cout << "pub const " << names[i] << " = " << sizes[i] << ";\n"; cout << "pub const " << names[i] << "_align = " << aligns[i] << ";\n"; } - cout << "pub const Bun_FFI_PointerOffsetToArgumentsList = << " + cout << "pub const Bun_FFI_PointerOffsetToArgumentsList = " << JSC::CallFrame::argumentOffset(0) << ";\n"; + cout << "pub const Bun_FFI_PointerOffsetToTypedArrayVector = " + << JSC::JSArrayBufferView::offsetOfVector() << ";\n"; return 0; }
\ No newline at end of file |