aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/Process.lut.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/bindings/Process.lut.h')
-rw-r--r--src/bun.js/bindings/Process.lut.h97
1 files changed, 50 insertions, 47 deletions
diff --git a/src/bun.js/bindings/Process.lut.h b/src/bun.js/bindings/Process.lut.h
index 5c0bd2c5a..81eb1b7b9 100644
--- a/src/bun.js/bindings/Process.lut.h
+++ b/src/bun.js/bindings/Process.lut.h
@@ -1,6 +1,6 @@
// File generated via `make generate-builtins`
-static const struct CompactHashIndex processObjectTableIndex[141] = {
- { 42, -1 },
+static const struct CompactHashIndex processObjectTableIndex[142] = {
+ { 43, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
@@ -11,12 +11,12 @@ static const struct CompactHashIndex processObjectTableIndex[141] = {
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
- { 16, 130 },
+ { 15, 129 },
{ -1, -1 },
{ -1, -1 },
- { 19, 137 },
+ { 18, 138 },
{ -1, -1 },
- { 43, -1 },
+ { 45, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
@@ -33,37 +33,37 @@ static const struct CompactHashIndex processObjectTableIndex[141] = {
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
- { 3, 140 },
+ { 3, 141 },
{ 1, 128 },
{ -1, -1 },
- { 57, -1 },
- { -1, -1 },
+ { 59, -1 },
{ -1, -1 },
+ { 10, -1 },
{ -1, -1 },
{ -1, -1 },
- { 30, -1 },
+ { 31, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
- { 50, -1 },
+ { 52, -1 },
{ 27, -1 },
- { 10, -1 },
+ { 12, -1 },
{ -1, -1 },
- { 11, -1 },
+ { 19, -1 },
{ -1, -1 },
- { 15, 136 },
+ { 14, 137 },
{ -1, -1 },
- { 35, -1 },
+ { 36, -1 },
{ -1, -1 },
- { 37, -1 },
- { 53, -1 },
- { 34, -1 },
- { 6, 138 },
+ { 38, -1 },
+ { 55, -1 },
+ { 35, -1 },
+ { 6, 139 },
{ -1, -1 },
- { 49, -1 },
+ { 51, -1 },
{ 4, -1 },
- { 45, -1 },
+ { 47, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
@@ -75,23 +75,23 @@ static const struct CompactHashIndex processObjectTableIndex[141] = {
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
- { 39, -1 },
+ { 40, -1 },
{ -1, -1 },
- { 36, -1 },
+ { 37, -1 },
{ -1, -1 },
{ 0, -1 },
- { 12, 129 },
- { 17, 131 },
- { 38, -1 },
+ { 26, 135 },
+ { 16, 130 },
+ { 39, -1 },
{ -1, -1 },
{ 23, -1 },
- { 13, -1 },
+ { 11, -1 },
{ -1, -1 },
{ -1, -1 },
- { 56, -1 },
+ { 58, -1 },
{ -1, -1 },
{ -1, -1 },
- { 47, -1 },
+ { 30, 136 },
{ -1, -1 },
{ 29, -1 },
{ 22, -1 },
@@ -105,45 +105,46 @@ static const struct CompactHashIndex processObjectTableIndex[141] = {
{ 5, -1 },
{ -1, -1 },
{ -1, -1 },
- { 46, -1 },
+ { 48, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
- { 14, 132 },
+ { 13, 131 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
{ 9, -1 },
- { 25, 134 },
+ { 25, 133 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
- { 21, 135 },
+ { 21, 134 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
- { 44, 139 },
+ { 46, 140 },
{ -1, -1 },
- { 18, -1 },
+ { 17, -1 },
{ 8, -1 },
- { 26, -1 },
{ 28, -1 },
- { 31, 133 },
- { 32, -1 },
+ { 32, 132 },
{ 33, -1 },
- { 40, -1 },
+ { 34, -1 },
{ 41, -1 },
- { 48, -1 },
- { 51, -1 },
- { 52, -1 },
+ { 42, -1 },
+ { 44, -1 },
+ { 49, -1 },
+ { 50, -1 },
+ { 53, -1 },
{ 54, -1 },
- { 55, -1 },
+ { 56, -1 },
+ { 57, -1 },
};
-static const struct HashTableValue processObjectTableValues[58] = {
+static const struct HashTableValue processObjectTableValues[60] = {
{ "abort"_s, static_cast<unsigned>(PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, Process_functionAbort, 1 } },
{ "allowedNodeEnvironmentFlags"_s, static_cast<unsigned>(PropertyAttribute::PropertyCallback), NoIntrinsic, { HashTableValue::LazyPropertyType, Process_stubEmptySet } },
{ "arch"_s, static_cast<unsigned>(PropertyAttribute::PropertyCallback), NoIntrinsic, { HashTableValue::LazyPropertyType, constructArch } },
@@ -154,16 +155,16 @@ static const struct HashTableValue processObjectTableValues[58] = {
{ "browser"_s, static_cast<unsigned>(PropertyAttribute::PropertyCallback), NoIntrinsic, { HashTableValue::LazyPropertyType, constructBrowser } },
{ "chdir"_s, static_cast<unsigned>(PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, Process_functionChdir, 1 } },
{ "config"_s, static_cast<unsigned>(PropertyAttribute::PropertyCallback), NoIntrinsic, { HashTableValue::LazyPropertyType, constructProcessConfigObject } },
- { "debugPort"_s, static_cast<unsigned>(PropertyAttribute::CustomAccessor), NoIntrinsic, { HashTableValue::GetterSetterType, processDebugPort, setProcessDebugPort } },
- { "exitCode"_s, static_cast<unsigned>(PropertyAttribute::CustomAccessor), NoIntrinsic, { HashTableValue::GetterSetterType, processExitCode, setProcessExitCode } },
- { "title"_s, static_cast<unsigned>(PropertyAttribute::CustomAccessor), NoIntrinsic, { HashTableValue::GetterSetterType, processTitle, setProcessTitle } },
+ { "cpuUsage"_s, static_cast<unsigned>(PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, Process_functionCpuUsage, 1 } },
{ "cwd"_s, static_cast<unsigned>(PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, Process_functionCwd, 1 } },
+ { "debugPort"_s, static_cast<unsigned>(PropertyAttribute::CustomAccessor), NoIntrinsic, { HashTableValue::GetterSetterType, processDebugPort, setProcessDebugPort } },
{ "dlopen"_s, static_cast<unsigned>(PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, Process_functionDlopen, 1 } },
{ "emitWarning"_s, static_cast<unsigned>(PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, Process_emitWarning, 1 } },
{ "env"_s, static_cast<unsigned>(PropertyAttribute::PropertyCallback), NoIntrinsic, { HashTableValue::LazyPropertyType, constructEnv } },
{ "execArgv"_s, static_cast<unsigned>(PropertyAttribute::PropertyCallback), NoIntrinsic, { HashTableValue::LazyPropertyType, constructExecArgv } },
{ "execPath"_s, static_cast<unsigned>(PropertyAttribute::PropertyCallback), NoIntrinsic, { HashTableValue::LazyPropertyType, constructExecPath } },
{ "exit"_s, static_cast<unsigned>(PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, Process_functionExit, 1 } },
+ { "exitCode"_s, static_cast<unsigned>(PropertyAttribute::CustomAccessor), NoIntrinsic, { HashTableValue::GetterSetterType, processExitCode, setProcessExitCode } },
{ "features"_s, static_cast<unsigned>(PropertyAttribute::PropertyCallback), NoIntrinsic, { HashTableValue::LazyPropertyType, constructFeatures } },
{ "getActiveResourcesInfo"_s, static_cast<unsigned>(PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, Process_stubFunctionReturningArray, 0 } },
{ "getegid"_s, static_cast<unsigned>(PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, Process_functiongetegid, 0 } },
@@ -174,6 +175,7 @@ static const struct HashTableValue processObjectTableValues[58] = {
{ "hrtime"_s, static_cast<unsigned>(PropertyAttribute::PropertyCallback), NoIntrinsic, { HashTableValue::LazyPropertyType, constructProcessHrtimeObject } },
{ "isBun"_s, static_cast<unsigned>(PropertyAttribute::PropertyCallback), NoIntrinsic, { HashTableValue::LazyPropertyType, constructIsBun } },
{ "mainModule"_s, ((static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::Builtin|PropertyAttribute::Accessor|PropertyAttribute::Function)) & ~PropertyAttribute::Function) | PropertyAttribute::Builtin, NoIntrinsic, { HashTableValue::BuiltinGeneratorType, processObjectMainModuleCodeGenerator, 0 } },
+ { "memoryUsage"_s, static_cast<unsigned>(PropertyAttribute::PropertyCallback), NoIntrinsic, { HashTableValue::LazyPropertyType, constructMemoryUsage } },
{ "moduleLoadList"_s, static_cast<unsigned>(PropertyAttribute::PropertyCallback), NoIntrinsic, { HashTableValue::LazyPropertyType, Process_stubEmptyArray } },
{ "nextTick"_s, static_cast<unsigned>(PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, Process_functionNextTick, 1 } },
{ "openStdin"_s, static_cast<unsigned>(PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, Process_functionOpenStdin, 0 } },
@@ -187,6 +189,7 @@ static const struct HashTableValue processObjectTableValues[58] = {
{ "stderr"_s, static_cast<unsigned>(PropertyAttribute::PropertyCallback), NoIntrinsic, { HashTableValue::LazyPropertyType, constructStderr } },
{ "stdin"_s, static_cast<unsigned>(PropertyAttribute::PropertyCallback), NoIntrinsic, { HashTableValue::LazyPropertyType, constructStdin } },
{ "stdout"_s, static_cast<unsigned>(PropertyAttribute::PropertyCallback), NoIntrinsic, { HashTableValue::LazyPropertyType, constructStdout } },
+ { "title"_s, static_cast<unsigned>(PropertyAttribute::CustomAccessor), NoIntrinsic, { HashTableValue::GetterSetterType, processTitle, setProcessTitle } },
{ "umask"_s, static_cast<unsigned>(PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, Process_functionUmask, 1 } },
{ "uptime"_s, static_cast<unsigned>(PropertyAttribute::Function), NoIntrinsic, { HashTableValue::NativeFunctionType, Process_functionUptime, 1 } },
{ "version"_s, static_cast<unsigned>(PropertyAttribute::PropertyCallback), NoIntrinsic, { HashTableValue::LazyPropertyType, constructVersion } },
@@ -205,4 +208,4 @@ static const struct HashTableValue processObjectTableValues[58] = {
};
static const struct HashTable processObjectTable =
- { 58, 127, true, nullptr, processObjectTableValues, processObjectTableIndex };
+ { 60, 127, true, nullptr, processObjectTableValues, processObjectTableIndex };