Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::Simd128MessageDeserializationCluster Class Reference
Inheritance diagram for dart::Simd128MessageDeserializationCluster:
dart::MessageDeserializationCluster dart::ZoneAllocated

Public Member Functions

 Simd128MessageDeserializationCluster (intptr_t cid)
 
 ~Simd128MessageDeserializationCluster ()
 
void ReadNodes (MessageDeserializer *d)
 
- Public Member Functions inherited from dart::MessageDeserializationCluster
 MessageDeserializationCluster (const char *name, bool is_canonical=false)
 
virtual ~MessageDeserializationCluster ()
 
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 1917 of file message_snapshot.cc.

Constructor & Destructor Documentation

◆ Simd128MessageDeserializationCluster()

dart::Simd128MessageDeserializationCluster::Simd128MessageDeserializationCluster ( intptr_t  cid)
inlineexplicit

Definition at line 1920 of file message_snapshot.cc.

1921 : MessageDeserializationCluster("Simd128"), cid_(cid) {
1922 ASSERT(cid_ == kInt32x4Cid || cid_ == kFloat32x4Cid ||
1923 cid_ == kFloat64x2Cid);
1924#if defined(DEBUG)
1925 // If not for Int32x4, check that all the Int32x4-specific arguments used in
1926 // ReadNodes match those for the actual class.
1927 if (cid_ == kFloat32x4Cid) {
1928 AssertSameStructure<Int32x4, Float32x4>();
1929 } else if (cid_ == kFloat64x2Cid) {
1930 AssertSameStructure<Int32x4, Float64x2>();
1931 }
1932#endif
1933 }
MessageDeserializationCluster(const char *name, bool is_canonical=false)
#define ASSERT(E)
const intptr_t cid

◆ ~Simd128MessageDeserializationCluster()

dart::Simd128MessageDeserializationCluster::~Simd128MessageDeserializationCluster ( )
inline

Definition at line 1934 of file message_snapshot.cc.

1934{}

Member Function Documentation

◆ ReadNodes()

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

Implements dart::MessageDeserializationCluster.

Definition at line 1948 of file message_snapshot.cc.

1948 {
1949 const intptr_t count = d->ReadUnsigned();
1950 for (intptr_t i = 0; i < count; i++) {
1951 ObjectPtr vector = Object::Allocate(
1953 Int32x4::ContainsCompressedPointers(), Object::from_offset<Int32x4>(),
1954 Object::to_offset<Int32x4>());
1955 d->AssignRef(vector);
1956 d->ReadBytes(&(static_cast<Int32x4Ptr>(vector)->untag()->value_),
1957 sizeof(simd128_value_t));
1958 }
1959 }
int count
@ kNew
Definition heap.h:38
static intptr_t InstanceSize()
Definition object.h:11205
static ObjectPtr Allocate(intptr_t cls_id, intptr_t size, Heap::Space space, bool compressed, uword ptr_field_start_offset, uword ptr_field_end_offset)
Definition object.cc:2820
static constexpr bool ContainsCompressedPointers()
Definition object.h:329
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition main.cc:19
raw_obj untag() -> num_entries()) VARIABLE_COMPRESSED_VISITOR(Array, Smi::Value(raw_obj->untag() ->length())) VARIABLE_COMPRESSED_VISITOR(TypedData, TypedData::ElementSizeInBytes(raw_obj->GetClassId()) *Smi::Value(raw_obj->untag() ->length())) VARIABLE_COMPRESSED_VISITOR(Record, RecordShape(raw_obj->untag() ->shape()).num_fields()) VARIABLE_NULL_VISITOR(CompressedStackMaps, CompressedStackMaps::PayloadSizeOf(raw_obj)) VARIABLE_NULL_VISITOR(OneByteString, Smi::Value(raw_obj->untag() ->length())) VARIABLE_NULL_VISITOR(TwoByteString, Smi::Value(raw_obj->untag() ->length())) intptr_t UntaggedField::VisitFieldPointers(FieldPtr raw_obj, ObjectPointerVisitor *visitor)

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