Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::DeferredInt32x4 Class Reference

#include <deferred_objects.h>

Inheritance diagram for dart::DeferredInt32x4:
dart::DeferredSlot

Public Member Functions

 DeferredInt32x4 (simd128_value_t value, ObjectPtr *slot, DeferredSlot *next)
 
virtual void Materialize (DeoptContext *deopt_context)
 
simd128_value_t value () const
 
- Public Member Functions inherited from dart::DeferredSlot
 DeferredSlot (ObjectPtr *slot, DeferredSlot *next)
 
virtual ~DeferredSlot ()
 
ObjectPtrslot () const
 
DeferredSlotnext () const
 
virtual void Materialize (DeoptContext *deopt_context)=0
 

Detailed Description

Definition at line 99 of file deferred_objects.h.

Constructor & Destructor Documentation

◆ DeferredInt32x4()

dart::DeferredInt32x4::DeferredInt32x4 ( simd128_value_t  value,
ObjectPtr slot,
DeferredSlot next 
)
inline

Definition at line 101 of file deferred_objects.h.

102 : DeferredSlot(slot, next), value_(value) {}
simd128_value_t value() const
ObjectPtr * slot() const
DeferredSlot * next() const
DeferredSlot(ObjectPtr *slot, DeferredSlot *next)

Member Function Documentation

◆ Materialize()

void dart::DeferredInt32x4::Materialize ( DeoptContext deopt_context)
virtual

Implements dart::DeferredSlot.

Definition at line 72 of file deferred_objects.cc.

72 {
73 Int32x4Ptr* int32x4_slot = reinterpret_cast<Int32x4Ptr*>(slot());
74 Int32x4Ptr raw_int32x4 = Int32x4::New(value());
75 *int32x4_slot = raw_int32x4;
76
77 if (FLAG_trace_deoptimization_verbose) {
78 uint32_t x = raw_int32x4->untag()->x();
79 uint32_t y = raw_int32x4->untag()->y();
80 uint32_t z = raw_int32x4->untag()->z();
81 uint32_t w = raw_int32x4->untag()->w();
82 OS::PrintErr("materializing Int32x4 at %" Px ": %x,%x,%x,%x\n",
83 reinterpret_cast<uword>(slot()), x, y, z, w);
84 }
85}
static Int32x4Ptr New(int32_t value0, int32_t value1, int32_t value2, int32_t value3, Heap::Space space=Heap::kNew)
Definition: object.cc:25391
static void static void PrintErr(const char *format,...) PRINTF_ATTRIBUTE(1
double y
double x
uintptr_t uword
Definition: globals.h:501
SkScalar w
#define Px
Definition: globals.h:410

◆ value()

simd128_value_t dart::DeferredInt32x4::value ( ) const
inline

Definition at line 106 of file deferred_objects.h.

106{ return value_; }

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