diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-10-17 14:02:00 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-17 16:02:00 -0400 |
commit | 4d669c63f45c315ce022c47fc8c53df8d03e31fb (patch) | |
tree | 1fa173373849a5ef9769793f18cc69c32400dd94 /libdeno/internal.h | |
parent | 21bcdd49cd4623691fe5b5f42a67095740af94c6 (diff) |
Reduce ArrayBuffer allocations in ImportBuf()
Diffstat (limited to 'libdeno/internal.h')
-rw-r--r-- | libdeno/internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libdeno/internal.h b/libdeno/internal.h index f8b587658..02945dd2f 100644 --- a/libdeno/internal.h +++ b/libdeno/internal.h @@ -16,6 +16,10 @@ struct deno_s { v8::Persistent<v8::Function> global_error_handler; v8::Persistent<v8::Function> promise_reject_handler; v8::Persistent<v8::Function> promise_error_examiner; + + v8::Persistent<v8::ArrayBuffer> global_import_buf; + void* global_import_buf_ptr; + int32_t pending_promise_events; v8::Persistent<v8::Context> context; v8::Persistent<v8::Map> async_data_map; |