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:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-04-21 08:47:30 +0300
committerJoyee Cheung <joyeec9h3@gmail.com>2019-04-26 09:23:31 +0300
commit0ae46a7a862e26ccd611aed4d189a5e480639a4c (patch)
tree9b37a35a1e512b1c09c6e8f45ab3a45d3e67c43b /src/node_perf_common.h
parent5fe4d5966fd9c2b30b3da3ec7cb47132aa8cdfdd (diff)
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 <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@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 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<uint8_t, v8::Uint8Array> root;
- AliasedBuffer<double, v8::Float64Array> milestones;
- AliasedBuffer<uint32_t, v8::Uint32Array> observers;
+ AliasedUint8Array root;
+ AliasedFloat64Array milestones;
+ AliasedUint32Array observers;
uint64_t performance_last_gc_start_mark = 0;