FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node/src/node_context_data.h at fix/888923 · ofrobots/node · GitHub
ofrobots
/
node
Public
forked from
nodejs/node
Notifications
You must be signed in to change notification settings
Fork
1
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node
/
src
/
node_context_data.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
39 lines (29 loc) · 1.14 KB
Breadcrumbs
node
/
src
/
node_context_data.h
Copy path
File metadata and controls
39 lines (29 loc) · 1.14 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
ifndef
SRC_NODE_CONTEXT_DATA_H_
#
define
SRC_NODE_CONTEXT_DATA_H_
#
if
defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
namespace
node
{
//
Pick an index that's hopefully out of the way when we're embedded inside
//
another application. Performance-wise or memory-wise it doesn't matter:
//
Context::SetAlignedPointerInEmbedderData() is backed by a FixedArray,
//
worst case we pay a one-time penalty for resizing the array.
#
ifndef
NODE_CONTEXT_EMBEDDER_DATA_INDEX
#
define
NODE_CONTEXT_EMBEDDER_DATA_INDEX
32
#
endif
#
ifndef
NODE_CONTEXT_SANDBOX_OBJECT_INDEX
#
define
NODE_CONTEXT_SANDBOX_OBJECT_INDEX
33
#
endif
#
ifndef
NODE_CONTEXT_ALLOW_WASM_CODE_GENERATION_INDEX
#
define
NODE_CONTEXT_ALLOW_WASM_CODE_GENERATION_INDEX
34
#
endif
#
ifndef
NODE_CONTEXT_TAG
#
define
NODE_CONTEXT_TAG
35
#
endif
enum
ContextEmbedderIndex {
kEnvironment
=
NODE_CONTEXT_EMBEDDER_DATA_INDEX
,
kSandboxObject
=
NODE_CONTEXT_SANDBOX_OBJECT_INDEX
,
kAllowWasmCodeGeneration
=
NODE_CONTEXT_ALLOW_WASM_CODE_GENERATION_INDEX
,
kContextTag
=
NODE_CONTEXT_TAG
,
};
}
//
namespace node
#
endif
//
defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#
endif
//
SRC_NODE_CONTEXT_DATA_H_
Back
|
FazBrowse Home
|
New Git URL