#include <scavenger.h>
Definition at line 37 of file scavenger.h.
◆ SemiSpace()
dart::SemiSpace::SemiSpace |
( |
intptr_t |
gc_threshold_in_words | ) |
|
|
explicit |
Definition at line 760 of file scavenger.cc.
intptr_t gc_threshold_in_words() const
◆ ~SemiSpace()
dart::SemiSpace::~SemiSpace |
( |
| ) |
|
Definition at line 763 of file scavenger.cc.
763 {
765 while (
page !=
nullptr) {
769 }
770}
static float next(float f)
◆ AddList()
void dart::SemiSpace::AddList |
( |
Page * |
head, |
|
|
Page * |
tail |
|
) |
| |
Definition at line 805 of file scavenger.cc.
805 {
806 if (
head ==
nullptr) {
807 return;
808 }
809 if (head_ == nullptr) {
812 return;
813 }
816}
void set_next(Page *next)
◆ capacity_in_words()
intptr_t dart::SemiSpace::capacity_in_words |
( |
| ) |
const |
|
inline |
Definition at line 54 of file scavenger.h.
54{ return capacity_in_words_; }
◆ Contains()
bool dart::SemiSpace::Contains |
( |
uword |
addr | ) |
const |
Definition at line 792 of file scavenger.cc.
792 {
794 if (
page->Contains(
addr))
return true;
795 }
796 return false;
797}
◆ gc_threshold_in_words()
intptr_t dart::SemiSpace::gc_threshold_in_words |
( |
| ) |
const |
|
inline |
Definition at line 55 of file scavenger.h.
55{ return gc_threshold_in_words_; }
◆ head()
Page * dart::SemiSpace::head |
( |
| ) |
const |
|
inline |
◆ TryAllocatePageLocked()
Page * dart::SemiSpace::TryAllocatePageLocked |
( |
bool |
link | ) |
|
Definition at line 772 of file scavenger.cc.
772 {
773 if (capacity_in_words_ >= gc_threshold_in_words_) {
774 return nullptr;
775 }
777 if (
page ==
nullptr) {
778 return nullptr;
779 }
782 if (head_ == nullptr) {
783 head_ = tail_ =
page;
784 } else {
787 }
788 }
790}
def link(from_root, to_root)
static constexpr intptr_t kPageSizeInWords
static constexpr intptr_t kPageSize
◆ used_in_words()
intptr_t dart::SemiSpace::used_in_words |
( |
| ) |
const |
|
inline |
Definition at line 47 of file scavenger.h.
47 {
49 for (
const Page*
p = head_;
p !=
nullptr;
p =
p->next()) {
51 }
53 }
constexpr intptr_t kWordSizeLog2
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
◆ WriteProtect()
void dart::SemiSpace::WriteProtect |
( |
bool |
read_only | ) |
|
Definition at line 799 of file scavenger.cc.
799 {
801 page->WriteProtect(read_only);
802 }
803}
The documentation for this class was generated from the following files: