Node.js  v8.x
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine
node Namespace Reference

Namespaces

 Buffer
 
 cares_wrap
 
 crypto
 
 http2
 
 inspector
 
 loader
 
 os
 
 performance
 
 stringsearch
 
 tracing
 
 url
 
 util
 

Data Structures

struct  async_context
 
class  AsyncResource
 
class  ConditionVariableBase
 
class  DebugOptions
 
struct  LibuvMutexTraits
 
class  MutexBase
 
struct  node_module
 
class  NodePlatform
 
class  ObjectWrap
 
class  PromiseWrap
 
class  RetainedAsyncInfo
 
class  SendWrap
 
class  TaskQueue
 
struct  v8tags
 

Typedefs

using AsyncHooks = node::Environment::AsyncHooks
 
typedef void(* addon_register_func) (v8::Local< v8::Object > exports, v8::Local< v8::Value > module, void *priv)
 
typedef void(* addon_context_register_func) (v8::Local< v8::Object > exports, v8::Local< v8::Value > module, v8::Local< v8::Context > context, void *priv)
 
typedef void(* promise_hook_func) (v8::PromiseHookType type, v8::Local< v8::Promise > promise, v8::Local< v8::Value > parent, void *arg)
 
typedef double async_id
 
typedef async_id async_uid
 
using ConditionVariable = ConditionVariableBase< LibuvMutexTraits >
 
using Mutex = MutexBase< LibuvMutexTraits >
 

Enumerations

enum  encoding {
  ASCII, UTF8, BASE64, UCS2,
  BINARY, HEX, BUFFER, LATIN1 = BINARY
}
 

Functions

RetainedObjectInfo * WrapperInfo (uint16_t class_id, Local< Value > wrapper)
 
bool DomainEnter (Environment *env, Local< Object > object)
 
bool DomainExit (Environment *env, v8::Local< v8::Object > object)
 
void LoadAsyncWrapperInfo (Environment *env)
 
async_id AsyncHooksGetExecutionAsyncId (Isolate *isolate)
 
async_id AsyncHooksGetCurrentId (Isolate *isolate)
 
async_id AsyncHooksGetTriggerAsyncId (Isolate *isolate)
 
async_id AsyncHooksGetTriggerId (Isolate *isolate)
 
async_context EmitAsyncInit (Isolate *isolate, Local< Object > resource, const char *name, async_id trigger_async_id)
 
void EmitAsyncDestroy (Isolate *isolate, async_context asyncContext)
 
MaybeLocal< Value > MakeCallback (Isolate *isolate, Local< Object > recv, Local< Function > callback, int argc, Local< Value > *argv, async_id asyncId, async_id triggerAsyncId)
 
MaybeLocal< Value > MakeCallback (Isolate *isolate, Local< Object > recv, const char *method, int argc, Local< Value > *argv, async_id asyncId, async_id triggerAsyncId)
 
MaybeLocal< Value > MakeCallback (Isolate *isolate, Local< Object > recv, Local< String > symbol, int argc, Local< Value > *argv, async_id asyncId, async_id triggerAsyncId)
 
void DumpBacktrace (FILE *fp)
 
const char * signo_string (int signo)
 
Local< Value > ErrnoException (Isolate *isolate, int errorno, const char *syscall, const char *msg, const char *path)
 
Local< Value > UVException (Isolate *isolate, int errorno, const char *syscall, const char *msg, const char *path)
 
Local< Value > UVException (Isolate *isolate, int errorno, const char *syscall, const char *msg, const char *path, const char *dest)
 
bool SafeGetenv (const char *key, std::string *text)
 
void AddPromiseHook (v8::Isolate *isolate, promise_hook_func fn, void *arg)
 
MaybeLocal< Value > MakeCallback (Environment *env, Local< Value > recv, const Local< Function > callback, int argc, Local< Value > argv[], async_context asyncContext)
 
MaybeLocal< Value > MakeCallback (Isolate *isolate, Local< Object > recv, const char *method, int argc, Local< Value > argv[], async_context asyncContext)
 
MaybeLocal< Value > MakeCallback (Isolate *isolate, Local< Object > recv, Local< String > symbol, int argc, Local< Value > argv[], async_context asyncContext)
 
MaybeLocal< Value > MakeCallback (Isolate *isolate, Local< Object > recv, Local< Function > callback, int argc, Local< Value > argv[], async_context asyncContext)
 
Local< Value > MakeCallback (Isolate *isolate, Local< Object > recv, const char *method, int argc, Local< Value > *argv)
 
Local< Value > MakeCallback (Isolate *isolate, Local< Object > recv, Local< String > symbol, int argc, Local< Value > *argv)
 
Local< Value > MakeCallback (Isolate *isolate, Local< Object > recv, Local< Function > callback, int argc, Local< Value > *argv)
 
enum encoding ParseEncoding (const char *encoding, enum encoding default_encoding)
 
enum encoding ParseEncoding (Isolate *isolate, Local< Value > encoding_v, enum encoding default_encoding)
 
Local< Value > Encode (Isolate *isolate, const char *buf, size_t len, enum encoding encoding)
 
Local< Value > Encode (Isolate *isolate, const uint16_t *buf, size_t len)
 
ssize_t DecodeBytes (Isolate *isolate, Local< Value > val, enum encoding encoding)
 
ssize_t DecodeWrite (Isolate *isolate, char *buf, size_t buflen, Local< Value > val, enum encoding encoding)
 
bool IsExceptionDecorated (Environment *env, Local< Value > er)
 
void AppendExceptionLine (Environment *env, Local< Value > er, Local< Message > message, enum ErrorHandlingMode mode)
 
void GetActiveHandles (const FunctionCallbackInfo< Value > &args)
 
NO_RETURN void Abort ()
 
NO_RETURN void Assert (const char *const (*args)[4])
 
void node_module_register (void *m)
 
struct node_moduleget_builtin_module (const char *name)
 
struct node_moduleget_linked_module (const char *name)
 
NO_RETURN void FatalError (const char *location, const char *message)
 
void FatalException (Isolate *isolate, Local< Value > error, Local< Message > message)
 
void FatalException (Isolate *isolate, const TryCatch &try_catch)
 
void ClearFatalExceptionHandlers (Environment *env)
 
void ProcessEmitWarning (Environment *env, const char *fmt,...)
 
void SetupProcessObject (Environment *env, int argc, const char *const *argv, int exec_argc, const char *const *exec_argv)
 
void SignalExit (int signo)
 
void LoadEnvironment (Environment *env)
 
void PlatformInit ()
 
void ProcessArgv (int *argc, const char **argv, int *exec_argc, const char ***exec_argv, bool is_env=false)
 
void Init (int *argc, const char **argv, int *exec_argc, const char ***exec_argv)
 
void RunAtExit (Environment *env)
 
void AtExit (void(*cb)(void *arg), void *arg)
 
void AtExit (Environment *env, void(*cb)(void *arg), void *arg)
 
void EmitBeforeExit (Environment *env)
 
int EmitExit (Environment *env)
 
IsolateData * CreateIsolateData (Isolate *isolate, uv_loop_t *loop)
 
void FreeIsolateData (IsolateData *isolate_data)
 
Environment * CreateEnvironment (IsolateData *isolate_data, Local< Context > context, int argc, const char *const *argv, int exec_argc, const char *const *exec_argv)
 
void FreeEnvironment (Environment *env)
 
int Start (Isolate *isolate, IsolateData *isolate_data, int argc, const char *const *argv, int exec_argc, const char *const *exec_argv)
 
int Start (uv_loop_t *event_loop, int argc, const char *const *argv, int exec_argc, const char *const *exec_argv)
 
