mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
src,test: ensure that V8 fast APIs are called
Adds a debug-only macro that can be used to track when a V8 fast API is called. A map of counters is maintained in in thread-local storage and an internal API can be called to get the total count associated with a call id. Specific tests are added and `crypto.timingSafeEqual` as well as internal documentation are updated to show how to use the macro and test fast API calls without running long loops. PR-URL: https://github.com/nodejs/node/pull/54317 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
parent
9e8cc2933e
commit
1d35a066e7
12 changed files with 284 additions and 3 deletions
2
node.gyp
2
node.gyp
|
@ -107,6 +107,7 @@
|
|||
'src/node_constants.cc',
|
||||
'src/node_contextify.cc',
|
||||
'src/node_credentials.cc',
|
||||
'src/node_debug.cc',
|
||||
'src/node_dir.cc',
|
||||
'src/node_dotenv.cc',
|
||||
'src/node_env_var.cc',
|
||||
|
@ -229,6 +230,7 @@
|
|||
'src/node_constants.h',
|
||||
'src/node_context_data.h',
|
||||
'src/node_contextify.h',
|
||||
'src/node_debug.h',
|
||||
'src/node_dir.h',
|
||||
'src/node_dotenv.h',
|
||||
'src/node_errors.h',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue