Skip to content

Commit

Permalink
deps: V8: stub backport 65238018ca4b and 8d08318e1a85
Browse files Browse the repository at this point in the history
Refs: v8/v8@6523801
Refs: v8/v8@8d08318

PR-URL: #32885
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Ujjwal Sharma <[email protected]>
Reviewed-By: Gerhard Stöbich <[email protected]>
Reviewed-By: Beth Griggs <[email protected]>
  • Loading branch information
addaleax authored and BethGriggs committed Apr 20, 2020
1 parent 8198e78 commit fdaa365
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
'v8_embedder_string': '-node.27',
'v8_embedder_string': '-node.28',

##### V8 defaults for Node.js #####

Expand Down
4 changes: 4 additions & 0 deletions deps/v8/include/v8.h
Original file line number Diff line number Diff line change
Expand Up @@ -7545,6 +7545,8 @@ class V8_EXPORT HeapStatistics {
size_t total_heap_size_executable() { return total_heap_size_executable_; }
size_t total_physical_size() { return total_physical_size_; }
size_t total_available_size() { return total_available_size_; }
size_t total_global_handles_size() { return total_global_handles_size_; }
size_t used_global_handles_size() { return used_global_handles_size_; }
size_t used_heap_size() { return used_heap_size_; }
size_t heap_size_limit() { return heap_size_limit_; }
size_t malloced_memory() { return malloced_memory_; }
Expand Down Expand Up @@ -7572,6 +7574,8 @@ class V8_EXPORT HeapStatistics {
bool does_zap_garbage_;
size_t number_of_native_contexts_;
size_t number_of_detached_contexts_;
size_t total_global_handles_size_;
size_t used_global_handles_size_;

friend class V8;
friend class Isolate;
Expand Down
4 changes: 3 additions & 1 deletion deps/v8/src/api/api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5753,7 +5753,9 @@ HeapStatistics::HeapStatistics()
peak_malloced_memory_(0),
does_zap_garbage_(false),
number_of_native_contexts_(0),
number_of_detached_contexts_(0) {}
number_of_detached_contexts_(0),
total_global_handles_size_(0),
used_global_handles_size_(0) {}

HeapSpaceStatistics::HeapSpaceStatistics()
: space_name_(nullptr),
Expand Down

0 comments on commit fdaa365

Please sign in to comment.