diff options
Diffstat (limited to 'src/bun.js/headergen/sizegen.cpp')
-rw-r--r-- | src/bun.js/headergen/sizegen.cpp | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/bun.js/headergen/sizegen.cpp b/src/bun.js/headergen/sizegen.cpp index f12cea820..49b64e0e9 100644 --- a/src/bun.js/headergen/sizegen.cpp +++ b/src/bun.js/headergen/sizegen.cpp @@ -50,7 +50,7 @@ int main() { "in the output. That's how all the bJSC__.* types are created - from " "these values. \n"; int i = 0; - int len = 31; + int len = 31 - 3; for (i = 0; i < len; i++) { cout << "pub const " << names[i] << " = " << sizes[i] << ";\n"; cout << "pub const " << names[i] << "_align = " << aligns[i] << ";\n"; @@ -61,5 +61,29 @@ int main() { << JSC::JSArrayBufferView::offsetOfVector() << ";\n"; cout << "pub const Bun_FFI_PointerOffsetToTypedArrayLength = " << JSC::JSArrayBufferView::offsetOfLength() << ";\n"; + cout << "pub const Bun_CallFrame__codeBlock = "; + + cout << static_cast<int>(JSC::CallFrameSlot::codeBlock) << ";\n"; + cout << "pub const Bun_CallFrame__callee = "; + + cout << static_cast<int>(JSC::CallFrameSlot::callee) << ";\n"; + cout << "pub const Bun_CallFrame__argumentCountIncludingThis = "; + + cout << static_cast<int>(JSC::CallFrameSlot::argumentCountIncludingThis) + << ";\n"; + cout << "pub const Bun_CallFrame__thisArgument = "; + + cout << static_cast<int>(JSC::CallFrameSlot::thisArgument) << ";\n"; + cout << "pub const Bun_CallFrame__firstArgument = "; + + cout << static_cast<int>(JSC::CallFrameSlot::firstArgument) << ";\n"; + + cout << "pub const Bun_CallFrame__size = "; + + cout << sizeof(JSC::CallFrame) << ";\n"; + + cout << "pub const Bun_CallFrame__align = "; + + cout << alignof(JSC::CallFrame) << ";\n"; return 0; }
\ No newline at end of file |