Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::SetMessageDeserializationCluster Class Reference
Inheritance diagram for dart::SetMessageDeserializationCluster:
dart::MessageDeserializationCluster dart::ZoneAllocated

Public Member Functions

 SetMessageDeserializationCluster (bool is_canonical, intptr_t cid)
 
 ~SetMessageDeserializationCluster ()
 
void ReadNodes (MessageDeserializer *d)
 
void ReadEdges (MessageDeserializer *d)
 
ObjectPtr PostLoad (MessageDeserializer *d)
 
- Public Member Functions inherited from dart::MessageDeserializationCluster
 MessageDeserializationCluster (const char *name, bool is_canonical=false)
 
virtual ~MessageDeserializationCluster ()
 
virtual void ReadNodes (MessageDeserializer *d)=0
 
virtual void ReadEdges (MessageDeserializer *d)
 
virtual ObjectPtr PostLoad (MessageDeserializer *d)
 
virtual void ReadNodesApi (ApiMessageDeserializer *d)
 
virtual void ReadEdgesApi (ApiMessageDeserializer *d)
 
virtual void PostLoadApi (ApiMessageDeserializer *d)
 
void ReadNodesWrapped (MessageDeserializer *d)
 
void ReadNodesWrappedApi (ApiMessageDeserializer *d)
 
const char * name () const
 
bool is_canonical () const
 
- Public Member Functions inherited from dart::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Additional Inherited Members

- Protected Member Functions inherited from dart::MessageDeserializationCluster
ObjectPtr PostLoadAbstractType (MessageDeserializer *d)
 
ObjectPtr PostLoadLinkedHash (MessageDeserializer *d)
 
 DISALLOW_COPY_AND_ASSIGN (MessageDeserializationCluster)
 
- Protected Attributes inherited from dart::MessageDeserializationCluster
const char *const name_
 
const bool is_canonical_
 
intptr_t start_index_
 
intptr_t stop_index_
 

Detailed Description

Definition at line 2255 of file message_snapshot.cc.

Constructor & Destructor Documentation

◆ SetMessageDeserializationCluster()

dart::SetMessageDeserializationCluster::SetMessageDeserializationCluster ( bool  is_canonical,
intptr_t  cid 
)
inline

Definition at line 2257 of file message_snapshot.cc.

MessageDeserializationCluster(const char *name, bool is_canonical=false)
const intptr_t cid

◆ ~SetMessageDeserializationCluster()

dart::SetMessageDeserializationCluster::~SetMessageDeserializationCluster ( )
inline

Definition at line 2259 of file message_snapshot.cc.

2259{}

Member Function Documentation

◆ PostLoad()

ObjectPtr dart::SetMessageDeserializationCluster::PostLoad ( MessageDeserializer d)
inlinevirtual

Reimplemented from dart::MessageDeserializationCluster.

Definition at line 2280 of file message_snapshot.cc.

2280 {
2281 if (!is_canonical()) {
2282 ASSERT(cid_ == kSetCid);
2283 return PostLoadLinkedHash(d);
2284 }
2285
2286 ASSERT(cid_ == kConstSetCid);
2287 SafepointMutexLocker ml(
2288 d->isolate_group()->constant_canonicalization_mutex());
2289 Set& instance = Set::Handle(d->zone());
2290 for (intptr_t i = start_index_; i < stop_index_; i++) {
2291 instance ^= d->Ref(i);
2292 instance ^= instance.CanonicalizeLocked(d->thread());
2293 d->UpdateRef(i, instance);
2294 }
2295 return nullptr;
2296 }
ObjectPtr PostLoadLinkedHash(MessageDeserializer *d)
static Object & Handle()
Definition: object.h:407
#define ASSERT(E)
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition: main.cc:19
VkInstance instance
Definition: main.cc:48

◆ ReadEdges()

void dart::SetMessageDeserializationCluster::ReadEdges ( MessageDeserializer d)
inlinevirtual

Reimplemented from dart::MessageDeserializationCluster.

Definition at line 2268 of file message_snapshot.cc.

2268 {
2269 for (intptr_t id = start_index_; id < stop_index_; id++) {
2270 SetPtr map = static_cast<SetPtr>(d->Ref(id));
2271 map->untag()->set_hash_mask(Smi::New(0));
2272 map->untag()->set_type_arguments(
2273 static_cast<TypeArgumentsPtr>(d->ReadRef()));
2274 map->untag()->set_data(static_cast<ArrayPtr>(d->ReadRef()));
2275 map->untag()->set_used_data(static_cast<SmiPtr>(d->ReadRef()));
2276 map->untag()->set_deleted_keys(Smi::New(0));
2277 }
2278 }
static SmiPtr New(intptr_t value)
Definition: object.h:10006
SI auto map(std::index_sequence< I... >, Fn &&fn, const Args &... args) -> skvx::Vec< sizeof...(I), decltype(fn(args[0]...))>
Definition: SkVx.h:680

◆ ReadNodes()

void dart::SetMessageDeserializationCluster::ReadNodes ( MessageDeserializer d)
inlinevirtual

Implements dart::MessageDeserializationCluster.

Definition at line 2261 of file message_snapshot.cc.

2261 {
2262 const intptr_t count = d->ReadUnsigned();
2263 for (intptr_t i = 0; i < count; i++) {
2264 d->AssignRef(Set::NewUninitialized(cid_));
2265 }
2266 }
int count
Definition: FontMgrTest.cpp:50

The documentation for this class was generated from the following file: