diff options
author | 2022-06-22 23:21:48 -0700 | |
---|---|---|
committer | 2022-06-22 23:21:48 -0700 | |
commit | 729d445b6885f69dd2c6355f38707bd42851c791 (patch) | |
tree | f87a7c408929ea3f57bbb7ace380cf869da83c0e /src/bun.js/bindings/sizes.zig | |
parent | 25f820c6bf1d8ec6d444ef579cc036b8c0607b75 (diff) | |
download | bun-jarred/rename.tar.gz bun-jarred/rename.tar.zst bun-jarred/rename.zip |
change the directory structurejarred/rename
Diffstat (limited to 'src/bun.js/bindings/sizes.zig')
-rw-r--r-- | src/bun.js/bindings/sizes.zig | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/src/bun.js/bindings/sizes.zig b/src/bun.js/bindings/sizes.zig new file mode 100644 index 000000000..27505ebc0 --- /dev/null +++ b/src/bun.js/bindings/sizes.zig @@ -0,0 +1,80 @@ +// Auto-generated by src/bun.js/headergen/sizegen.cpp at 2022-05-02 01:43:1651481039. +// These are the byte sizes for the different object types with bindings in JavaScriptCore. +// This allows us to safely return stack allocated C++ types to Zig. +// It is only safe to do this when these sizes are correct. +// That means: +// 1. We can't dynamically link JavaScriptCore +// 2. It's important that this is run whenever JavaScriptCore is updated or the bindings on the Zig side change. +// Failure to do so will lead to undefined behavior and probably some frustrated people. +// --- Regenerate this: --- +// 1. "make jsc-bindings-headers" +// 2. "make sizegen" +// 3. "make jsc-bindings-headers" +// ------------------------ +// You can verify the numbers written in this file at runtime via the `extern`d types +// Run "jsc-bindings-headers" twice because it uses these values in the output. That's how all the bJSC__.* types are created - from these values. +pub const JSC__JSObject = 16; +pub const JSC__JSObject_align = 8; +pub const WebCore__DOMURL = 112; +pub const WebCore__DOMURL_align = 8; +pub const WebCore__FetchHeaders = 40; +pub const WebCore__FetchHeaders_align = 8; +pub const SystemError = 72; +pub const SystemError_align = 8; +pub const JSC__JSCell = 8; +pub const JSC__JSCell_align = 4; +pub const JSC__JSString = 16; +pub const JSC__JSString_align = 8; +pub const Inspector__ScriptArguments = 32; +pub const Inspector__ScriptArguments_align = 8; +pub const JSC__JSModuleLoader = 16; +pub const JSC__JSModuleLoader_align = 8; +pub const JSC__JSModuleRecord = 216; +pub const JSC__JSModuleRecord_align = 8; +pub const JSC__JSPromise = 32; +pub const JSC__JSPromise_align = 8; +pub const JSC__JSInternalPromise = 32; +pub const JSC__JSInternalPromise_align = 8; +pub const JSC__SourceOrigin = 48; +pub const JSC__SourceOrigin_align = 8; +pub const JSC__SourceCode = 24; +pub const JSC__SourceCode_align = 8; +pub const JSC__JSFunction = 32; +pub const JSC__JSFunction_align = 8; +pub const JSC__JSGlobalObject = 2312; +pub const JSC__JSGlobalObject_align = 8; +pub const WTF__URL = 40; +pub const WTF__URL_align = 8; +pub const WTF__String = 8; +pub const WTF__String_align = 8; +pub const JSC__JSValue = 8; +pub const JSC__JSValue_align = 8; +pub const JSC__PropertyName = 8; +pub const JSC__PropertyName_align = 8; +pub const JSC__Exception = 40; +pub const JSC__Exception_align = 8; +pub const JSC__VM = 52168; +pub const JSC__VM_align = 8; +pub const JSC__ThrowScope = 8; +pub const JSC__ThrowScope_align = 8; +pub const JSC__CatchScope = 8; +pub const JSC__CatchScope_align = 8; +pub const JSC__CallFrame = 8; +pub const JSC__CallFrame_align = 8; +pub const JSC__Identifier = 8; +pub const JSC__Identifier_align = 8; +pub const WTF__StringImpl = 24; +pub const WTF__StringImpl_align = 8; +pub const WTF__ExternalStringImpl = 40; +pub const WTF__ExternalStringImpl_align = 8; +pub const WTF__StringView = 16; +pub const WTF__StringView_align = 8; +pub const Zig__GlobalObject = 2384; +pub const Zig__GlobalObject_align = 8; +pub const Bun__Readable = 24; +pub const Bun__Readable_align = 4; +pub const Bun__Writable = 20; +pub const Bun__Writable_align = 4; +pub const Bun__Path = 8; +pub const Bun__Path_align = 8; +pub const Bun_FFI_PointerOffsetToArgumentsList = 6; |