int Start (int argc, char **argv)
 
NODE_EXTERN v8::Local< v8::Value > ErrnoException (v8::Isolate *isolate, int errorno, const char *syscall=NULL, const char *message=NULL, const char *path=NULL)
 
NODE_EXTERN v8::Local< v8::Value > UVException (v8::Isolate *isolate, int errorno, const char *syscall=NULL, const char *message=NULL, const char *path=NULL)
 
NODE_EXTERN v8::Local< v8::Value > UVException (v8::Isolate *isolate, int errorno, const char *syscall, const char *message, const char *path, const char *dest)
 
 NODE_DEPRECATED ("Use ErrnoException(isolate, ...)", inline v8::Local< v8::Value > ErrnoException(int errorno, const char *syscall=NULL, const char *message=NULL, const char *path=NULL) { return ErrnoException(v8::Isolate::GetCurrent(), errorno, syscall, message, path);}) inline v8
 
NODE_EXTERN v8::Local< v8::Value > MakeCallback (v8::Isolate *isolate, v8::Local< v8::Object > recv, const char *method, int argc, v8::Local< v8::Value > *argv)
 
NODE_EXTERN v8::Local< v8::Value > MakeCallback (v8::Isolate *isolate, v8::Local< v8::Object > recv, v8::Local< v8::String > symbol, int argc, v8::Local< v8::Value > *argv)
 
NODE_EXTERN v8::Local< v8::Value > MakeCallback (v8::Isolate *isolate, v8::Local< v8::Object > recv, v8::Local< v8::Function > callback, int argc, v8::Local< v8::Value > *argv)
 
NODE_EXTERN int Start (int argc, char *argv[])
 
NODE_EXTERN IsolateData * CreateIsolateData (v8::Isolate *isolate, struct uv_loop_s *loop)
 
NODE_EXTERN Environment * CreateEnvironment (IsolateData *isolate_data, v8::Local< v8::Context > context, int argc, const char *const *argv, int exec_argc, const char *const *exec_argv)
 
void NODE_SET_METHOD (v8::Local< v8::Template > recv, const char *name, v8::FunctionCallback callback)
 
void NODE_SET_METHOD (v8::Local< v8::Object > recv, const char *name, v8::FunctionCallback callback)
 
void NODE_SET_PROTOTYPE_METHOD (v8::Local< v8::FunctionTemplate > recv, const char *name, v8::FunctionCallback callback)
 
NODE_EXTERN enum encoding ParseEncoding (v8::Isolate *isolate, v8::Local< v8::Value > encoding_v, enum encoding default_encoding=LATIN1)
 
NODE_EXTERN async_id AsyncHooksGetExecutionAsyncId (v8::Isolate *isolate)
 
NODE_EXTERN NODE_DEPRECATED ("Use AsyncHooksGetExecutionAsyncId(isolate)", async_id AsyncHooksGetCurrentId(v8::Isolate *isolate))
 
NODE_EXTERN async_id AsyncHooksGetTriggerAsyncId (v8::Isolate *isolate)
 
NODE_EXTERN NODE_DEPRECATED ("Use AsyncHooksGetTriggerAsyncId(isolate)", async_id AsyncHooksGetTriggerId(v8::Isolate *isolate))
 
NODE_EXTERN async_uid EmitAsyncInit (v8::Isolate *isolate, v8::Local< v8::Object > resource, const char *name, async_id trigger_async_id)
 
NODE_EXTERN void EmitAsyncDestroy (v8::Isolate *isolate, async_context asyncContext)
 
NODE_EXTERN v8::MaybeLocal< v8::Value > MakeCallback (v8::Isolate *isolate, v8::Local< v8::Object > recv, v8::Local< v8::Function > callback, int argc, v8::Local< v8::Value > *argv, async_context asyncContext)
 
NODE_EXTERN v8::MaybeLocal< v8::Value > MakeCallback (v8::Isolate *isolate, v8::Local< v8::Object > recv, const char *method, int argc, v8::Local< v8::Value > *argv, async_context asyncContext)
 
NODE_EXTERN v8::MaybeLocal< v8::Value > MakeCallback (v8::Isolate *isolate, v8::Local< v8::Object > recv, v8::Local< v8::String > symbol, int argc, v8::Local< v8::Value > *argv, async_context asyncContext)
 
NODE_EXTERN NODE_DEPRECATED ("Use MakeCallback(..., async_context asyncContext) instead", v8::MaybeLocal< v8::Value > MakeCallback(v8::Isolate *isolate, v8::Local< v8::Object > recv, v8::Local< v8::Function > callback, int argc, v8::Local< v8::Value > *argv, async_id asyncId, async_id triggerAsyncId))
 
NODE_EXTERN NODE_DEPRECATED ("Use MakeCallback(..., async_context asyncContext) instead", v8::MaybeLocal< v8::Value > MakeCallback(v8::Isolate *isolate, v8::Local< v8::Object > recv, const char *method, int argc, v8::Local< v8::Value > *argv, async_id asyncId, async_id triggerAsyncId))
 
NODE_EXTERN NODE_DEPRECATED ("Use MakeCallback(..., async_context asyncContext) instead", v8::MaybeLocal< v8::Value > MakeCallback(v8::Isolate *isolate, v8::Local< v8::Object > recv, v8::Local< v8::String > symbol, int argc, v8::Local< v8::Value > *argv, async_id asyncId, async_id triggerAsyncId))
 
void DefineConstants (v8::Isolate *isolate, Local< Object > target)
 
void COUNTER_NET_SERVER_CONNECTION (const FunctionCallbackInfo< Value > &)
 
void COUNTER_NET_SERVER_CONNECTION_CLOSE (const FunctionCallbackInfo< Value > &)
 
void COUNTER_HTTP_SERVER_REQUEST (const FunctionCallbackInfo< Value > &)
 
void COUNTER_HTTP_SERVER_RESPONSE (const FunctionCallbackInfo< Value > &)
 
void COUNTER_HTTP_CLIENT_REQUEST (const FunctionCallbackInfo< Value > &)
 
void COUNTER_HTTP_CLIENT_RESPONSE (const FunctionCallbackInfo< Value > &)
 
void InitPerfCounters (Environment *env, Local< Object > target)
 
void TermPerfCounters (Local< Object > target)
 
void DTRACE_NET_SERVER_CONNECTION (const FunctionCallbackInfo< Value > &args)
 
void DTRACE_NET_STREAM_END (const FunctionCallbackInfo< Value > &args)
 
void DTRACE_HTTP_SERVER_REQUEST (const FunctionCallbackInfo< Value > &args)
 
void DTRACE_HTTP_SERVER_RESPONSE (const FunctionCallbackInfo< Value > &args)
 
void DTRACE_HTTP_CLIENT_REQUEST (const FunctionCallbackInfo< Value > &args)
 
void DTRACE_HTTP_CLIENT_RESPONSE (const FunctionCallbackInfo< Value > &args)
 
void dtrace_gc_start (Isolate *isolate, GCType type, GCCallbackFlags flags)
 
void dtrace_gc_done (Isolate *isolate, GCType type, GCCallbackFlags flags)
 
void InitDTrace (Environment *env, Local< Object > target)
 
void FillStatsArray (double *fields, const uv_stat_t *s)
 
void GetStatValues (const FunctionCallbackInfo< Value > &args)
 
void InitFs (Local< Object > target, Local< Value > unused, Local< Context > context, void *priv)
 
void LTTNG_NET_SERVER_CONNECTION (const FunctionCallbackInfo< Value > &args)
 
void LTTNG_NET_STREAM_END (const FunctionCallbackInfo< Value > &args)
 
