Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
dart::NativeReturnInstr Class Reference

#include <il.h>

Inheritance diagram for dart::NativeReturnInstr:
dart::ReturnBaseInstr dart::Instruction dart::ZoneAllocated

Public Member Functions

 NativeReturnInstr (Value *value, const compiler::ffi::CallbackMarshaller &marshaller)
 
 NativeReturnInstr (Value *typed_data_base, Value *offset, const compiler::ffi::CallbackMarshaller &marshaller)
 
virtual PRINT_OPERANDS_TO_SUPPORT Representation RequiredInputRepresentation (intptr_t idx) const
 
virtual bool CanBecomeDeoptimizationTarget () const
 
virtual intptr_t InputCount () const
 
virtual bool AttributesEqual (const Instruction &other) const
 
virtual ValueInputAt (intptr_t i) const
 
- Public Member Functions inherited from dart::ReturnBaseInstr
 ReturnBaseInstr (const InstructionSource &source, intptr_t deopt_id=DeoptId::kNone)
 
 ReturnBaseInstr ()
 
virtual bool ComputeCanDeoptimize () const
 
virtual bool HasUnknownSideEffects () const
 
virtual bool MayThrow () const
 
virtual SpeculativeMode SpeculativeModeOfInput (intptr_t index) const
 
- Public Member Functions inherited from dart::Instruction
 Instruction (const InstructionSource &source, intptr_t deopt_id=DeoptId::kNone)
 
 Instruction (intptr_t deopt_id=DeoptId::kNone)
 
virtual ~Instruction ()
 
virtual Tag tag () const =0
 
virtual intptr_t statistics_tag () const
 
intptr_t deopt_id () const
 
virtual TokenPosition token_pos () const
 
InstructionSource source () const
 
void SetInputAt (intptr_t i, Value *value)
 
InputsIterable inputs ()
 
void UnuseAllInputs ()
 
virtual intptr_t ArgumentCount () const
 
ValueArgumentValueAt (intptr_t index) const
 
DefinitionArgumentAt (intptr_t index) const
 
virtual void SetMoveArguments (MoveArgumentsArray *move_arguments)
 
virtual MoveArgumentsArrayGetMoveArguments () const
 
virtual void ReplaceInputsWithMoveArguments (MoveArgumentsArray *move_arguments)
 
bool HasMoveArguments () const
 
void RepairArgumentUsesInEnvironment () const
 
virtual bool ComputeCanDeoptimizeAfterCall () const
 
bool CanDeoptimize () const
 
virtual void Accept (InstructionVisitor *visitor)=0
 
Instructionprevious () const
 
void set_previous (Instruction *instr)
 
Instructionnext () const
 
void set_next (Instruction *instr)
 
void LinkTo (Instruction *next)
 
InstructionRemoveFromGraph (bool return_previous=true)
 
virtual intptr_t SuccessorCount () const
 
virtual BlockEntryInstrSuccessorAt (intptr_t index) const
 
SuccessorsIterable successors () const
 
void Goto (JoinEntryInstr *entry)
 
virtual const char * DebugName () const =0
 
void CheckField (const Field &field) const
 
const char * ToCString () const
 
 DECLARE_INSTRUCTION_TYPE_CHECK (BlockEntryWithInitialDefs, BlockEntryWithInitialDefs) template< typename T > T *Cast()
 
template<typename T >
const TCast () const
 
LocationSummarylocs ()
 
bool HasLocs () const
 
virtual LocationSummaryMakeLocationSummary (Zone *zone, bool is_optimizing) const =0
 
void InitializeLocationSummary (Zone *zone, bool optimizing)
 
virtual void EmitNativeCode (FlowGraphCompiler *compiler)
 
Environmentenv () const
 
void SetEnvironment (Environment *deopt_env)
 
void RemoveEnvironment ()
 
void ReplaceInEnvironment (Definition *current, Definition *replacement)
 
virtual intptr_t NumberOfInputsConsumedBeforeCall () const
 
intptr_t GetPassSpecificId (CompilerPass::Id pass) const
 
void SetPassSpecificId (CompilerPass::Id pass, intptr_t id)
 
bool HasPassSpecificId (CompilerPass::Id pass) const
 
bool HasUnmatchedInputRepresentations () const
 
SpeculativeMode SpeculativeModeOfInputs () const
 
virtual Representation representation () const
 
bool WasEliminated () const
 
virtual intptr_t DeoptimizationTarget () const
 
virtual InstructionCanonicalize (FlowGraph *flow_graph)
 
void InsertBefore (Instruction *next)
 
void InsertAfter (Instruction *prev)
 
InstructionAppendInstruction (Instruction *tail)
 
virtual bool AllowsCSE () const
 
virtual bool CanCallDart () const
 
virtual bool CanTriggerGC () const
 
virtual BlockEntryInstrGetBlock ()
 
virtual intptr_t inlining_id () const
 
virtual void set_inlining_id (intptr_t value)
 
virtual bool has_inlining_id () const
 
virtual uword Hash () const
 
bool Equals (const Instruction &other) const
 
void InheritDeoptTarget (Zone *zone, Instruction *other)
 
bool NeedsEnvironment () const
 
void InheritDeoptTargetAfter (FlowGraph *flow_graph, Definition *call, Definition *result)
 
virtual bool MayHaveVisibleEffect () const
 
