Skip to content

Commit

Permalink
fixup! fixup! fixup! async_hooks: improve resource stack performance
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Jul 13, 2020
1 parent 078c427 commit 5ddee99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/env.h
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,10 @@ class AsyncHooks : public MemoryRetainer {
inline AliasedFloat64Array& async_id_fields();
inline AliasedFloat64Array& async_ids_stack();
inline v8::Local<v8::Array> js_execution_async_resources();
// Returns the native executionAsyncResource value at stack index `index`.
// Resources provided on the JS side are not stored on the native stack,
// in which case an empty `Local<>` is returned.
// The `js_execution_async_resources` array contains the value in that case.
inline v8::Local<v8::Object> native_execution_async_resource(size_t index);

inline v8::Local<v8::String> provider_string(int idx);
Expand Down

0 comments on commit 5ddee99

Please sign in to comment.