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

Public Member Functions

void Clear ()
 
uword Lookup (uword old_addr)
 
ForwardingBlockBlockFor (uword old_addr)
 

Detailed Description

Definition at line 87 of file compactor.cc.

Member Function Documentation

◆ BlockFor()

ForwardingBlock * dart::ForwardingPage::BlockFor ( uword  old_addr)
inline

Definition at line 97 of file compactor.cc.

97 {
98 intptr_t page_offset = old_addr & ~kPageMask;
99 intptr_t block_number = page_offset / kBlockSize;
100 ASSERT(block_number >= 0);
101 ASSERT(block_number <= kBlocksPerPage);
102 return &blocks_[block_number];
103 }
#define ASSERT(E)
static constexpr intptr_t kBlockSize
Definition: page.h:33
static constexpr intptr_t kBlocksPerPage
Definition: page.h:36

◆ Clear()

void dart::ForwardingPage::Clear ( )
inline

Definition at line 89 of file compactor.cc.

89 {
90 for (intptr_t i = 0; i < kBlocksPerPage; i++) {
91 blocks_[i].Clear();
92 }
93 }

◆ Lookup()

uword dart::ForwardingPage::Lookup ( uword  old_addr)
inline

Definition at line 95 of file compactor.cc.

95{ return BlockFor(old_addr)->Lookup(old_addr); }
uword Lookup(uword old_addr) const
Definition: compactor.cc:39
ForwardingBlock * BlockFor(uword old_addr)
Definition: compactor.cc:97

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