void LTTNG_HTTP_SERVER_REQUEST (const FunctionCallbackInfo< Value > &args)
 
void LTTNG_HTTP_SERVER_RESPONSE (const FunctionCallbackInfo< Value > &args)
 
void LTTNG_HTTP_CLIENT_REQUEST (const FunctionCallbackInfo< Value > &args)
 
void LTTNG_HTTP_CLIENT_RESPONSE (const FunctionCallbackInfo< Value > &args)
 
void lttng_gc_start (Isolate *isolate, GCType type, GCCallbackFlags flags)
 
void lttng_gc_done (Isolate *isolate, GCType type, GCCallbackFlags flags)
 
void InitLTTNG (Environment *env, Local< Object > target)
 
void CachedDataVersionTag (const FunctionCallbackInfo< Value > &args)
 
void UpdateHeapStatisticsArrayBuffer (const FunctionCallbackInfo< Value > &args)
 
void UpdateHeapSpaceStatisticsBuffer (const FunctionCallbackInfo< Value > &args)
 
void SetFlagsFromString (const FunctionCallbackInfo< Value > &args)
 
void InitializeV8Bindings (Local< Object > target, Local< Value > unused, Local< Context > context)
 
int FilterCodeEvents (const char *name, size_t len)
 
void CodeAddressNotification (const JitCodeEvent *jevent)
 
void etw_events_change_async (uv_async_t *handle)
 
void NTAPI etw_events_enable_callback (LPCGUID SourceId, ULONG IsEnabled, UCHAR Level, ULONGLONG MatchAnyKeyword, ULONGLONG MatchAllKeywords, PEVENT_FILTER_DESCRIPTOR FilterData, PVOID CallbackContext)
 
void init_etw ()
 
void shutdown_etw ()
 
void InitPerfCountersWin32 ()
 
void TermPerfCountersWin32 ()
 
void NODE_COUNT_HTTP_SERVER_REQUEST ()
 
void NODE_COUNT_HTTP_SERVER_RESPONSE ()
 
void NODE_COUNT_HTTP_CLIENT_REQUEST ()
 
void NODE_COUNT_HTTP_CLIENT_RESPONSE ()
 
void NODE_COUNT_SERVER_CONN_OPEN ()
 
void NODE_COUNT_SERVER_CONN_CLOSE ()
 
void NODE_COUNT_NET_BYTES_SENT (int bytes)
 
void NODE_COUNT_NET_BYTES_RECV (int bytes)
 
uint64_t NODE_COUNT_GET_GC_RAWTIME ()
 
void NODE_COUNT_GC_PERCENTTIME (unsigned int percent)
 
void NODE_COUNT_PIPE_BYTES_SENT (int bytes)
 
void NODE_COUNT_PIPE_BYTES_RECV (int bytes)
 
