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

#include <deferred_objects.h>

Inheritance diagram for dart::DeferredFloat64x2:
dart::DeferredSlot

Public Member Functions

 DeferredFloat64x2 (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 84 of file deferred_objects.h.

Constructor & Destructor Documentation

◆ DeferredFloat64x2()

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

Definition at line 86 of file deferred_objects.h.

87 : 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::DeferredFloat64x2::Materialize ( DeoptContext deopt_context)
virtual

Implements dart::DeferredSlot.

Definition at line 59 of file deferred_objects.cc.

59 {
60 Float64x2Ptr* float64x2_slot = reinterpret_cast<Float64x2Ptr*>(slot());
61 Float64x2Ptr raw_float64x2 = Float64x2::New(value());
62 *float64x2_slot = raw_float64x2;
63
64 if (FLAG_trace_deoptimization_verbose) {
65 double x = raw_float64x2->untag()->x();
66 double y = raw_float64x2->untag()->y();
67 OS::PrintErr("materializing Float64x2 at %" Px ": %g,%g\n",
68 reinterpret_cast<uword>(slot()), x, y);
69 }
70}
static Float64x2Ptr New(double value0, double value1, Heap::Space space=Heap::kNew)
Definition: object.cc:25475
static void static void PrintErr(const char *format,...) PRINTF_ATTRIBUTE(1
double y
double x
uintptr_t uword
Definition: globals.h:501
#define Px
Definition: globals.h:410

◆ value()

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

Definition at line 91 of file deferred_objects.h.

91{ return value_; }

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