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

Public Member Functions

 Simd128SerializationCluster (intptr_t cid, bool is_canonical)
 
 ~Simd128SerializationCluster ()
 
void Trace (Serializer *s, ObjectPtr object)
 
void WriteAlloc (Serializer *s)
 
void WriteFill (Serializer *s)
 
- Public Member Functions inherited from dart::SerializationCluster
 SerializationCluster (const char *name, intptr_t cid, intptr_t target_instance_size=kSizeVaries, bool is_canonical=false)
 
virtual ~SerializationCluster ()
 
virtual void Trace (Serializer *serializer, ObjectPtr object)=0
 
virtual void WriteAlloc (Serializer *serializer)=0
 
virtual void WriteFill (Serializer *serializer)=0
 
void WriteAndMeasureAlloc (Serializer *serializer)
 
void WriteAndMeasureFill (Serializer *serializer)
 
const char * name () const
 
intptr_t cid () const
 
bool is_canonical () const
 
bool is_immutable () const
 
intptr_t size () const
 
intptr_t num_objects () const
 
intptr_t target_memory_size () 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

- Static Public Attributes inherited from dart::SerializationCluster
static constexpr intptr_t kSizeVaries = -1
 
- Protected Attributes inherited from dart::SerializationCluster
const char *const name_
 
const intptr_t cid_
 
const intptr_t target_instance_size_
 
const bool is_canonical_
 
const bool is_immutable_
 
intptr_t size_ = 0
 
intptr_t num_objects_ = 0
 
intptr_t target_memory_size_ = 0
 

Detailed Description

Definition at line 5440 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ Simd128SerializationCluster()

dart::Simd128SerializationCluster::Simd128SerializationCluster ( intptr_t  cid,
bool  is_canonical 
)
inlineexplicit

Definition at line 5442 of file app_snapshot.cc.

5443 : SerializationCluster("Simd128",
5444 cid,
5446 is_canonical) {
5451 }
#define ASSERT_EQUAL(expected, actual)
Definition: assert.h:309
SerializationCluster(const char *name, intptr_t cid, intptr_t target_instance_size=kSizeVaries, bool is_canonical=false)

◆ ~Simd128SerializationCluster()

dart::Simd128SerializationCluster::~Simd128SerializationCluster ( )
inline

Definition at line 5452 of file app_snapshot.cc.

5452{}

Member Function Documentation

◆ Trace()

void dart::Simd128SerializationCluster::Trace ( Serializer s,
ObjectPtr  object 
)
inlinevirtual

Implements dart::SerializationCluster.

Definition at line 5454 of file app_snapshot.cc.

5454{ objects_.Add(object); }
void Add(const T &value)

◆ WriteAlloc()

void dart::Simd128SerializationCluster::WriteAlloc ( Serializer s)
inlinevirtual

Implements dart::SerializationCluster.

Definition at line 5456 of file app_snapshot.cc.

5456 {
5457 const intptr_t count = objects_.length();
5458 s->WriteUnsigned(count);
5459 for (intptr_t i = 0; i < count; i++) {
5460 ObjectPtr vector = objects_[i];
5461 s->AssignRef(vector);
5462 }
5463 }
int count
Definition: FontMgrTest.cpp:50
intptr_t length() const
struct MyStruct s

◆ WriteFill()

void dart::Simd128SerializationCluster::WriteFill ( Serializer s)
inlinevirtual

Implements dart::SerializationCluster.

Definition at line 5465 of file app_snapshot.cc.

5465 {
5466 const intptr_t count = objects_.length();
5467 for (intptr_t i = 0; i < count; i++) {
5468 ObjectPtr vector = objects_[i];
5469 AutoTraceObject(vector);
5472 s->WriteBytes(&(static_cast<Int32x4Ptr>(vector)->untag()->value_),
5473 sizeof(simd128_value_t));
5474 }
5475 }
#define AutoTraceObject(obj)
static intptr_t value_offset()
Definition: object.h:11197
static intptr_t value_offset()
Definition: object.h:11266
static intptr_t value_offset()
Definition: object.h:11235
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)
Definition: raw_object.cc:558

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