Lines Matching full:handle
22 // Represents a handle to an object on the heap, but with the additional
25 // Creating a Unique<T> requires first dereferencing the handle to obtain
38 explicit Unique(Handle<T> handle) {
39 if (handle.is_null()) {
48 DCHECK(!AllowHeapAllocation::IsAllowed() || handle->IsMap());
49 raw_address_ = reinterpret_cast<Address>(*handle);
52 handle_ = handle;
56 Unique(Address raw_address, Handle<T> handle)
57 : raw_address_(raw_address), handle_(handle) { }
99 inline Handle<T> handle() const {
104 return Unique<T>(that.raw_address_, Handle<T>::cast(that.handle_));
112 static Unique<T> CreateUninitialized(Handle<T> handle) {
113 return Unique<T>(reinterpret_cast<Address>(NULL), handle);
116 static Unique<T> CreateImmovable(Handle<T> handle) {
117 return Unique<T>(reinterpret_cast<Address>(*handle), handle);
126 Handle<T> handle_;