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

Public Member Functions

void Clear ()
 
uword Lookup (uword old_addr) const
 
void RecordLive (uword old_addr, intptr_t size)
 
bool IsLive (uword old_addr) const
 
uword new_address () const
 
void set_new_address (uword value)
 

Detailed Description

Definition at line 32 of file compactor.cc.

Member Function Documentation

◆ Clear()

void dart::ForwardingBlock::Clear ( )
inline

Definition at line 34 of file compactor.cc.

34 {
35 new_address_ = 0;
36 live_bitvector_ = 0;
37 }

◆ IsLive()

bool dart::ForwardingBlock::IsLive ( uword  old_addr) const
inline

Definition at line 68 of file compactor.cc.

68 {
69 uword block_offset = old_addr & ~kBlockMask;
70 intptr_t first_unit_position = block_offset >> kObjectAlignmentLog2;
71 ASSERT(first_unit_position < kBitsPerWord);
72 return (live_bitvector_ & (static_cast<uword>(1) << first_unit_position)) !=
73 0;
74 }
#define ASSERT(E)
constexpr intptr_t kBitsPerWord
Definition globals.h:514
uintptr_t uword
Definition globals.h:501
static constexpr intptr_t kObjectAlignmentLog2

◆ Lookup()

uword dart::ForwardingBlock::Lookup ( uword  old_addr) const
inline

Definition at line 39 of file compactor.cc.

39 {
40 uword block_offset = old_addr & ~kBlockMask;
41 intptr_t first_unit_position = block_offset >> kObjectAlignmentLog2;
42 ASSERT(first_unit_position < kBitsPerWord);
43 uword preceding_live_bitmask =
44 (static_cast<uword>(1) << first_unit_position) - 1;
45 uword preceding_live_bitset = live_bitvector_ & preceding_live_bitmask;
46 uword preceding_live_bytes = Utils::CountOneBitsWord(preceding_live_bitset)
48 return new_address_ + preceding_live_bytes;
49 }
static constexpr int CountOneBitsWord(uword x)
Definition utils.h:161

◆ new_address()

uword dart::ForwardingBlock::new_address ( ) const
inline

Definition at line 76 of file compactor.cc.

76{ return new_address_; }

◆ RecordLive()

void dart::ForwardingBlock::RecordLive ( uword  old_addr,
intptr_t  size 
)
inline

Definition at line 56 of file compactor.cc.

56 {
57 intptr_t size_in_units = size >> kObjectAlignmentLog2;
58 if (size_in_units >= kBitsPerWord) {
59 size_in_units = kBitsPerWord - 1;
60 }
61 uword block_offset = old_addr & ~kBlockMask;
62 intptr_t first_unit_position = block_offset >> kObjectAlignmentLog2;
63 ASSERT(first_unit_position < kBitsPerWord);
64 live_bitvector_ |= ((static_cast<uword>(1) << size_in_units) - 1)
65 << first_unit_position;
66 }
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition switches.h:259

◆ set_new_address()

void dart::ForwardingBlock::set_new_address ( uword  value)
inline

Definition at line 77 of file compactor.cc.

77{ new_address_ = value; }
uint8_t value

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