virtual bool CanEliminate (const BlockEntryInstr *block) const
 
bool CanEliminate ()
 
bool IsDominatedBy (Instruction *dom)
 
void ClearEnv ()
 
void Unsupported (FlowGraphCompiler *compiler)
 
virtual bool UseSharedSlowPathStub (bool is_optimizing) const
 
Location::Kind RegisterKindForResult () 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)
 

Private Member Functions

virtual void RawSetInputAt (intptr_t i, Value *value)
 

Additional Inherited Members

- Public Types inherited from dart::Instruction
enum  Tag { FOR_EACH_INSTRUCTION =(DECLARE_TAG) kNumInstructions }
 
enum  SpeculativeMode { kGuardInputs , kNotSpeculative }
 
using InputsIterable = InstructionIndexedPropertyIterable< InputsTrait >
 
using SuccessorsIterable = InstructionIndexedPropertyIterable< SuccessorsTrait >
 
- Static Public Member Functions inherited from dart::Instruction
static const ICDataGetICData (const ZoneGrowableArray< const ICData * > &ic_data_array, intptr_t deopt_id, bool is_static_call)
 
static LocationSummaryMakeCallSummary (Zone *zone, const Instruction *instr, LocationSummary *locs=nullptr)
 
static bool SlowPathSharingSupported (bool is_optimizing)
 
- Static Public Attributes inherited from dart::Instruction
static const intptr_t kInstructionAttrs [kNumInstructions]
 
- Protected Member Functions inherited from dart::Instruction
intptr_t GetDeoptId () const
 
virtual void CopyDeoptIdFrom (const Instruction &instr)
 
void WriteExtraWithoutInputs (FlowGraphSerializer *s)
 
void ReadExtraWithoutInputs (FlowGraphDeserializer *d)
 

Detailed Description

Definition at line 3515 of file il.h.

Constructor & Destructor Documentation

◆ NativeReturnInstr() [1/2]

dart::NativeReturnInstr::NativeReturnInstr ( Value value,
const compiler::ffi::CallbackMarshaller marshaller 
)
inline

Definition at line 3517 of file il.h.

3519 : ReturnBaseInstr(), marshaller_(marshaller) {
3520 SetInputAt(0, value);
3521 inputs_[1] = nullptr;
3522 }
void SetInputAt(intptr_t i, Value *value)
Definition il.h:1008

◆ NativeReturnInstr() [2/2]

dart::NativeReturnInstr::NativeReturnInstr ( Value typed_data_base,
Value offset,
const compiler::ffi::CallbackMarshaller marshaller 
)
inline

Definition at line 3524 of file il.h.

3527 : ReturnBaseInstr(), marshaller_(marshaller) {
3528 SetInputAt(0, typed_data_base);
3529 SetInputAt(1, offset);
3530 }
Point offset

Member Function Documentation

◆ AttributesEqual()

virtual bool dart::NativeReturnInstr::AttributesEqual ( const Instruction other) const
inlinevirtual

Reimplemented from dart::Instruction.

Definition at line 3557 of file il.h.

3557 {
3558 auto const other_return = other.AsNativeReturn();
3559 return token_pos() == other_return->token_pos();
3560 }
virtual TokenPosition token_pos() const
Definition il.h:999

◆ CanBecomeDeoptimizationTarget()

virtual bool dart::NativeReturnInstr::CanBecomeDeoptimizationTarget ( ) const
inlinevirtual

Reimplemented from dart::Instruction.

Definition at line 3547 of file il.h.

3547 {
3548 // Unlike DartReturnInstr, NativeReturnInstr cannot be inlined (because it's
3549 // returning into native code).
3550 return false;
3551 }

◆ InputAt()

virtual Value * dart::NativeReturnInstr::InputAt ( intptr_t  i) const
inlinevirtual

Implements dart::Instruction.

Definition at line 3562 of file il.h.

3562{ return inputs_[i]; }

◆ InputCount()

virtual intptr_t dart::NativeReturnInstr::InputCount ( ) const
inlinevirtual

Implements dart::Instruction.

Definition at line 3553 of file il.h.

3553 {
3554 return marshaller_.NumReturnDefinitions();
3555 }

◆ RawSetInputAt()

virtual void dart::NativeReturnInstr::RawSetInputAt ( intptr_t  i,
Value value 
)
inlineprivatevirtual

Implements dart::Instruction.

Definition at line 3577 of file il.h.

3577{ inputs_[i] = value; }
uint8_t value

◆ RequiredInputRepresentation()

virtual PRINT_OPERANDS_TO_SUPPORT Representation dart::NativeReturnInstr::RequiredInputRepresentation ( intptr_t  idx) const
inlinevirtual

Reimplemented from dart::Instruction.

Definition at line 3536 of file il.h.

3536 {
3537 if (idx == 0) {
3538 return marshaller_.RepInFfiCall(compiler::ffi::kResultIndex);
3539 } else {
3540 ASSERT_EQUAL(idx, 1);
3542 // Offset in bytes for compounds.
3543 return kUnboxedWord;
3544 }
3545 }
#define ASSERT_EQUAL(expected, actual)
Definition assert.h:309
virtual intptr_t InputCount() const
Definition il.h:3553
const intptr_t kResultIndex
Definition marshaller.h:28
static constexpr Representation kUnboxedWord
Definition locations.h:164

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