From f90c09d7154f4b4ac3c9539739b33a445956cc33 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Sat, 13 Aug 2022 18:16:32 -0700 Subject: wip SyntheticModule --- src/bun.js/headergen/sizegen.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/bun.js/headergen/sizegen.cpp') 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 -- cgit v1.2.3