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

#include <il.h>

Inheritance diagram for dart::StringToCharCodeInstr:
dart::TemplateDefinition< 1, NoThrow, Pure >

Public Member Functions

 StringToCharCodeInstr (Value *str, intptr_t cid)
 
virtual CompileType ComputeType () const
 
Valuestr () const
 
virtual bool ComputeCanDeoptimize () const
 
virtual bool AttributesEqual (const Instruction &other) const
 
- Public Member Functions inherited from dart::TemplateDefinition< 1, NoThrow, Pure >
 TemplateDefinition (intptr_t deopt_id=DeoptId::kNone)
 
 TemplateDefinition (const InstructionSource &source, intptr_t deopt_id=DeoptId::kNone)
 
virtual intptr_t InputCount () const
 
virtual ValueInputAt (intptr_t i) const
 
virtual bool MayThrow () const
 

Additional Inherited Members

- Public Types inherited from dart::TemplateDefinition< 1, NoThrow, Pure >
using BaseClass = typename Pure< Definition, PureDefinition >::Base
 
- Protected Attributes inherited from dart::TemplateDefinition< 1, NoThrow, Pure >
EmbeddedArray< Value *, Ninputs_
 

Detailed Description

Definition at line 6913 of file il.h.

Constructor & Destructor Documentation

◆ StringToCharCodeInstr()

dart::StringToCharCodeInstr::StringToCharCodeInstr ( Value str,
intptr_t  cid 
)
inline

Definition at line 6915 of file il.h.

6915 : cid_(cid) {
6916 ASSERT(str != nullptr);
6917 SetInputAt(0, str);
6918 }
Value * str() const
Definition il.h:6923
#define ASSERT(E)
const intptr_t cid

Member Function Documentation

◆ AttributesEqual()

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

Definition at line 6927 of file il.h.

6927 {
6928 return other.AsStringToCharCode()->cid_ == cid_;
6929 }

◆ ComputeCanDeoptimize()

virtual bool dart::StringToCharCodeInstr::ComputeCanDeoptimize ( ) const
inlinevirtual

Definition at line 6925 of file il.h.

6925{ return false; }

◆ ComputeType()

CompileType dart::StringToCharCodeInstr::ComputeType ( ) const
virtual

Definition at line 1637 of file type_propagator.cc.

1637 {
1638 return CompileType::FromCid(kSmiCid);
1639}
static CompileType FromCid(intptr_t cid)

◆ str()

Value * dart::StringToCharCodeInstr::str ( ) const
inline

Definition at line 6923 of file il.h.

6923{ return inputs_[0]; }
EmbeddedArray< Value *, N > inputs_
Definition il.h:2744

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