mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 04:18:58 +00:00
* very very wip
* almost ready to fix the errors
* Update identity_context.zig
* Update base.zig
* [bun test] It runs successfully
* Remove unnecessary call
* [Bun.js] Improve JS <> Zig unicode string interop
This fixes longstanding unicode bugs with `console.log` & `fetch`.
I believe @evanwashere reported this first awhile ago
* [Bun.js] Implement `Object.is()` binding and a way to set a timeout for script execution
* Update PLCrashReport.zig
* [Bun.js] Make `console.log` more closely match Node.js and Deno
* [Bun.js] Implement formatting specifier for console.*
* Implement `console.clear()`
* bug fix
* Support console.clear()
* Buffer stderr
* [bun test] Begin implementing Node.js `fs`
* Update darwin_c.zig
* Implement more of `fs`
* `mkdir`, `mkdir` recursive, `mkdtemp`
* `open`, `read` (and pread)
* Move some things into more files
* Implement readdir
* `readFile`, `readLink`, and `realpath`
* `writeFile`, `symlink`, `chown`, `rename`, `stat`, `unlink`, `truncate`
* `lutimes`
* Implement `SystemError` and begin wiring up the `fs` module
* `"fs"` - Most of the arguments / validation
* `fs` - Rest of the arguments / validations
* Begin wiring up the `fs` module
* Fix all the build errors
* support printing typed arrays in console.log
* It...works?
* Support `require("fs")`, `import fs from 'fs';`, `import * as fs from 'fs'`
* Fix a couple bugs
* get rid of the crash reporter for now
* Update fs.exports.js
* [bun.js] slight improvement to startup time
* [bun.js] Improve error message printing
* [Bun.js] Add `Bun.gc()` to run the garbage collector manually and report heap size
* [Bun.js] Add Bun.generateHeapSnapshot to return what JS types are using memory
* [Bun.js] Add `Bun.shrink()` to tell JSC to shrink the VM size
* Improve encoding reader
* [bun.js] Improve callback & microtask performance
* Update node_fs.zig
* Implement `console.assert`
* simple test
* [Bun.js] Prepare for multiple globals/realms to support testing
* Create callbacks-overhead.mjs
* Update http.zig
* [Bun.js] Implement `queueMicrotask`
* Add test for queueMicrotask
* 😪
* [Bun.js] Implement `process.versions`, `process.pid`, `process.ppid`, `process.nextTick`, `process.versions`,
* Implement `process.env.toJSON()`
* [Bun.js] Improve performance of `fs.existsSync`
* 💅
* [Bun.js] Implement `process.chdir(str)` and `process.cwd()`, support up to 4 args in `process.nextTick`
* Make creating Zig::Process lazy
* Split processi nto separte file
* [Bun.js] Node.js Streams - Part 1/?
* [Bun.js] Node.js streams 2/?
* WIP streams
* fix crash
* Reduce allocations in many places
* swap
* Make `bun` start 2ms faster
* Always use an apiLock()
* libBacktrace doesn't really work yet
* Fix crash in the upgrade checker
* Clean up code for importing the runtime when not bundling
* 📷
* Update linker.zig
* 68!
* backtrace
* no, really backtrace
* Fix
* Linux fixes
* Fixes on Linux
* Update mimalloc
* [bun test] Automatically scan for {.test,_test,.spec,_spec}.{jsx,tsx,js,cts,mts,ts,cjs}
248 lines
11 KiB
C
248 lines
11 KiB
C
//-- AUTOGENERATED FILE -- 1642473926
|
|
// clang-format off
|
|
#pragma once
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#include "root.h"
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_JSObject_h_
|
|
#define INCLUDED__JavaScriptCore_JSObject_h_
|
|
#include <JavaScriptCore/JSObject.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSObject_object_size_ = sizeof(JSC::JSObject);
|
|
extern "C" const size_t JSC__JSObject_object_align_ = alignof(JSC::JSObject);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_JSCell_h_
|
|
#define INCLUDED__JavaScriptCore_JSCell_h_
|
|
#include <JavaScriptCore/JSCell.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSCell_object_size_ = sizeof(JSC::JSCell);
|
|
extern "C" const size_t JSC__JSCell_object_align_ = alignof(JSC::JSCell);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_JSString_h_
|
|
#define INCLUDED__JavaScriptCore_JSString_h_
|
|
#include <JavaScriptCore/JSString.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSString_object_size_ = sizeof(JSC::JSString);
|
|
extern "C" const size_t JSC__JSString_object_align_ = alignof(JSC::JSString);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_ScriptArguments_h_
|
|
#define INCLUDED__JavaScriptCore_ScriptArguments_h_
|
|
#include <JavaScriptCore/ScriptArguments.h>
|
|
#endif
|
|
|
|
extern "C" const size_t Inspector__ScriptArguments_object_size_ = sizeof(Inspector::ScriptArguments);
|
|
extern "C" const size_t Inspector__ScriptArguments_object_align_ = alignof(Inspector::ScriptArguments);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_JSModuleLoader_h_
|
|
#define INCLUDED__JavaScriptCore_JSModuleLoader_h_
|
|
#include <JavaScriptCore/JSModuleLoader.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSModuleLoader_object_size_ = sizeof(JSC::JSModuleLoader);
|
|
extern "C" const size_t JSC__JSModuleLoader_object_align_ = alignof(JSC::JSModuleLoader);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_JSModuleRecord_h_
|
|
#define INCLUDED__JavaScriptCore_JSModuleRecord_h_
|
|
#include <JavaScriptCore/JSModuleRecord.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSModuleRecord_object_size_ = sizeof(JSC::JSModuleRecord);
|
|
extern "C" const size_t JSC__JSModuleRecord_object_align_ = alignof(JSC::JSModuleRecord);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_JSPromise_h_
|
|
#define INCLUDED__JavaScriptCore_JSPromise_h_
|
|
#include <JavaScriptCore/JSPromise.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSPromise_object_size_ = sizeof(JSC::JSPromise);
|
|
extern "C" const size_t JSC__JSPromise_object_align_ = alignof(JSC::JSPromise);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_JSInternalPromise_h_
|
|
#define INCLUDED__JavaScriptCore_JSInternalPromise_h_
|
|
#include <JavaScriptCore/JSInternalPromise.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSInternalPromise_object_size_ = sizeof(JSC::JSInternalPromise);
|
|
extern "C" const size_t JSC__JSInternalPromise_object_align_ = alignof(JSC::JSInternalPromise);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_SourceOrigin_h_
|
|
#define INCLUDED__JavaScriptCore_SourceOrigin_h_
|
|
#include <JavaScriptCore/SourceOrigin.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__SourceOrigin_object_size_ = sizeof(JSC::SourceOrigin);
|
|
extern "C" const size_t JSC__SourceOrigin_object_align_ = alignof(JSC::SourceOrigin);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_SourceProvider_h_
|
|
#define INCLUDED__JavaScriptCore_SourceProvider_h_
|
|
#include <JavaScriptCore/SourceProvider.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__SourceCode_object_size_ = sizeof(JSC::SourceCode);
|
|
extern "C" const size_t JSC__SourceCode_object_align_ = alignof(JSC::SourceCode);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_JSFunction_h_
|
|
#define INCLUDED__JavaScriptCore_JSFunction_h_
|
|
#include <JavaScriptCore/JSFunction.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSFunction_object_size_ = sizeof(JSC::JSFunction);
|
|
extern "C" const size_t JSC__JSFunction_object_align_ = alignof(JSC::JSFunction);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_JSGlobalObject_h_
|
|
#define INCLUDED__JavaScriptCore_JSGlobalObject_h_
|
|
#include <JavaScriptCore/JSGlobalObject.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSGlobalObject_object_size_ = sizeof(JSC::JSGlobalObject);
|
|
extern "C" const size_t JSC__JSGlobalObject_object_align_ = alignof(JSC::JSGlobalObject);
|
|
|
|
#ifndef INCLUDED__wtf_URL_h_
|
|
#define INCLUDED__wtf_URL_h_
|
|
#include <wtf/URL.h>
|
|
#endif
|
|
|
|
extern "C" const size_t WTF__URL_object_size_ = sizeof(WTF::URL);
|
|
extern "C" const size_t WTF__URL_object_align_ = alignof(WTF::URL);
|
|
|
|
#ifndef INCLUDED__wtf_text_WTFString_h_
|
|
#define INCLUDED__wtf_text_WTFString_h_
|
|
#include <wtf/text/WTFString.h>
|
|
#endif
|
|
|
|
extern "C" const size_t WTF__String_object_size_ = sizeof(WTF::String);
|
|
extern "C" const size_t WTF__String_object_align_ = alignof(WTF::String);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_JSValue_h_
|
|
#define INCLUDED__JavaScriptCore_JSValue_h_
|
|
#include <JavaScriptCore/JSValue.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSValue_object_size_ = sizeof(JSC::JSValue);
|
|
extern "C" const size_t JSC__JSValue_object_align_ = alignof(JSC::JSValue);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_PropertyName_h_
|
|
#define INCLUDED__JavaScriptCore_PropertyName_h_
|
|
#include <JavaScriptCore/PropertyName.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__PropertyName_object_size_ = sizeof(JSC::PropertyName);
|
|
extern "C" const size_t JSC__PropertyName_object_align_ = alignof(JSC::PropertyName);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_Exception_h_
|
|
#define INCLUDED__JavaScriptCore_Exception_h_
|
|
#include <JavaScriptCore/Exception.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__Exception_object_size_ = sizeof(JSC::Exception);
|
|
extern "C" const size_t JSC__Exception_object_align_ = alignof(JSC::Exception);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_VM_h_
|
|
#define INCLUDED__JavaScriptCore_VM_h_
|
|
#include <JavaScriptCore/VM.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__VM_object_size_ = sizeof(JSC::VM);
|
|
extern "C" const size_t JSC__VM_object_align_ = alignof(JSC::VM);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_ThrowScope_h_
|
|
#define INCLUDED__JavaScriptCore_ThrowScope_h_
|
|
#include <JavaScriptCore/ThrowScope.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__ThrowScope_object_size_ = sizeof(JSC::ThrowScope);
|
|
extern "C" const size_t JSC__ThrowScope_object_align_ = alignof(JSC::ThrowScope);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_CatchScope_h_
|
|
#define INCLUDED__JavaScriptCore_CatchScope_h_
|
|
#include <JavaScriptCore/CatchScope.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__CatchScope_object_size_ = sizeof(JSC::CatchScope);
|
|
extern "C" const size_t JSC__CatchScope_object_align_ = alignof(JSC::CatchScope);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_CallFrame_h_
|
|
#define INCLUDED__JavaScriptCore_CallFrame_h_
|
|
#include <JavaScriptCore/CallFrame.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__CallFrame_object_size_ = sizeof(JSC::CallFrame);
|
|
extern "C" const size_t JSC__CallFrame_object_align_ = alignof(JSC::CallFrame);
|
|
|
|
#ifndef INCLUDED__JavaScriptCore_Identifier_h_
|
|
#define INCLUDED__JavaScriptCore_Identifier_h_
|
|
#include <JavaScriptCore/Identifier.h>
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__Identifier_object_size_ = sizeof(JSC::Identifier);
|
|
extern "C" const size_t JSC__Identifier_object_align_ = alignof(JSC::Identifier);
|
|
|
|
#ifndef INCLUDED__wtf_text_StringImpl_h_
|
|
#define INCLUDED__wtf_text_StringImpl_h_
|
|
#include <wtf/text/StringImpl.h>
|
|
#endif
|
|
|
|
extern "C" const size_t WTF__StringImpl_object_size_ = sizeof(WTF::StringImpl);
|
|
extern "C" const size_t WTF__StringImpl_object_align_ = alignof(WTF::StringImpl);
|
|
|
|
#ifndef INCLUDED__wtf_text_ExternalStringImpl_h_
|
|
#define INCLUDED__wtf_text_ExternalStringImpl_h_
|
|
#include <wtf/text/ExternalStringImpl.h>
|
|
#endif
|
|
|
|
extern "C" const size_t WTF__ExternalStringImpl_object_size_ = sizeof(WTF::ExternalStringImpl);
|
|
extern "C" const size_t WTF__ExternalStringImpl_object_align_ = alignof(WTF::ExternalStringImpl);
|
|
|
|
#ifndef INCLUDED__wtf_text_StringView_h_
|
|
#define INCLUDED__wtf_text_StringView_h_
|
|
#include <wtf/text/StringView.h>
|
|
#endif
|
|
|
|
extern "C" const size_t WTF__StringView_object_size_ = sizeof(WTF::StringView);
|
|
extern "C" const size_t WTF__StringView_object_align_ = alignof(WTF::StringView);
|
|
|
|
#ifndef INCLUDED__ZigGlobalObject_h_
|
|
#define INCLUDED__ZigGlobalObject_h_
|
|
#include "ZigGlobalObject.h"
|
|
#endif
|
|
|
|
extern "C" const size_t Zig__GlobalObject_object_size_ = sizeof(Zig::GlobalObject);
|
|
extern "C" const size_t Zig__GlobalObject_object_align_ = alignof(Zig::GlobalObject);
|
|
|
|
#ifndef INCLUDED_BunStream_h
|
|
#define INCLUDED_BunStream_h
|
|
#include BunStream.h
|
|
#endif
|
|
|
|
extern "C" const size_t Bun__Readable_object_size_ = sizeof(Bun__Readable);
|
|
extern "C" const size_t Bun__Readable_object_align_ = alignof(Bun__Readable);
|
|
|
|
#ifndef INCLUDED_BunStream_h
|
|
#define INCLUDED_BunStream_h
|
|
#include BunStream.h
|
|
#endif
|
|
|
|
extern "C" const size_t Bun__Writable_object_size_ = sizeof(Bun__Writable);
|
|
extern "C" const size_t Bun__Writable_object_align_ = alignof(Bun__Writable);
|
|
|
|
#ifndef INCLUDED__ZigConsoleClient_h_
|
|
#define INCLUDED__ZigConsoleClient_h_
|
|
#include "ZigConsoleClient.h"
|
|
#endif
|
|
|
|
extern "C" const size_t Zig__ConsoleClient_object_size_ = sizeof(Zig::ConsoleClient);
|
|
extern "C" const size_t Zig__ConsoleClient_object_align_ = alignof(Zig::ConsoleClient);
|
|
|
|
const size_t sizes[29] = {sizeof(JSC::JSObject), sizeof(SystemError), sizeof(JSC::JSCell), sizeof(JSC::JSString), sizeof(Inspector::ScriptArguments), sizeof(JSC::JSModuleLoader), sizeof(JSC::JSModuleRecord), sizeof(JSC::JSPromise), sizeof(JSC::JSInternalPromise), sizeof(JSC::SourceOrigin), sizeof(JSC::SourceCode), sizeof(JSC::JSFunction), sizeof(JSC::JSGlobalObject), sizeof(WTF::URL), sizeof(WTF::String), sizeof(JSC::JSValue), sizeof(JSC::PropertyName), sizeof(JSC::Exception), sizeof(JSC::VM), sizeof(JSC::ThrowScope), sizeof(JSC::CatchScope), sizeof(JSC::CallFrame), sizeof(JSC::Identifier), sizeof(WTF::StringImpl), sizeof(WTF::ExternalStringImpl), sizeof(WTF::StringView), sizeof(Zig::GlobalObject), sizeof(Bun__Readable), sizeof(Bun__Writable)};
|
|
|
|
const char* names[29] = {"JSC__JSObject", "SystemError", "JSC__JSCell", "JSC__JSString", "Inspector__ScriptArguments", "JSC__JSModuleLoader", "JSC__JSModuleRecord", "JSC__JSPromise", "JSC__JSInternalPromise", "JSC__SourceOrigin", "JSC__SourceCode", "JSC__JSFunction", "JSC__JSGlobalObject", "WTF__URL", "WTF__String", "JSC__JSValue", "JSC__PropertyName", "JSC__Exception", "JSC__VM", "JSC__ThrowScope", "JSC__CatchScope", "JSC__CallFrame", "JSC__Identifier", "WTF__StringImpl", "WTF__ExternalStringImpl", "WTF__StringView", "Zig__GlobalObject", "Bun__Readable", "Bun__Writable"};
|
|
|
|
const size_t aligns[29] = {alignof(JSC::JSObject), alignof(SystemError), alignof(JSC::JSCell), alignof(JSC::JSString), alignof(Inspector::ScriptArguments), alignof(JSC::JSModuleLoader), alignof(JSC::JSModuleRecord), alignof(JSC::JSPromise), alignof(JSC::JSInternalPromise), alignof(JSC::SourceOrigin), alignof(JSC::SourceCode), alignof(JSC::JSFunction), alignof(JSC::JSGlobalObject), alignof(WTF::URL), alignof(WTF::String), alignof(JSC::JSValue), alignof(JSC::PropertyName), alignof(JSC::Exception), alignof(JSC::VM), alignof(JSC::ThrowScope), alignof(JSC::CatchScope), alignof(JSC::CallFrame), alignof(JSC::Identifier), alignof(WTF::StringImpl), alignof(WTF::ExternalStringImpl), alignof(WTF::StringView), alignof(Zig::GlobalObject), alignof(Bun__Readable), alignof(Bun__Writable)};
|