mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
src: clean v8 namespaces in env.cc file
PR-URL: https://github.com/nodejs/node/pull/32374 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
aa282276ec
commit
778dcc8f1a
1 file changed
+7
-7
+7
-7
@@ -64,9 +64,9 @@ std::vector<size_t> IsolateData::Serialize(SnapshotCreator* creator) {
|
||||
// but that's not part of the V8 API contract so we use an array
|
||||
// just to be safe.
|
||||
|
||||
#define VP(PropertyName, StringValue) V(v8::Private, PropertyName)
|
||||
#define VY(PropertyName, StringValue) V(v8::Symbol, PropertyName)
|
||||
#define VS(PropertyName, StringValue) V(v8::String, PropertyName)
|
||||
#define VP(PropertyName, StringValue) V(Private, PropertyName)
|
||||
#define VY(PropertyName, StringValue) V(Symbol, PropertyName)
|
||||
#define VS(PropertyName, StringValue) V(String, PropertyName)
|
||||
#define V(TypeName, PropertyName) \
|
||||
indexes.push_back(creator->AddData(PropertyName##_.Get(isolate)));
|
||||
PER_ISOLATE_PRIVATE_SYMBOL_PROPERTIES(VP)
|
||||
@@ -84,9 +84,9 @@ void IsolateData::DeserializeProperties(const std::vector<size_t>* indexes) {
|
||||
size_t i = 0;
|
||||
HandleScope handle_scope(isolate_);
|
||||
|
||||
#define VP(PropertyName, StringValue) V(v8::Private, PropertyName)
|
||||
#define VY(PropertyName, StringValue) V(v8::Symbol, PropertyName)
|
||||
#define VS(PropertyName, StringValue) V(v8::String, PropertyName)
|
||||
#define VP(PropertyName, StringValue) V(Private, PropertyName)
|
||||
#define VY(PropertyName, StringValue) V(Symbol, PropertyName)
|
||||
#define VS(PropertyName, StringValue) V(String, PropertyName)
|
||||
#define V(TypeName, PropertyName) \
|
||||
do { \
|
||||
MaybeLocal<TypeName> field = \
|
||||
@@ -994,7 +994,7 @@ Environment* Environment::worker_parent_env() const {
|
||||
void MemoryTracker::TrackField(const char* edge_name,
|
||||
const CleanupHookCallback& value,
|
||||
const char* node_name) {
|
||||
v8::HandleScope handle_scope(isolate_);
|
||||
HandleScope handle_scope(isolate_);
|
||||
// Here, we utilize the fact that CleanupHookCallback instances
|
||||
// are all unique and won't be tracked twice in one BuildEmbedderGraph
|
||||
// callback.
|
||||
|
||||
Reference in new issue
Block a user