diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-04-21 08:47:30 +0300 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-04-26 09:23:31 +0300 |
commit | 0ae46a7a862e26ccd611aed4d189a5e480639a4c (patch) | |
tree | 9b37a35a1e512b1c09c6e8f45ab3a45d3e67c43b /src/memory_tracker.h | |
parent | 5fe4d5966fd9c2b30b3da3ec7cb47132aa8cdfdd (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/memory_tracker.h')
-rw-r--r-- | src/memory_tracker.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memory_tracker.h b/src/memory_tracker.h index 6a5ab155117..032c9a984e5 100644 --- a/src/memory_tracker.h +++ b/src/memory_tracker.h @@ -215,7 +215,7 @@ class MemoryTracker { const char* node_name = nullptr); template <class NativeT, class V8T> inline void TrackField(const char* edge_name, - const AliasedBuffer<NativeT, V8T>& value, + const AliasedBufferBase<NativeT, V8T>& value, const char* node_name = nullptr); // Put a memory container into the graph, create an edge from |