From 0ae46a7a862e26ccd611aed4d189a5e480639a4c Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Sun, 21 Apr 2019 13:47:30 +0800 Subject: src: use predefined AliasedBuffer types in the code base Instead of allowing the callers to instantiate the template with any numeric types (such as aliasing a Uint8Array to double[]), predefine types that make sense and use those instead. PR-URL: https://github.com/nodejs/node/pull/27334 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell --- 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 5c972c9841a..3d546193df2 100644 --- a/src/node_perf_common.h +++ b/src/node_perf_common.h @@ -71,9 +71,9 @@ class performance_state { milestones[i] = -1.; } - AliasedBuffer root; - AliasedBuffer milestones; - AliasedBuffer observers; + AliasedUint8Array root; + AliasedFloat64Array milestones; + AliasedUint32Array observers; uint64_t performance_last_gc_start_mark = 0; -- cgit v1.2.3