GeezerVison is showing github.com — src: remove duplicate V macros in node_v8.cc · nodejs/node@308cb93
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/node_v8.cc -12Lines changed: 0 additions & 12 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -196,7 +196,6 @@ void Initialize(Local<Object> target, |
196 | 196 | Uint32::NewFromUnsigned(env->isolate(), i)).Check(); |
197 | 197 |
|
198 | 198 | HEAP_STATISTICS_PROPERTIES(V) |
199 | | -#undef V |
200 | 199 |
|
201 | 200 | // Export symbols used by v8.getHeapCodeStatistics() |
202 | 201 | env->SetMethod( |
@@ -208,13 +207,7 @@ void Initialize(Local<Object> target, |
208 | 207 | binding_data->heap_code_statistics_buffer.GetJSArray()) |
209 | 208 | .Check(); |
210 | 209 |
|
211 | | -#define V(i, _, name) \ |
212 | | - target->Set(env->context(), \ |
213 | | - FIXED_ONE_BYTE_STRING(env->isolate(), #name), \ |
214 | | - Uint32::NewFromUnsigned(env->isolate(), i)).Check(); |
215 | | - |
216 | 210 | HEAP_CODE_STATISTICS_PROPERTIES(V) |
217 | | -#undef V |
218 | 211 |
|
219 | 212 | size_t number_of_heap_spaces = env->isolate()->NumberOfHeapSpaces(); |
220 | 213 |
|
@@ -244,11 +237,6 @@ void Initialize(Local<Object> target, |
244 | 237 | binding_data->heap_space_statistics_buffer.GetJSArray()) |
245 | 238 | .Check(); |
246 | 239 |
|
247 | | -#define V(i, _, name) \ |
248 | | - target->Set(env->context(), \ |
249 | | - FIXED_ONE_BYTE_STRING(env->isolate(), #name), \ |
250 | | - Uint32::NewFromUnsigned(env->isolate(), i)).Check(); |
251 | | - |
252 | 240 | HEAP_SPACE_STATISTICS_PROPERTIES(V) |
253 | 241 | #undef V |
254 | 242 |
|
|