v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 386 | skipping to change at line 386 | |||
* refer to the object, the garbage collector will perform a | * refer to the object, the garbage collector will perform a | |||
* callback to the given V8::WeakReferenceCallback function, passing | * callback to the given V8::WeakReferenceCallback function, passing | |||
* it the object reference and the given parameters. | * it the object reference and the given parameters. | |||
*/ | */ | |||
inline void MakeWeak(void* parameters, WeakReferenceCallback callback); | inline void MakeWeak(void* parameters, WeakReferenceCallback callback); | |||
/** Clears the weak reference to this object.*/ | /** Clears the weak reference to this object.*/ | |||
inline void ClearWeak(); | inline void ClearWeak(); | |||
/** | /** | |||
* Marks the reference to this object independent. Garbage collector | ||||
* is free to ignore any object groups containing this object. | ||||
* Weak callback for an independent handle should not | ||||
* assume that it will be preceded by a global GC prologue callback | ||||
* or followed by a global GC epilogue callback. | ||||
*/ | ||||
inline void MarkIndependent(); | ||||
/** | ||||
*Checks if the handle holds the only reference to an object. | *Checks if the handle holds the only reference to an object. | |||
*/ | */ | |||
inline bool IsNearDeath() const; | inline bool IsNearDeath() const; | |||
/** | /** | |||
* Returns true if the handle's reference is weak. | * Returns true if the handle's reference is weak. | |||
*/ | */ | |||
inline bool IsWeak() const; | inline bool IsWeak() const; | |||
/** | /** | |||
skipping to change at line 3042 | skipping to change at line 3051 | |||
private: | private: | |||
V8(); | V8(); | |||
static internal::Object** GlobalizeReference(internal::Object** handle); | static internal::Object** GlobalizeReference(internal::Object** handle); | |||
static void DisposeGlobal(internal::Object** global_handle); | static void DisposeGlobal(internal::Object** global_handle); | |||
static void MakeWeak(internal::Object** global_handle, | static void MakeWeak(internal::Object** global_handle, | |||
void* data, | void* data, | |||
WeakReferenceCallback); | WeakReferenceCallback); | |||
static void ClearWeak(internal::Object** global_handle); | static void ClearWeak(internal::Object** global_handle); | |||
static void MarkIndependent(internal::Object** global_handle); | ||||
static bool IsGlobalNearDeath(internal::Object** global_handle); | static bool IsGlobalNearDeath(internal::Object** global_handle); | |||
static bool IsGlobalWeak(internal::Object** global_handle); | static bool IsGlobalWeak(internal::Object** global_handle); | |||
static void SetWrapperClassId(internal::Object** global_handle, | static void SetWrapperClassId(internal::Object** global_handle, | |||
uint16_t class_id); | uint16_t class_id); | |||
template <class T> friend class Handle; | template <class T> friend class Handle; | |||
template <class T> friend class Local; | template <class T> friend class Local; | |||
template <class T> friend class Persistent; | template <class T> friend class Persistent; | |||
friend class Context; | friend class Context; | |||
}; | }; | |||
skipping to change at line 3727 | skipping to change at line 3737 | |||
parameters, | parameters, | |||
callback); | callback); | |||
} | } | |||
template <class T> | template <class T> | |||
void Persistent<T>::ClearWeak() { | void Persistent<T>::ClearWeak() { | |||
V8::ClearWeak(reinterpret_cast<internal::Object**>(**this)); | V8::ClearWeak(reinterpret_cast<internal::Object**>(**this)); | |||
} | } | |||
template <class T> | template <class T> | |||
void Persistent<T>::MarkIndependent() { | ||||
V8::MarkIndependent(reinterpret_cast<internal::Object**>(**this)); | ||||
} | ||||
template <class T> | ||||
void Persistent<T>::SetWrapperClassId(uint16_t class_id) { | void Persistent<T>::SetWrapperClassId(uint16_t class_id) { | |||
V8::SetWrapperClassId(reinterpret_cast<internal::Object**>(**this), class _id); | V8::SetWrapperClassId(reinterpret_cast<internal::Object**>(**this), class _id); | |||
} | } | |||
Arguments::Arguments(internal::Object** implicit_args, | Arguments::Arguments(internal::Object** implicit_args, | |||
internal::Object** values, int length, | internal::Object** values, int length, | |||
bool is_construct_call) | bool is_construct_call) | |||
: implicit_args_(implicit_args), | : implicit_args_(implicit_args), | |||
values_(values), | values_(values), | |||
length_(length), | length_(length), | |||
End of changes. 3 change blocks. | ||||
0 lines changed or deleted | 15 lines changed or added | |||