Lines Matching refs:persistent
301 static PersistentContainerValue ClearAndLeak(Global<V>* persistent) {
302 V* v = persistent->val_;
303 persistent->val_ = 0;
307 static PersistentContainerValue Leak(Global<V>* persistent) {
308 return reinterpret_cast<PersistentContainerValue>(persistent->val_);
367 Global<V> persistent(this->isolate(), value);
368 return SetUnique(key, &persistent);
382 Global<V> SetUnique(const K& key, Global<V>* persistent) {
384 Local<V> value(Local<V>::New(this->isolate(), *persistent));
385 persistent->template SetWeak<typename Traits::WeakCallbackDataType>(
389 Traits::Set(this->impl(), key, this->ClearAndLeak(persistent));
434 Global<V> persistent(this->isolate(), value);
435 return SetUnique(key, &persistent);
449 Global<V> SetUnique(const K& key, Global<V>* persistent) {
455 Local<V> value(Local<V>::New(this->isolate(), *persistent));
456 persistent->template SetWeak<typename Traits::WeakCallbackDataType>(
461 Traits::Set(this->impl(), key, this->ClearAndLeak(persistent));
574 Global<V> persistent(isolate_, value);
575 Traits::Append(&impl_, ClearAndLeak(&persistent));
581 void Append(Global<V> persistent) {
582 Traits::Append(&impl_, ClearAndLeak(&persistent));
627 static PersistentContainerValue ClearAndLeak(Global<V>* persistent) {
628 V* v = persistent->val_;
629 persistent->val_ = 0;