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

Public Member Functions

 TrieNode ()
 
 TrieNode (DeoptInstr *instruction, intptr_t info_number)
 
intptr_t info_number () const
 
void AddChild (TrieNode *child)
 
TrieNodeFindChild (const DeoptInstr &instruction)
 
- 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)
 

Detailed Description

Definition at line 993 of file deopt_instructions.cc.

Constructor & Destructor Documentation

◆ TrieNode() [1/2]

dart::DeoptInfoBuilder::TrieNode::TrieNode ( )
inline

Definition at line 997 of file deopt_instructions.cc.

997: instruction_(nullptr), info_number_(-1), children_(16) {}

◆ TrieNode() [2/2]

dart::DeoptInfoBuilder::TrieNode::TrieNode ( DeoptInstr instruction,
intptr_t  info_number 
)
inline

Definition at line 1000 of file deopt_instructions.cc.

1001 : instruction_(instruction), info_number_(info_number), children_(4) {}

Member Function Documentation

◆ AddChild()

void dart::DeoptInfoBuilder::TrieNode::AddChild ( TrieNode child)
inline

Definition at line 1005 of file deopt_instructions.cc.

1005 {
1006 if (child != nullptr) children_.Add(child);
1007 }

◆ FindChild()

TrieNode * dart::DeoptInfoBuilder::TrieNode::FindChild ( const DeoptInstr instruction)
inline

Definition at line 1009 of file deopt_instructions.cc.

1009 {
1010 for (intptr_t i = 0; i < children_.length(); ++i) {
1011 TrieNode* child = children_[i];
1012 if (child->instruction_->Equals(instruction)) return child;
1013 }
1014 return nullptr;
1015 }

◆ info_number()

intptr_t dart::DeoptInfoBuilder::TrieNode::info_number ( ) const
inline

Definition at line 1003 of file deopt_instructions.cc.

1003{ return info_number_; }

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