Home | History | Annotate | Download | only in include

Lines Matching refs:Persistent

148 template <class T> class Persistent;
215 Persistent<T>* object,
239 * There are two types of handles: local and persistent handles.
241 * local operations. They are managed by HandleScopes. Persistent
316 bool operator==(const Persistent<S>& that) const) {
353 V8_INLINE(static Handle<T> New(Isolate* isolate, const Persistent<T>& that)) {
369 template<class F> friend class Persistent;
455 V8_INLINE(static Local<T> New(Isolate* isolate, const Persistent<T>& that));
466 template<class F> friend class Persistent;
484 * allocated, a Persistent handle remains valid until it is explicitly
487 * A persistent handle contains a reference to a storage cell within
490 * cell can be created using Persistent::New and existing handles can
491 * be disposed using Persistent::Dispose. Since persistent handles
492 * are passed by value you may have many persistent handle objects
494 * persistent handle as an argument to a function you will not get two
498 template <class T> class Persistent // NOLINT
506 V8_INLINE(Persistent()) : val_(0) { }
508 // V8_INLINE(~Persistent()) {
518 * to the copy constructor, this creates a new persistent handle which needs
521 template <class S> V8_INLINE(Persistent(Isolate* isolate, Handle<S> that))
524 template <class S> V8_INLINE(Persistent(Isolate* isolate,
525 const Persistent<S>& that)) // NOLINT
530 * Creates an empty persistent handle that doesn't point to any
533 V8_INLINE(Persistent()) : Handle<T>() { }
536 * Creates a persistent handle for the same storage cell as the
537 * specified handle. This constructor allows you to pass persistent
538 * handles as arguments by value and to assign between persistent
540 * persistent handles, for instance from a Persistent<String> to a
541 * Persistent<Number> will cause a compile-time error. Assigning
542 * between compatible persistent handles, for instance assigning a
543 * Persistent<String> to a variable declared as Persistent<Value>,
546 template <class S> V8_INLINE(Persistent(Persistent<S> that))
556 template <class S> V8_INLINE(Persistent(S* that)) : Handle<T>(that) { }
560 * to the copy constructor, this creates a new persistent handle which needs
563 template <class S> V8_INLINE(Persistent(Isolate* isolate, Handle<S> that))
567 * "Casts" a plain handle which is known to be a persistent handle
568 * to a persistent handle.
570 template <class S> explicit V8_INLINE(Persistent(Handle<S> that))
576 template <class S> V8_INLINE(static Persistent<T> Cast(Persistent<S> that)) {
580 if (that.IsEmpty()) return Persistent<T>();
582 return Persistent<T>(T::Cast(*that));
585 template <class S> V8_INLINE(Persistent<S> As()) {
586 return Persistent<S>::Cast(*this);
591 V8_INLINE(static Persistent<T>& Cast(Persistent<S>& that)) { // NOLINT
597 return reinterpret_cast<Persistent<T>&>(that);
600 template <class S> V8_INLINE(Persistent<S>& As()) { // NOLINT
601 return Persistent<S>::Cast(*this);
606 V8_DEPRECATED(static Persistent<T> New(Handle<T> that));
607 V8_INLINE(static Persistent<T> New(Isolate* isolate, Handle<T> that));
608 V8_INLINE(static Persistent<T> New(Isolate* isolate, Persistent<T> that));
613 bool operator==(const Persistent<S>& that) const) {
633 * Releases the storage cell referenced by this persistent handle.
747 V8_INLINE(void Reset(Isolate* isolate, const Persistent<T>& other));
753 * Persistent handle which points to it and Disposing it). In the future,
754 * destructing a Persistent will also Dispose it. With this function, the
755 * embedder can let the Persistent go out of scope without it getting
764 V8_INLINE(Persistent(const Persistent& that)) : val_(that.val_) {}
766 V8_INLINE(Persistent& operator=(const Persistent& that)) { // NOLINT
777 template <class S> V8_INLINE(Persistent(S* that)) : val_(that) { }
792 template<class F> friend class Persistent;
2996 template <typename S> V8_INLINE(void Set(const Persistent<S>& handle));
4107 void SetObjectGroupId(const Persistent<Value>& object,
4118 const Persistent<Value>& child);
4126 void SetReference(const Persistent<Object>& parent,
4127 const Persistent<Value>& child);
4312 * Interface for iterating through all the persistent handles in the heap.
4317 virtual void VisitPersistentHandle(Persistent<Value>* value,
4740 * Iterates through all the persistent handles in the current isolate's heap
4746 * Iterates through all the persistent handles in the current isolate's heap
4806 template <class T> friend class Persistent;
5025 V8_DEPRECATED(static Persistent<Context> New(
5146 V8_INLINE(Scope(Isolate* isolate, Persistent<Context>& context)) // NOLINT
5641 Local<T> Local<T>::New(Isolate* isolate, const Persistent<T>& that) {
5683 Persistent<T> Persistent<T>::New(Handle<T> that) {
5689 Persistent<T> Persistent<T>::New(Isolate* isolate, Handle<T> that) {
5694 Persistent<T> Persistent<T>::New(Isolate* isolate, Persistent<T> that) {
5701 T* Persistent<T>::New(Isolate* isolate, T* that) {
5711 bool Persistent<T>::IsIndependent() const {
5720 bool Persistent<T>::IsNearDeath() const {
5731 bool Persistent<T>::IsWeak() const {
5740 void Persistent<T>::Dispose() {
5751 void Persistent<T>::MakeWeak(
5764 void Persistent<T>::MakeWeak(
5773 void Persistent<T>::MakeWeak(
5783 void Persistent<T>::MakeWeak(
5792 void Persistent<T>::ClearWeak() {
5798 void Persistent<T>::MarkIndependent() {
5808 void Persistent<T>::MarkPartiallyDependent() {
5818 void Persistent<T>::Reset(Isolate* isolate, const Handle<T>& other) {
5836 void Persistent<T>::Reset(Isolate* isolate, const Persistent<T>& other) {
5850 T* Persistent<T>::ClearAndLeak() {
5854 *this = Persistent<T>();
5864 void Persistent<T>::SetWrapperClassId(uint16_t class_id) {
5874 uint16_t Persistent<T>::WrapperClassId() const {
5888 void ReturnValue<T>::Set(const Persistent<S>& handle) {