diff options
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 |