diff options
author | Michaël Zasso <targos@protonmail.com> | 2022-01-29 08:33:07 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2022-02-02 17:23:18 +0100 |
commit | 974ab4060fe3eff74dc0a62a5a27d516738f4c55 (patch) | |
tree | 30fbcca796ca5cc7b4abf917e716e2b02899cb7a /deps/v8/src/handles | |
parent | 4318b2348dbcd5003e0c4a14b5fe378cceec3c81 (diff) | |
download | node-new-974ab4060fe3eff74dc0a62a5a27d516738f4c55.tar.gz |
deps: update V8 to 9.8.177.9
PR-URL: https://github.com/nodejs/node/pull/41610
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'deps/v8/src/handles')
-rw-r--r-- | deps/v8/src/handles/handles-inl.h | 4 | ||||
-rw-r--r-- | deps/v8/src/handles/handles.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/deps/v8/src/handles/handles-inl.h b/deps/v8/src/handles/handles-inl.h index 4c1817e80d..c0dab51de8 100644 --- a/deps/v8/src/handles/handles-inl.h +++ b/deps/v8/src/handles/handles-inl.h @@ -95,7 +95,7 @@ HandleScope::HandleScope(HandleScope&& other) V8_NOEXCEPT } HandleScope::~HandleScope() { - if (isolate_ == nullptr) return; + if (V8_UNLIKELY(isolate_ == nullptr)) return; CloseScope(isolate_, prev_next_, prev_limit_); } @@ -123,7 +123,7 @@ void HandleScope::CloseScope(Isolate* isolate, Address* prev_next, std::swap(current->next, prev_next); current->level--; Address* limit = prev_next; - if (current->limit != prev_limit) { + if (V8_UNLIKELY(current->limit != prev_limit)) { current->limit = prev_limit; limit = prev_limit; DeleteExtensions(isolate); diff --git a/deps/v8/src/handles/handles.h b/deps/v8/src/handles/handles.h index 166b7ee4ab..3bde90f81f 100644 --- a/deps/v8/src/handles/handles.h +++ b/deps/v8/src/handles/handles.h @@ -199,7 +199,7 @@ inline std::ostream& operator<<(std::ostream& os, Handle<T> handle); // for which the handle scope has been deleted is undefined. class V8_NODISCARD HandleScope { public: - explicit inline HandleScope(Isolate* isolate); + explicit V8_INLINE HandleScope(Isolate* isolate); inline HandleScope(HandleScope&& other) V8_NOEXCEPT; HandleScope(const HandleScope&) = delete; HandleScope& operator=(const HandleScope&) = delete; @@ -213,7 +213,7 @@ class V8_NODISCARD HandleScope { void* operator new(size_t size) = delete; void operator delete(void* size_t) = delete; - inline ~HandleScope(); + V8_INLINE ~HandleScope(); inline HandleScope& operator=(HandleScope&& other) V8_NOEXCEPT; @@ -253,8 +253,8 @@ class V8_NODISCARD HandleScope { Address* prev_limit_; // Close the handle scope resetting limits to a previous state. - static inline void CloseScope(Isolate* isolate, Address* prev_next, - Address* prev_limit); + static V8_INLINE void CloseScope(Isolate* isolate, Address* prev_next, + Address* prev_limit); // Extend the handle scope making room for more handles. V8_EXPORT_PRIVATE static Address* Extend(Isolate* isolate); |