Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2020-12-01 14:47:09 +0300
committerDaniel Bevenius <daniel.bevenius@gmail.com>2020-12-04 10:34:27 +0300
commite4614e87b59a89e55aad5453b496d4d8d78cb568 (patch)
tree98106b7411bd1b5c0fe3075fe131775442829673 /src/node_perf_common.h
parentf7dd330ba0e7bfa97fad50000a5499faffcd6320 (diff)
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<V8T>(*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 <himself65@outlook.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node_perf_common.h')
-rw-r--r--src/node_perf_common.h6
1 files changed, 3 insertions, 3 deletions
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);