diff options
author | Michaël Zasso <targos@protonmail.com> | 2019-03-30 15:21:26 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-04-03 08:29:22 +0200 |
commit | 2ea9de2e85d937c9bc5d778c623b22614c2b8a72 (patch) | |
tree | 79a3248a0be08358e092342b33250adc8f936810 /deps/v8/include | |
parent | 98b5ba840e00cea1614266745fa0ccf1e6211315 (diff) | |
download | android-node-v8-2ea9de2e85d937c9bc5d778c623b22614c2b8a72.tar.gz android-node-v8-2ea9de2e85d937c9bc5d778c623b22614c2b8a72.tar.bz2 android-node-v8-2ea9de2e85d937c9bc5d778c623b22614c2b8a72.zip |
deps: V8: cherry-pick f4b860d
Original commit message:
[heap,api] Remove deprecated APIs
Bug: chromium:923361, v8:8834
Change-Id: I6ec42aeb74bea5c0629fcdc3f95c125f5de534a0
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1526195
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Auto-Submit: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60289}
Refs: https://github.com/v8/v8/commit/f4b860d9b81956fb9d6815932522f4043fef56fa
PR-URL: https://github.com/nodejs/node/pull/27013
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/v8/include')
-rw-r--r-- | deps/v8/include/v8-internal.h | 1 | ||||
-rw-r--r-- | deps/v8/include/v8.h | 26 |
2 files changed, 0 insertions, 27 deletions
diff --git a/deps/v8/include/v8-internal.h b/deps/v8/include/v8-internal.h index 5cc62f3e72..a0d0bfb959 100644 --- a/deps/v8/include/v8-internal.h +++ b/deps/v8/include/v8-internal.h @@ -164,7 +164,6 @@ class Internals { static const int kNodeStateMask = 0x7; static const int kNodeStateIsWeakValue = 2; static const int kNodeStateIsPendingValue = 3; - static const int kNodeStateIsNearDeathValue = 4; static const int kNodeIsIndependentShift = 3; static const int kNodeIsActiveShift = 4; diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h index 5635bd21b1..8bb2990c49 100644 --- a/deps/v8/include/v8.h +++ b/deps/v8/include/v8.h @@ -576,10 +576,6 @@ template <class T> class PersistentBase { V8_DEPRECATED("See MarkIndependent.", V8_INLINE bool IsIndependent() const); - /** Checks if the handle holds the only reference to an object. */ - V8_DEPRECATED("Garbage collection internal state should not be relied on.", - V8_INLINE bool IsNearDeath() const); - /** Returns true if the handle's reference is weak. */ V8_INLINE bool IsWeak() const; @@ -8521,17 +8517,6 @@ class V8_EXPORT Isolate { /** * Iterates through all the persistent handles in the current isolate's heap - * that have class_ids and are candidates to be marked as partially dependent - * handles. This will visit handles to young objects created since the last - * garbage collection but is free to visit an arbitrary superset of these - * objects. - */ - V8_DEPRECATED( - "Use VisitHandlesWithClassIds", - void VisitHandlesForPartialDependence(PersistentHandleVisitor* visitor)); - - /** - * Iterates through all the persistent handles in the current isolate's heap * that have class_ids and are weak to be marked as inactive if there is no * pending activity for the handle. */ @@ -9784,17 +9769,6 @@ bool PersistentBase<T>::IsIndependent() const { } template <class T> -bool PersistentBase<T>::IsNearDeath() const { - typedef internal::Internals I; - if (this->IsEmpty()) return false; - uint8_t node_state = - I::GetNodeState(reinterpret_cast<internal::Address*>(this->val_)); - return node_state == I::kNodeStateIsNearDeathValue || - node_state == I::kNodeStateIsPendingValue; -} - - -template <class T> bool PersistentBase<T>::IsWeak() const { typedef internal::Internals I; if (this->IsEmpty()) return false; |