Skip to content

Commit 12d83b3

Browse files
juanarboltargos
authored andcommitted
src: clean v8 namespaces in env.cc file
PR-URL: #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>
1 parent 13a7e05 commit 12d83b3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/env.cc

+7-7
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ std::vector<size_t> IsolateData::Serialize(SnapshotCreator* creator) {
6464
// but that's not part of the V8 API contract so we use an array
6565
// just to be safe.
6666

67-
#define VP(PropertyName, StringValue) V(v8::Private, PropertyName)
68-
#define VY(PropertyName, StringValue) V(v8::Symbol, PropertyName)
69-
#define VS(PropertyName, StringValue) V(v8::String, PropertyName)
67+
#define VP(PropertyName, StringValue) V(Private, PropertyName)
68+
#define VY(PropertyName, StringValue) V(Symbol, PropertyName)
69+
#define VS(PropertyName, StringValue) V(String, PropertyName)
7070
#define V(TypeName, PropertyName) \
7171
indexes.push_back(creator->AddData(PropertyName##_.Get(isolate)));
7272
PER_ISOLATE_PRIVATE_SYMBOL_PROPERTIES(VP)
@@ -84,9 +84,9 @@ void IsolateData::DeserializeProperties(const std::vector<size_t>* indexes) {
8484
size_t i = 0;
8585
HandleScope handle_scope(isolate_);
8686

87-
#define VP(PropertyName, StringValue) V(v8::Private, PropertyName)
88-
#define VY(PropertyName, StringValue) V(v8::Symbol, PropertyName)
89-
#define VS(PropertyName, StringValue) V(v8::String, PropertyName)
87+
#define VP(PropertyName, StringValue) V(Private, PropertyName)
88+
#define VY(PropertyName, StringValue) V(Symbol, PropertyName)
89+
#define VS(PropertyName, StringValue) V(String, PropertyName)
9090
#define V(TypeName, PropertyName) \
9191
do { \
9292
MaybeLocal<TypeName> field = \
@@ -994,7 +994,7 @@ Environment* Environment::worker_parent_env() const {
994994
void MemoryTracker::TrackField(const char* edge_name,
995995
const CleanupHookCallback& value,
996996
const char* node_name) {
997-
v8::HandleScope handle_scope(isolate_);
997+
HandleScope handle_scope(isolate_);
998998
// Here, we utilize the fact that CleanupHookCallback instances
999999
// are all unique and won't be tracked twice in one BuildEmbedderGraph
10001000
// callback.

0 commit comments

Comments
 (0)