mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
Warn when JIT is disabled
This commit is contained in:
@@ -1433,6 +1433,8 @@ const WTF__StringImpl *JSC__PropertyName__uid(JSC__PropertyName *arg0) { return
|
||||
|
||||
#pragma mark - JSC::VM
|
||||
|
||||
bool JSC__VM__isJITEnabled() { return JSC::Options::useJIT(); }
|
||||
|
||||
void JSC__VM__shrinkFootprint(JSC__VM *arg0) { arg0->shrinkFootprintWhenIdle(); };
|
||||
void JSC__VM__whenIdle(JSC__VM *arg0, void (*ArgFn1)()) { arg0->whenIdle(ArgFn1); };
|
||||
|
||||
|
||||
@@ -1559,6 +1559,10 @@ pub const VM = extern struct {
|
||||
return cppFn("deinit", .{ vm, global_object });
|
||||
}
|
||||
|
||||
pub fn isJITEnabled() bool {
|
||||
return cppFn("isJITEnabled", .{});
|
||||
}
|
||||
|
||||
pub fn deleteAllCode(
|
||||
vm: *VM,
|
||||
global_object: *JSGlobalObject,
|
||||
@@ -1623,7 +1627,7 @@ pub const VM = extern struct {
|
||||
});
|
||||
}
|
||||
|
||||
pub const Extern = [_][]const u8{ "deleteAllCode", "apiLock", "create", "deinit", "setExecutionForbidden", "executionForbidden", "isEntered", "throwError", "drainMicrotasks", "whenIdle", "shrinkFootprint" };
|
||||
pub const Extern = [_][]const u8{ "isJITEnabled", "deleteAllCode", "apiLock", "create", "deinit", "setExecutionForbidden", "executionForbidden", "isEntered", "throwError", "drainMicrotasks", "whenIdle", "shrinkFootprint" };
|
||||
};
|
||||
|
||||
pub const ThrowScope = extern struct {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//-- AUTOGENERATED FILE -- 1631593539
|
||||
//-- AUTOGENERATED FILE -- 1631749917
|
||||
// clang-format off
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//-- AUTOGENERATED FILE -- 1631593539
|
||||
//-- AUTOGENERATED FILE -- 1631749917
|
||||
// clang-format: off
|
||||
#pragma once
|
||||
|
||||
@@ -494,6 +494,7 @@ CPP_DECL void JSC__VM__deleteAllCode(JSC__VM* arg0, JSC__JSGlobalObject* arg1);
|
||||
CPP_DECL void JSC__VM__drainMicrotasks(JSC__VM* arg0);
|
||||
CPP_DECL bool JSC__VM__executionForbidden(JSC__VM* arg0);
|
||||
CPP_DECL bool JSC__VM__isEntered(JSC__VM* arg0);
|
||||
CPP_DECL bool JSC__VM__isJITEnabled();
|
||||
CPP_DECL void JSC__VM__setExecutionForbidden(JSC__VM* arg0, bool arg1);
|
||||
CPP_DECL void JSC__VM__shrinkFootprint(JSC__VM* arg0);
|
||||
CPP_DECL bool JSC__VM__throwError(JSC__VM* arg0, JSC__JSGlobalObject* arg1, JSC__ThrowScope* arg2, const unsigned char* arg3, size_t arg4);
|
||||
|
||||
@@ -308,6 +308,7 @@ pub extern fn JSC__VM__deleteAllCode(arg0: [*c]JSC__VM, arg1: [*c]JSC__JSGlobalO
|
||||
pub extern fn JSC__VM__drainMicrotasks(arg0: [*c]JSC__VM) void;
|
||||
pub extern fn JSC__VM__executionForbidden(arg0: [*c]JSC__VM) bool;
|
||||
pub extern fn JSC__VM__isEntered(arg0: [*c]JSC__VM) bool;
|
||||
pub extern fn JSC__VM__isJITEnabled(...) bool;
|
||||
pub extern fn JSC__VM__setExecutionForbidden(arg0: [*c]JSC__VM, arg1: bool) void;
|
||||
pub extern fn JSC__VM__shrinkFootprint(arg0: [*c]JSC__VM) void;
|
||||
pub extern fn JSC__VM__throwError(arg0: [*c]JSC__VM, arg1: [*c]JSC__JSGlobalObject, arg2: [*c]JSC__ThrowScope, arg3: [*c]const u8, arg4: usize) bool;
|
||||
|
||||
Reference in New Issue
Block a user