mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
src: remove duplicate V macros in node_v8.cc
PR-URL: https://github.com/nodejs/node/pull/36454 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
1 parent
dabbd6d8ad
commit
308cb93304
1 file changed
-12
@@ -196,7 +196,6 @@ void Initialize(Local<Object> target,
|
||||
Uint32::NewFromUnsigned(env->isolate(), i)).Check();
|
||||
|
||||
HEAP_STATISTICS_PROPERTIES(V)
|
||||
#undef V
|
||||
|
||||
// Export symbols used by v8.getHeapCodeStatistics()
|
||||
env->SetMethod(
|
||||
@@ -208,13 +207,7 @@ void Initialize(Local<Object> target,
|
||||
binding_data->heap_code_statistics_buffer.GetJSArray())
|
||||
.Check();
|
||||
|
||||
#define V(i, _, name) \
|
||||
target->Set(env->context(), \
|
||||
FIXED_ONE_BYTE_STRING(env->isolate(), #name), \
|
||||
Uint32::NewFromUnsigned(env->isolate(), i)).Check();
|
||||
|
||||
HEAP_CODE_STATISTICS_PROPERTIES(V)
|
||||
#undef V
|
||||
|
||||
size_t number_of_heap_spaces = env->isolate()->NumberOfHeapSpaces();
|
||||
|
||||
@@ -244,11 +237,6 @@ void Initialize(Local<Object> target,
|
||||
binding_data->heap_space_statistics_buffer.GetJSArray())
|
||||
.Check();
|
||||
|
||||
#define V(i, _, name) \
|
||||
target->Set(env->context(), \
|
||||
FIXED_ONE_BYTE_STRING(env->isolate(), #name), \
|
||||
Uint32::NewFromUnsigned(env->isolate(), i)).Check();
|
||||
|
||||
HEAP_SPACE_STATISTICS_PROPERTIES(V)
|
||||
#undef V
|
||||
|
||||
|
||||
Reference in new issue
Block a user