From e4614e87b59a89e55aad5453b496d4d8d78cb568 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Tue, 1 Dec 2020 12:47:09 +0100 Subject: src: rename AliasedBufferInfo->AliasedBufferIndex This commit suggest renaming AlaisedBufferInfo to AlaisedBufferIndex to make the code more readable. The main motivation for this change is that I personally think that the following code could be a little clearer: context->GetDataFromSnapshotOnce(*info_).ToLocalChecked(); Even knowing that GetDataFromSnapshotOnce takes a size_t I had to double check the type of info_ to make sure. PR-URL: https://github.com/nodejs/node/pull/36339 Reviewed-By: Zeyu Yang Reviewed-By: Rich Trott --- src/node_perf_common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/node_perf_common.h') diff --git a/src/node_perf_common.h b/src/node_perf_common.h index 5dc77c6fe91..edc142d3512 100644 --- a/src/node_perf_common.h +++ b/src/node_perf_common.h @@ -57,9 +57,9 @@ enum PerformanceEntryType { class PerformanceState { public: struct SerializeInfo { - AliasedBufferInfo root; - AliasedBufferInfo milestones; - AliasedBufferInfo observers; + AliasedBufferIndex root; + AliasedBufferIndex milestones; + AliasedBufferIndex observers; }; explicit PerformanceState(v8::Isolate* isolate, const SerializeInfo* info); -- cgit v1.2.3