Local< Object > AddressToJS (Environment *env, const sockaddr *addr, Local< Object > info)
 
 X (SetTTL, uv_udp_set_ttl) X(SetBroadcast
 
uv_udp_set_broadcast X (SetMulticastTTL, uv_udp_set_multicast_ttl) X(SetMulticastLoopback
 
void LowMemoryNotification ()
 

Variables

unsigned int reverted = 0
 
bool load_napi_modules = false
 
bool no_deprecation = false
 
bool no_process_warnings = false
 
bool trace_warnings = false
 
bool config_preserve_symlinks = false
 
bool config_experimental_modules = false
 
bool config_pending_deprecation = false
 
std::string config_warning_file
 
bool config_expose_internals = false
 
bool config_expose_http2 = false
 
bool v8_initialized = false
 
bool linux_at_secure = false
 
node::DebugOptions debug_options
 
NODE_DEPRECATED("Use ParseEncoding(isolate, ...)", inline enum encoding ParseEncoding(v8::Local< v8::Value > encoding_v, enum encoding default_encoding=LATIN1) { return ParseEncoding(v8::Isolate::GetCurrent(), encoding_v, default_encoding);}) NODE_EXTERN void FatalException(v8 NODE_DEPRECATED("Use FatalException(isolate, ...)", inline void FatalException(const v8::TryCatch &try_catch) { return FatalException(v8::Isolate::GetCurrent(), try_catch);}) NODE_EXTERN v8 NODE_EXTERN v8::Local< v8::Value > Encode (v8::Isolate *isolate, const uint16_t *buf, size_t len)
 
NODE_DEPRECATED("Use Encode(isolate, ...)", inline v8::Local< v8::Value > Encode(const void *buf, size_t len, enum encoding encoding=LATIN1) { v8::Isolate *isolate=v8::Isolate::GetCurrent();if(encoding==UCS2) { assert(reinterpret_cast< uintptr_t >(buf) % sizeof(uint16_t)==0 &&"UCS2 buffer must be aligned on two-byte boundary.");const uint16_t *that=static_cast< const uint16_t * >(buf);return Encode(isolate, that, len/sizeof(*that));} return Encode(isolate, static_cast< const char * >(buf), len, encoding);}) NODE_EXTERN ssize_t DecodeBytes(v8 NODE_DEPRECATED("Use DecodeBytes(isolate, ...)", inline ssize_t DecodeBytes(v8::Local< v8::Value > val, enum encoding encoding=LATIN1) { return DecodeBytes(v8::Isolate::GetCurrent(), val, encoding);}) NODE_EXTERN ssize_t DecodeWrite(v8 NODE_DEPRECATED ("Use DecodeWrite(isolate, ...)", inline ssize_t DecodeWrite(char *buf, size_t buflen, v8::Local< v8::Value > val, enum encoding encoding=LATIN1) { return DecodeWrite(v8::Isolate::GetCurrent(), buf, buflen, val, encoding);}) const char *signo_string(int errorno)
 
bool zero_fill_all_buffers = false
 
HMODULE advapi
 
REGHANDLE node_provider
 
EventRegisterFunc event_register
 
EventUnregisterFunc event_unregister
 
EventWriteFunc event_write
 
int events_enabled
 
struct v8tags trace_codes []
 
EXTERN_C DECLSPEC_SELECTANY HANDLE NodeCounterProvider = nullptr
 
const int8_t unbase64_table [256]
 

Typedef Documentation

◆ addon_context_register_func

typedef void(* addon_context_register_func) (v8::Local< v8::Object > exports, v8::Local< v8::Value > module, v8::Local< v8::Context > context, void *priv)

Definition at line 422 of file node.h.

◆ addon_register_func

typedef void(* addon_register_func) (v8::Local< v8::Object > exports, v8::Local< v8::Value > module, void *priv)

Definition at line 417 of file node.h.

◆ async_id

typedef double async_id

Definition at line 541 of file node.h.

◆ async_uid

Definition at line 553 of file node.h.

◆ AsyncHooks

typedef Environment::AsyncHooks AsyncHooks

Definition at line 164 of file node.cc.

◆ ConditionVariable

◆ Mutex

Definition at line 14 of file node_mutex.h.

◆ promise_hook_func

typedef void(* promise_hook_func) (v8::PromiseHookType type, v8::Local< v8::Promise > promise, v8::Local< v8::Value > parent, void *arg)

Definition at line 536 of file node.h.

Enumeration Type Documentation

◆ encoding

enum encoding
Enumerator
ASCII 
UTF8 
BASE64 
UCS2 
BINARY 
HEX 
BUFFER 
LATIN1 

Definition at line 322 of file node.h.

Function Documentation

◆ Abort()

NO_RETURN void node::Abort ( )

Definition at line 1901 of file node.cc.

References DumpBacktrace().

Referenced by Assert(), and SetupProcessObject().

◆ AddPromiseHook()

NODE_EXTERN void AddPromiseHook ( v8::Isolate *  isolate,
promise_hook_func  fn,
void *  arg 
)

Definition at line 1306 of file node.cc.

◆ AddressToJS()

Local<Object> node::AddressToJS ( Environment *  env,
const sockaddr *  addr,
Local< Object >  info 
)

◆ AppendExceptionLine()

void node::AppendExceptionLine ( Environment *  env,
Local< Value >  er,
Local< Message >  message,
enum ErrorHandlingMode  mode 
)

Definition at line 1618 of file node.cc.

References ctx, IsExceptionDecorated(), node::Buffer::New(), off, script, and source.

◆ Assert()

NO_RETURN void node::Assert ( const char *const (*)  args[4])

Definition at line 1908 of file node.cc.

References Abort(), buf, and node::Buffer::New().

◆ AsyncHooksGetCurrentId()

async_id node::AsyncHooksGetCurrentId ( Isolate *  isolate)

Definition at line 750 of file async-wrap.cc.

References AsyncHooksGetExecutionAsyncId().

◆ AsyncHooksGetExecutionAsyncId() [1/2]

NODE_EXTERN async_id node::AsyncHooksGetExecutionAsyncId ( v8::Isolate *  isolate)

◆ AsyncHooksGetExecutionAsyncId() [2/2]

async_id node::AsyncHooksGetExecutionAsyncId ( Isolate *  isolate)

Definition at line 746 of file async-wrap.cc.

Referenced by AsyncHooksGetCurrentId().

◆ AsyncHooksGetTriggerAsyncId() [1/2]

NODE_EXTERN async_id node::AsyncHooksGetTriggerAsyncId ( v8::Isolate *  isolate)

◆ AsyncHooksGetTriggerAsyncId() [2/2]

async_id node::AsyncHooksGetTriggerAsyncId ( Isolate *  isolate)

Definition at line 755 of file async-wrap.cc.

Referenced by AsyncHooksGetTriggerId().

◆ AsyncHooksGetTriggerId()

async_id node::AsyncHooksGetTriggerId ( Isolate *  isolate)

Definition at line 759 of file async-wrap.cc.

References AsyncHooksGetTriggerAsyncId().

◆ AtExit() [1/2]

NODE_EXTERN void AtExit ( void(*)(void *arg)  cb,
void *  arg 
)

Definition at line 4455 of file node.cc.

◆ AtExit() [2/2]

NODE_EXTERN void AtExit ( Environment *  env,
void(*)(void *arg)  cb,
void *  arg 
)

Definition at line 4461 of file node.cc.

◆ CachedDataVersionTag()

void node::CachedDataVersionTag ( const FunctionCallbackInfo< Value > &  args)

Definition at line 79 of file node_v8.cc.

Referenced by InitializeV8Bindings().

◆ ClearFatalExceptionHandlers()

void node::ClearFatalExceptionHandlers ( Environment *  env)

Definition at line 2688 of file node.cc.

Referenced by DomainExit(), LoadAsyncWrapperInfo(), and WrapperInfo().

◆ CodeAddressNotification()

void node::CodeAddressNotification ( const JitCodeEvent *  jevent)

Definition at line 95 of file node_win32_etw_provider.cc.

References FilterCodeEvents().

Referenced by etw_events_change_async().

◆ COUNTER_HTTP_CLIENT_REQUEST()

void node::COUNTER_HTTP_CLIENT_REQUEST ( const FunctionCallbackInfo< Value > &  )

Definition at line 67 of file node_counters.cc.

References NODE_COUNT_HTTP_CLIENT_REQUEST().

Referenced by InitPerfCounters().

◆ COUNTER_HTTP_CLIENT_RESPONSE()

void node::COUNTER_HTTP_CLIENT_RESPONSE ( const FunctionCallbackInfo< Value > &  )

◆ COUNTER_HTTP_SERVER_REQUEST()

void node::COUNTER_HTTP_SERVER_REQUEST ( const FunctionCallbackInfo< Value > &  )

Definition at line 57 of file node_counters.cc.

References NODE_COUNT_HTTP_SERVER_REQUEST().

Referenced by InitPerfCounters().

◆ COUNTER_HTTP_SERVER_RESPONSE()

void node::COUNTER_HTTP_SERVER_RESPONSE ( const FunctionCallbackInfo< Value > &  )

Definition at line 62 of file node_counters.cc.

References NODE_COUNT_HTTP_SERVER_RESPONSE().

Referenced by InitPerfCounters().

◆ COUNTER_NET_SERVER_CONNECTION()

void node::COUNTER_NET_SERVER_CONNECTION ( const FunctionCallbackInfo< Value > &  )

Definition at line 47 of file node_counters.cc.

References NODE_COUNT_SERVER_CONN_OPEN().

Referenced by InitPerfCounters().

◆ COUNTER_NET_SERVER_CONNECTION_CLOSE()

void node::COUNTER_NET_SERVER_CONNECTION_CLOSE ( const FunctionCallbackInfo< Value > &  )

Definition at line 52 of file node_counters.cc.

References NODE_COUNT_SERVER_CONN_CLOSE().

Referenced by InitPerfCounters().

◆ CreateEnvironment() [1/2]

NODE_EXTERN Environment* node::CreateEnvironment ( IsolateData *  isolate_data,
v8::Local< v8::Context >  context,
int  argc,
const char *const *  argv,
int  exec_argc,
const char *const *  exec_argv 
)

◆ CreateEnvironment() [2/2]

Environment* node::CreateEnvironment ( IsolateData *  isolate_data,
Local< Context >  context,
int  argc,
const char *const *  argv,
int  exec_argc,
const char *const *  exec_argv 
)

Definition at line 4516 of file node.cc.

Referenced by NODE_DEPRECATED().

◆ CreateIsolateData() [1/2]

NODE_EXTERN IsolateData* node::CreateIsolateData ( v8::Isolate *  isolate,
struct uv_loop_s *  loop 
)

◆ CreateIsolateData() [2/2]

IsolateData* node::CreateIsolateData ( Isolate *  isolate,
uv_loop_t *  loop 
)

Definition at line 4506 of file node.cc.

Referenced by NODE_DEPRECATED().

◆ DecodeBytes()

ssize_t node::DecodeBytes ( Isolate *  isolate,
Local< Value >  val,
enum encoding  encoding 
)

Definition at line 1590 of file node.cc.

◆ DecodeWrite()

ssize_t node::DecodeWrite ( Isolate *  isolate,
char *  buf,
size_t  buflen,
Local< Value >  val,
enum encoding  encoding 
)

Definition at line 1599 of file node.cc.

◆ DefineConstants()

void node::DefineConstants ( v8::Isolate *  isolate,
Local< Object >  target 
)

Definition at line 1259 of file node_constants.cc.

References node::Buffer::New(), and NODE_DEFINE_CONSTANT.

◆ DomainEnter()

bool node::DomainEnter ( Environment *  env,
Local< Object >  object 
)

Definition at line 186 of file async-wrap.cc.

References FatalError().

Referenced by LoadAsyncWrapperInfo(), MakeCallback(), and SafeGetenv().

◆ DomainExit()

bool node::DomainExit ( Environment *  env,
v8::Local< v8::Object >  object 
)

◆ dtrace_gc_done()

void node::dtrace_gc_done ( Isolate *  isolate,
GCType  type,
GCCallbackFlags  flags 
)

Definition at line 254 of file node_dtrace.cc.

References NODE_GC_DONE.

Referenced by InitDTrace().

◆ dtrace_gc_start()

void node::dtrace_gc_start ( Isolate *  isolate,
GCType  type,
GCCallbackFlags  flags 
)

Definition at line 247 of file node_dtrace.cc.

References NODE_GC_START.

Referenced by InitDTrace().

◆ DTRACE_HTTP_CLIENT_REQUEST()

void node::DTRACE_HTTP_CLIENT_REQUEST ( const FunctionCallbackInfo< Value > &  args)

◆ DTRACE_HTTP_CLIENT_RESPONSE()

void node::DTRACE_HTTP_CLIENT_RESPONSE ( const FunctionCallbackInfo< Value > &  args)

◆ DTRACE_HTTP_SERVER_REQUEST()

void node::DTRACE_HTTP_SERVER_REQUEST ( const FunctionCallbackInfo< Value > &  args)

◆ DTRACE_HTTP_SERVER_RESPONSE()

void node::DTRACE_HTTP_SERVER_RESPONSE ( const FunctionCallbackInfo< Value > &  args)

◆ DTRACE_NET_SERVER_CONNECTION()

void node::DTRACE_NET_SERVER_CONNECTION ( const FunctionCallbackInfo< Value > &  args)

◆ DTRACE_NET_STREAM_END()

void node::DTRACE_NET_STREAM_END ( const FunctionCallbackInfo< Value > &  args)

Definition at line 147 of file node_dtrace.cc.

References NODE_NET_STREAM_END, NODE_NET_STREAM_END_ENABLED, and SLURP_CONNECTION.

Referenced by InitDTrace().

◆ DumpBacktrace()

void DumpBacktrace ( FILE *  fp)

Definition at line 24 of file backtrace_posix.cc.

Referenced by Abort().

◆ EmitAsyncDestroy() [1/2]

NODE_EXTERN void node::EmitAsyncDestroy ( v8::Isolate *  isolate,
async_context  asyncContext 
)

◆ EmitAsyncDestroy() [2/2]

void node::EmitAsyncDestroy ( Isolate *  isolate,
async_context  asyncContext 
)

◆ EmitAsyncInit() [1/2]

NODE_EXTERN async_context EmitAsyncInit ( v8::Isolate *  isolate,
v8::Local< v8::Object >  resource,
const char *  name,
async_id  trigger_async_id 
)

◆ EmitAsyncInit() [2/2]

async_uid EmitAsyncInit ( Isolate *  isolate,
Local< Object >  resource,
const char *  name,
async_id  trigger_async_id 
)

Definition at line 764 of file async-wrap.cc.

References async_context::async_id, EmitAsyncInit, and async_context::trigger_async_id.

Referenced by MakeCallback().

◆ EmitBeforeExit()

NODE_EXTERN void EmitBeforeExit ( Environment *  env)

Definition at line 4467 of file node.cc.

References MakeCallback().

Referenced by NODE_DEPRECATED().

◆ EmitExit()

NODE_EXTERN int EmitExit ( Environment *  env)

Definition at line 4482 of file node.cc.

References MakeCallback(), and node::Buffer::New().

Referenced by NODE_DEPRECATED().

◆ Encode() [1/2]

Local<Value> node::Encode ( Isolate *  isolate,
const char *  buf,
size_t  len,
enum encoding  encoding 
)

Definition at line 1573 of file node.cc.

References Encode(), and UCS2.

◆ Encode() [2/2]

Local<Value> node::Encode ( Isolate *  isolate,
const uint16_t *  buf,
size_t  len 
)

Definition at line 1583 of file node.cc.

Referenced by Encode().

◆ ErrnoException() [1/2]

NODE_EXTERN v8::Local<v8::Value> node::ErrnoException ( v8::Isolate *  isolate,
int  errorno,
const char *  syscall = NULL,
const char *  message = NULL,
const char *  path = NULL 
)

◆ ErrnoException() [2/2]

Local<Value> node::ErrnoException ( Isolate *  isolate,
int  errorno,
const char *  syscall,
const char *  msg,
const char *  path 
)

Definition at line 879 of file node.cc.

References node::Buffer::New().

Referenced by NODE_DEPRECATED().

◆ etw_events_change_async()

void node::etw_events_change_async ( uv_async_t *  handle)

Definition at line 127 of file node_win32_etw_provider.cc.

References CodeAddressNotification().

Referenced by init_etw().

◆ etw_events_enable_callback()

void NTAPI node::etw_events_enable_callback ( LPCGUID  SourceId,
ULONG  IsEnabled,
UCHAR  Level,
ULONGLONG  MatchAnyKeyword,
ULONGLONG  MatchAllKeywords,
PEVENT_FILTER_DESCRIPTOR  FilterData,
PVOID  CallbackContext 
)

Definition at line 145 of file node_win32_etw_provider.cc.

Referenced by init_etw().

◆ FatalError()

NO_RETURN void node::FatalError ( const char *  location,
const char *  message 
)

◆ FatalException() [1/2]

void node::FatalException ( Isolate *  isolate,
Local< Value >  error,
Local< Message >  message 
)

◆ FatalException() [2/2]

void node::FatalException ( Isolate *  isolate,
const TryCatch &  try_catch 
)

Definition at line 2673 of file node.cc.

References FatalException().

◆ FillStatsArray()

void node::FillStatsArray ( double *  fields,
const uv_stat_t *  s 
)

◆ FilterCodeEvents()

int node::FilterCodeEvents ( const char *  name,
size_t  len 
)

Definition at line 79 of file node_win32_etw_provider.cc.

References v8tags::prefix, v8tags::prelen, V8_MARKER1, and V8_MARKER2.

Referenced by CodeAddressNotification().

◆ FreeEnvironment()

NODE_EXTERN void FreeEnvironment ( Environment *  env)

Definition at line 4531 of file node.cc.

Referenced by NODE_DEPRECATED().

◆ FreeIsolateData()

NODE_EXTERN void FreeIsolateData ( IsolateData *  isolate_data)

Definition at line 4511 of file node.cc.

Referenced by NODE_DEPRECATED().

◆ get_builtin_module()

node_module * get_builtin_module ( const char *  name)

◆ get_linked_module()

node_module * get_linked_module ( const char *  name)

◆ GetActiveHandles()

void node::GetActiveHandles ( const FunctionCallbackInfo< Value > &  args)

Definition at line 1869 of file node.cc.

References ctx, and node::Buffer::New().

Referenced by SetupProcessObject().

◆ GetStatValues()

void node::GetStatValues ( const FunctionCallbackInfo< Value > &  args)

Definition at line 1443 of file node_file.cc.

References node::Buffer::New().

Referenced by InitFs().

◆ Init()

NODE_EXTERN void Init ( int *  argc,
const char **  argv,
int *  exec_argc,
const char ***  exec_argv 
)

◆ init_etw()

void node::init_etw ( )

◆ InitDTrace()

◆ InitFs()

void node::InitFs ( Local< Object >  target,
Local< Value >  unused,
Local< Context >  context,
void *  priv 
)

◆ InitializeV8Bindings()

void node::InitializeV8Bindings ( Local< Object >  target,
Local< Value >  unused,
Local< Context >  context 
)

◆ InitLTTNG()

◆ InitPerfCounters()

◆ InitPerfCountersWin32()

◆ IsExceptionDecorated()

bool node::IsExceptionDecorated ( Environment *  env,
Local< Value >  er 
)

Definition at line 1607 of file node.cc.

Referenced by AppendExceptionLine().

◆ LoadAsyncWrapperInfo()

void node::LoadAsyncWrapperInfo ( Environment *  env)

◆ LoadEnvironment()

NODE_EXTERN void LoadEnvironment ( Environment *  env)

Definition at line 3573 of file node.cc.

Referenced by NODE_DEPRECATED().

◆ LowMemoryNotification()

void node::LowMemoryNotification ( )

Definition at line 100 of file util.cc.

References v8_initialized.

◆ lttng_gc_done()

void node::lttng_gc_done ( Isolate *  isolate,
GCType  type,
GCCallbackFlags  flags 
)

Definition at line 230 of file node_lttng.cc.

References NODE_GC_DONE.

Referenced by InitLTTNG().

◆ lttng_gc_start()

void node::lttng_gc_start ( Isolate *  isolate,
GCType  type,
GCCallbackFlags  flags 
)

Definition at line 225 of file node_lttng.cc.

References NODE_GC_START.

Referenced by InitLTTNG().

◆ LTTNG_HTTP_CLIENT_REQUEST()

void node::LTTNG_HTTP_CLIENT_REQUEST ( const FunctionCallbackInfo< Value > &  args)

◆ LTTNG_HTTP_CLIENT_RESPONSE()

void node::LTTNG_HTTP_CLIENT_RESPONSE ( const FunctionCallbackInfo< Value > &  args)

◆ LTTNG_HTTP_SERVER_REQUEST()

void node::LTTNG_HTTP_SERVER_REQUEST ( const FunctionCallbackInfo< Value > &  args)

◆ LTTNG_HTTP_SERVER_RESPONSE()

void node::LTTNG_HTTP_SERVER_RESPONSE ( const FunctionCallbackInfo< Value > &  args)

Definition at line 168 of file node_lttng.cc.

References NODE_HTTP_SERVER_RESPONSE, NODE_HTTP_SERVER_RESPONSE_ENABLED, and SLURP_CONNECTION.

Referenced by InitLTTNG().

◆ LTTNG_NET_SERVER_CONNECTION()

void node::LTTNG_NET_SERVER_CONNECTION ( const FunctionCallbackInfo< Value > &  args)

◆ LTTNG_NET_STREAM_END()

void node::LTTNG_NET_STREAM_END ( const FunctionCallbackInfo< Value > &  args)

Definition at line 122 of file node_lttng.cc.

References NODE_NET_STREAM_END, NODE_NET_STREAM_END_ENABLED, and SLURP_CONNECTION.

Referenced by InitLTTNG().

◆ MakeCallback() [1/16]

NODE_EXTERN v8::Local<v8::Value> node::MakeCallback ( v8::Isolate *  isolate,
v8::Local< v8::Object >  recv,
const char *  method,
int  argc,
v8::Local< v8::Value > *  argv 
)

◆ MakeCallback() [2/16]

NODE_EXTERN v8::Local<v8::Value> node::MakeCallback ( v8::Isolate *  isolate,
v8::Local< v8::Object >  recv,
v8::Local< v8::String >  symbol,
int  argc,
v8::Local< v8::Value > *  argv 
)

◆ MakeCallback() [3/16]

NODE_EXTERN v8::Local<v8::Value> node::MakeCallback ( v8::Isolate *  isolate,
v8::Local< v8::Object >  recv,
v8::Local< v8::Function >  callback,
int  argc,
v8::Local< v8::Value > *  argv 
)

◆ MakeCallback() [4/16]

NODE_EXTERN v8::MaybeLocal<v8::Value> node::MakeCallback ( v8::Isolate *  isolate,
v8::Local< v8::Object >  recv,
v8::Local< v8::Function >  callback,
int  argc,
v8::Local< v8::Value > *  argv,
async_context  asyncContext 
)

◆ MakeCallback() [5/16]

NODE_EXTERN v8::MaybeLocal<v8::Value> node::MakeCallback ( v8::Isolate *  isolate,
v8::Local< v8::Object >  recv,
const char *  method,
int  argc,
v8::Local< v8::Value > *  argv,
async_context  asyncContext 
)

◆ MakeCallback() [6/16]

NODE_EXTERN v8::MaybeLocal<v8::Value> node::MakeCallback ( v8::Isolate *  isolate,
v8::Local< v8::Object >  recv,
v8::Local< v8::String >  symbol,
int  argc,
v8::Local< v8::Value > *  argv,
async_context  asyncContext 
)

◆ MakeCallback() [7/16]

MaybeLocal<Value> node::MakeCallback ( Isolate *  isolate,
Local< Object >  recv,
Local< Function >  callback,
int  argc,
Local< Value > *  argv,
async_id  asyncId,
async_id  triggerAsyncId 
)

◆ MakeCallback() [8/16]

MaybeLocal<Value> node::MakeCallback ( Isolate *  isolate,
Local< Object >  recv,
const char *  method,
int  argc,
Local< Value > *  argv,
async_id  asyncId,
async_id  triggerAsyncId 
)

Definition at line 813 of file async-wrap.cc.

References MakeCallback().

◆ MakeCallback() [9/16]

MaybeLocal<Value> node::MakeCallback ( Isolate *  isolate,
Local< Object >  recv,
Local< String >  symbol,
int  argc,
Local< Value > *  argv,
async_id  asyncId,
async_id  triggerAsyncId 
)

Definition at line 824 of file async-wrap.cc.

References async_context::async_id, EmitAsyncInit(), and MakeCallback().

Referenced by LoadAsyncWrapperInfo().

◆ MakeCallback() [10/16]

MaybeLocal<Value> node::MakeCallback ( Environment *  env,
Local< Value >  recv,
const Local< Function >  callback,
int  argc,
Local< Value >  argv[],
async_context  asyncContext 
)

◆ MakeCallback() [11/16]

MaybeLocal<Value> node::MakeCallback ( Isolate *  isolate,
Local< Object >  recv,
const char *  method,
int  argc,
Local< Value >  argv[],
async_context  asyncContext 
)

Definition at line 1400 of file node.cc.

References MakeCallback().

◆ MakeCallback() [12/16]

MaybeLocal<Value> node::MakeCallback ( Isolate *  isolate,
Local< Object >  recv,
Local< String >  symbol,
int  argc,
Local< Value >  argv[],
async_context  asyncContext 
)

Definition at line 1413 of file node.cc.

References MakeCallback().

◆ MakeCallback() [13/16]

MaybeLocal<Value> node::MakeCallback ( Isolate *  isolate,
Local< Object >  recv,
Local< Function >  callback,
int  argc,
Local< Value >  argv[],
async_context  asyncContext 
)

Definition at line 1427 of file node.cc.

References MakeCallback().

◆ MakeCallback() [14/16]

Local<Value> node::MakeCallback ( Isolate *  isolate,
Local< Object >  recv,
const char *  method,
int  argc,
Local< Value > *  argv 
)

Definition at line 1449 of file node.cc.

References MakeCallback().

◆ MakeCallback() [15/16]

Local<Value> node::MakeCallback ( Isolate *  isolate,
Local< Object >  recv,
Local< String >  symbol,
int  argc,
Local< Value > *  argv 
)

Definition at line 1461 of file node.cc.

References MakeCallback().

◆ MakeCallback() [16/16]

Local<Value> node::MakeCallback ( Isolate *  isolate,
Local< Object >  recv,
Local< Function >  callback,
int  argc,
Local< Value > *  argv 
)

Definition at line 1473 of file node.cc.

References MakeCallback().

◆ NODE_COUNT_GC_PERCENTTIME()

void node::NODE_COUNT_GC_PERCENTTIME ( unsigned int  percent)

◆ NODE_COUNT_GET_GC_RAWTIME()

uint64_t node::NODE_COUNT_GET_GC_RAWTIME ( )

◆ NODE_COUNT_HTTP_CLIENT_REQUEST()

void node::NODE_COUNT_HTTP_CLIENT_REQUEST ( )

◆ NODE_COUNT_HTTP_CLIENT_RESPONSE()

void node::NODE_COUNT_HTTP_CLIENT_RESPONSE ( )

◆ NODE_COUNT_HTTP_SERVER_REQUEST()

void node::NODE_COUNT_HTTP_SERVER_REQUEST ( )

◆ NODE_COUNT_HTTP_SERVER_RESPONSE()

void node::NODE_COUNT_HTTP_SERVER_RESPONSE ( )

◆ NODE_COUNT_NET_BYTES_RECV()

void node::NODE_COUNT_NET_BYTES_RECV ( int  bytes)

◆ NODE_COUNT_NET_BYTES_SENT()

void node::NODE_COUNT_NET_BYTES_SENT ( int  bytes)

◆ NODE_COUNT_PIPE_BYTES_RECV()

void node::NODE_COUNT_PIPE_BYTES_RECV ( int  bytes)

◆ NODE_COUNT_PIPE_BYTES_SENT()

void node::NODE_COUNT_PIPE_BYTES_SENT ( int  bytes)

◆ NODE_COUNT_SERVER_CONN_CLOSE()

void node::NODE_COUNT_SERVER_CONN_CLOSE ( )

◆ NODE_COUNT_SERVER_CONN_OPEN()

void node::NODE_COUNT_SERVER_CONN_OPEN ( )

◆ NODE_DEPRECATED() [1/6]

node::NODE_DEPRECATED ( "Use ErrnoException(isolate, ...)"  ,
inline v8::Local< v8::Value > ErrnoException(int errorno, const char *syscall=NULL, const char *message=NULL, const char *path=NULL) { return ErrnoException(v8::Isolate::GetCurrent(), errorno, syscall, message, path);}   
)

◆ NODE_DEPRECATED() [2/6]

NODE_EXTERN node::NODE_DEPRECATED ( "Use AsyncHooksGetExecutionAsyncId(isolate)"  ,
async_id   AsyncHooksGetCurrentIdv8::Isolate *isolate 
)

◆ NODE_DEPRECATED() [3/6]

NODE_EXTERN node::NODE_DEPRECATED ( "Use AsyncHooksGetTriggerAsyncId(isolate)"  ,
async_id   AsyncHooksGetTriggerIdv8::Isolate *isolate 
)

◆ NODE_DEPRECATED() [4/6]

NODE_EXTERN node::NODE_DEPRECATED ( "Use MakeCallback(..., async_context asyncContext) instead"  ,
v8::MaybeLocal< v8::Value >   MakeCallbackv8::Isolate *isolate, v8::Local< v8::Object > recv, v8::Local< v8::Function > callback, int argc, v8::Local< v8::Value > *argv, async_id asyncId, async_id triggerAsyncId 
)

◆ NODE_DEPRECATED() [5/6]

NODE_EXTERN node::NODE_DEPRECATED ( "Use MakeCallback(..., async_context asyncContext) instead"  ,
v8::MaybeLocal< v8::Value >   MakeCallbackv8::Isolate *isolate, v8::Local< v8::Object > recv, const char *method, int argc, v8::Local< v8::Value > *argv, async_id asyncId, async_id triggerAsyncId 
)

◆ NODE_DEPRECATED() [6/6]

NODE_EXTERN node::NODE_DEPRECATED ( "Use MakeCallback(..., async_context asyncContext) instead"  ,
v8::MaybeLocal< v8::Value >   MakeCallbackv8::Isolate *isolate, v8::Local< v8::Object > recv, v8::Local< v8::String > symbol, int argc, v8::Local< v8::Value > *argv, async_id asyncId, async_id triggerAsyncId 
)

◆ node_module_register()

NODE_EXTERN void node_module_register ( void *  m)

Definition at line 2465 of file node.cc.

References NM_F_BUILTIN, node_module::nm_flags, and node_module::nm_link.

Referenced by napi_module_register().

◆ NODE_SET_METHOD() [1/2]

void node::NODE_SET_METHOD ( v8::Local< v8::Template >  recv,
const char *  name,
v8::FunctionCallback  callback 
)
inline

Definition at line 278 of file node.h.

References node::Buffer::New(), and t.

◆ NODE_SET_METHOD() [2/2]

void node::NODE_SET_METHOD ( v8::Local< v8::Object >  recv,
const char *  name,
v8::FunctionCallback  callback 
)
inline

Definition at line 291 of file node.h.

References node::Buffer::New(), and t.

◆ NODE_SET_PROTOTYPE_METHOD()

void node::NODE_SET_PROTOTYPE_METHOD ( v8::Local< v8::FunctionTemplate >  recv,
const char *  name,
v8::FunctionCallback  callback 
)
inline

Definition at line 307 of file node.h.

References node::Buffer::New(), s, and t.

◆ ParseEncoding() [1/3]

NODE_EXTERN enum encoding node::ParseEncoding ( v8::Isolate *  isolate,
v8::Local< v8::Value >  encoding_v,
enum encoding  default_encoding = LATIN1 
)

◆ ParseEncoding() [2/3]

enum encoding node::ParseEncoding ( const char *  encoding,
enum encoding  default_encoding 
)

Definition at line 1485 of file node.cc.

References ASCII, BASE64, BUFFER, HEX, LATIN1, UCS2, and UTF8.

Referenced by FillStatsArray(), node::Buffer::New(), ParseEncoding(), and node::crypto::VerifyCallback().

◆ ParseEncoding() [3/3]

enum encoding node::ParseEncoding ( Isolate *  isolate,
Local< Value >  encoding_v,
enum encoding  default_encoding 
)

Definition at line 1560 of file node.cc.

References ParseEncoding().

◆ PlatformInit()

void node::PlatformInit ( )
inline

Definition at line 4221 of file node.cc.

References SignalExit().

Referenced by Start().

◆ ProcessArgv()

void node::ProcessArgv ( int *  argc,
const char **  argv,
int *  exec_argc,
const char ***  exec_argv,
bool  is_env = false 
)

Definition at line 4303 of file node.cc.

Referenced by Init().

◆ ProcessEmitWarning()

void node::ProcessEmitWarning ( Environment *  env,
const char *  fmt,
  ... 
)

Definition at line 2707 of file node.cc.

Referenced by node::crypto::UseExtraCaCerts(), and node::crypto::VerifyCallback().

◆ RunAtExit()

NODE_EXTERN void RunAtExit ( Environment *  env)

Definition at line 4447 of file node.cc.

Referenced by NODE_DEPRECATED().

◆ SafeGetenv()

bool node::SafeGetenv ( const char *  key,
std::string *  text 
)

◆ SetFlagsFromString()

void node::SetFlagsFromString ( const FunctionCallbackInfo< Value > &  args)

Definition at line 116 of file node_v8.cc.

Referenced by Init(), and InitializeV8Bindings().

◆ SetupProcessObject()

void node::SetupProcessObject ( Environment *  env,
int  argc,
const char *const *  argv,
int  exec_argc,
const char *const *  exec_argv 
)

◆ shutdown_etw()

void node::shutdown_etw ( )

Definition at line 195 of file node_win32_etw_provider.cc.

References event_unregister.

◆ SignalExit()

void node::SignalExit ( int  signo)

Definition at line 3544 of file node.cc.

Referenced by PlatformInit().

◆ signo_string()

const char* node::signo_string ( int  signo)

Definition at line 718 of file node.cc.

References SIGNO_CASE.

◆ Start() [1/4]

NODE_EXTERN int node::Start ( int  argc,
char *  argv[] 
)

◆ Start() [2/4]

int node::Start ( Isolate *  isolate,
IsolateData *  isolate_data,
int  argc,
const char *const *  argv,
int  exec_argc,
const char *const *  exec_argv 
)
inline

Definition at line 4536 of file node.cc.

References node::Buffer::New().

Referenced by main(), NODE_DEPRECATED(), and node::crypto::VerifyCallback().

◆ Start() [3/4]

int node::Start ( uv_loop_t *  event_loop,
int  argc,
const char *const *  argv,
int  exec_argc,
const char *const *  exec_argv 
)
inline

Definition at line 4600 of file node.cc.

References node::Buffer::New().

◆ Start() [4/4]

int node::Start ( int  argc,
char **  argv 
)

◆ TermPerfCounters()

void node::TermPerfCounters ( Local< Object >  target)

Definition at line 139 of file node_counters.cc.

References TermPerfCountersWin32().

◆ TermPerfCountersWin32()

void node::TermPerfCountersWin32 ( )

Definition at line 202 of file node_win32_perfctr_provider.cc.

References advapimod, and perfctr_stopProvider.

Referenced by TermPerfCounters().

◆ UpdateHeapSpaceStatisticsBuffer()

void node::UpdateHeapSpaceStatisticsBuffer ( const FunctionCallbackInfo< Value > &  args)

Definition at line 99 of file node_v8.cc.

References HEAP_SPACE_STATISTICS_PROPERTIES, s, and V.

Referenced by InitializeV8Bindings().

◆ UpdateHeapStatisticsArrayBuffer()

void node::UpdateHeapStatisticsArrayBuffer ( const FunctionCallbackInfo< Value > &  args)

Definition at line 88 of file node_v8.cc.

References HEAP_STATISTICS_PROPERTIES, s, and V.

Referenced by InitializeV8Bindings().

◆ UVException() [1/4]

NODE_EXTERN v8::Local<v8::Value> node::UVException ( v8::Isolate *  isolate,
int  errorno,
const char *  syscall = NULL,
const char *  message = NULL,
const char *  path = NULL 
)

◆ UVException() [2/4]

NODE_EXTERN v8::Local<v8::Value> node::UVException ( v8::Isolate *  isolate,
int  errorno,
const char *  syscall,
const char *  message,
const char *  path,
const char *  dest 
)

◆ UVException() [3/4]

Local<Value> node::UVException ( Isolate *  isolate,
int  errorno,
const char *  syscall,
const char *  msg,
const char *  path 
)

Definition at line 940 of file node.cc.

Referenced by NODE_DEPRECATED().

◆ UVException() [4/4]

Local<Value> node::UVException ( Isolate *  isolate,
int  errorno,
const char *  syscall,
const char *  msg,
const char *  path,
const char *  dest 
)

Definition at line 949 of file node.cc.

References node::Buffer::New().

◆ WrapperInfo()

RetainedObjectInfo* node::WrapperInfo ( uint16_t  class_id,
Local< Value >  wrapper 
)

◆ X() [1/2]

node::X ( SetTTL  ,
uv_udp_set_ttl   
)

Referenced by FillStatsArray().

◆ X() [2/2]

uv_udp_set_broadcast node::X ( SetMulticastTTL  ,
uv_udp_set_multicast_ttl   
)

Variable Documentation

◆ advapi

HMODULE advapi

Definition at line 32 of file node_win32_etw_provider.cc.

◆ config_experimental_modules

bool config_experimental_modules = false

Definition at line 231 of file node.cc.

◆ config_expose_http2

bool config_expose_http2 = false

Definition at line 247 of file node.cc.

◆ config_expose_internals

bool config_expose_internals = false

Definition at line 244 of file node.cc.

◆ config_pending_deprecation

bool config_pending_deprecation = false

Definition at line 235 of file node.cc.

◆ config_preserve_symlinks

bool config_preserve_symlinks = false

Definition at line 226 of file node.cc.

◆ config_warning_file

std::string config_warning_file

Definition at line 238 of file node.cc.

◆ debug_options

node::DebugOptions debug_options

Definition at line 259 of file node.cc.

◆ Encode

MaybeLocal< Value > Encode

◆ event_register

EventRegisterFunc event_register

Definition at line 34 of file node_win32_etw_provider.cc.

Referenced by init_etw().

◆ event_unregister

EventUnregisterFunc event_unregister

Definition at line 35 of file node_win32_etw_provider.cc.

Referenced by shutdown_etw().

◆ event_write

EventWriteFunc event_write

Definition at line 36 of file node_win32_etw_provider.cc.

◆ events_enabled

int events_enabled

Definition at line 37 of file node_win32_etw_provider.cc.

◆ linux_at_secure

bool linux_at_secure = false

Definition at line 251 of file node.cc.

Referenced by main().

◆ load_napi_modules

bool load_napi_modules = false

Definition at line 197 of file node.cc.

Referenced by napi_module_register().

◆ no_deprecation

NODE_EXTERN bool no_deprecation = false

Definition at line 200 of file node.cc.

Referenced by NODE_DEPRECATED().

◆ no_process_warnings

bool no_process_warnings = false

Definition at line 220 of file node.cc.

◆ NODE_DEPRECATED

NODE_DEPRECATED ("Use Encode(isolate, ...)", inline v8::Local<v8::Value> Encode( const void* buf, size_t len, enum encoding encoding = LATIN1) { v8::Isolate* isolate = v8::Isolate::GetCurrent(); if (encoding == UCS2) { assert(reinterpret_cast<uintptr_t>(buf) % sizeof(uint16_t) == 0 && "UCS2 buffer must be aligned on two-byte boundary."); const uint16_t* that = static_cast<const uint16_t*>(buf); return Encode(isolate, that, len / sizeof(*that)); } return Encode(isolate, static_cast<const char*>(buf), len, encoding); }) NODE_EXTERN ssize_t DecodeBytes(v8 NODE_DEPRECATED ("Use DecodeBytes(isolate, ...)", inline ssize_t DecodeBytes( v8::Local<v8::Value> val, enum encoding encoding = LATIN1) { return DecodeBytes(v8::Isolate::GetCurrent(), val, encoding); }) NODE_EXTERN ssize_t DecodeWrite(v8 NODE_DEPRECATED("Use DecodeWrite(isolate, ...)", inline ssize_t DecodeWrite(char *buf, size_t buflen, v8::Local< v8::Value > val, enum encoding encoding=LATIN1) { return DecodeWrite(v8::Isolate::GetCurrent(), buf, buflen, val, encoding);}) const char *signo_string(int errorno)

Definition at line 386 of file node.h.

◆ node_provider

REGHANDLE node_provider

Definition at line 33 of file node_win32_etw_provider.cc.

◆ NodeCounterProvider

EXTERN_C DECLSPEC_SELECTANY HANDLE NodeCounterProvider = nullptr

Definition at line 122 of file node_win32_perfctr_provider.cc.

◆ reverted

unsigned int reverted = 0

Definition at line 189 of file node.cc.

◆ trace_codes

struct v8tags trace_codes[]
Initial value:
= {
#define MAKE_V8TAG(s)
MAKE_V8TAG("LazyCompile:"),
MAKE_V8TAG("Script:"),
MAKE_V8TAG("Function:"),
MAKE_V8TAG("RegExp:"),
}
#define MAKE_V8TAG(s)

Definition at line 48 of file node_win32_etw_provider.cc.

◆ trace_warnings

bool trace_warnings = false

Definition at line 221 of file node.cc.

◆ unbase64_table

const int8_t unbase64_table[256]
Initial value:
=
{ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -2, -1, -1, -2, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, 62, -1, 63,
52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1,
-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, 63,
-1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
}

Definition at line 212 of file string_bytes.cc.

◆ v8_initialized

bool v8_initialized = false

Definition at line 249 of file node.cc.

Referenced by LowMemoryNotification().

◆ zero_fill_all_buffers

bool zero_fill_all_buffers = false

Definition at line 58 of file node_buffer.cc.

Referenced by SafeGetenv().