#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 709 of file scavenger.cc.
intptr_t gc_threshold_in_words() const
◆ ~SemiSpace()
dart::SemiSpace::~SemiSpace |
( |
| ) |
|
Definition at line 712 of file scavenger.cc.
712 {
714 while (page != nullptr) {
718 }
719}
static float next(float f)
◆ AddList()
void dart::SemiSpace::AddList |
( |
Page * |
head, |
|
|
Page * |
tail |
|
) |
| |
Definition at line 754 of file scavenger.cc.
754 {
755 if (
head ==
nullptr) {
756 return;
757 }
758 if (head_ == nullptr) {
761 return;
762 }
765}
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 741 of file scavenger.cc.
741 {
742 for (Page* page = head_;
page !=
nullptr;
page =
page->next()) {
743 if (
page->Contains(addr))
return true;
744 }
745 return false;
746}
◆ 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 721 of file scavenger.cc.
721 {
722 if (capacity_in_words_ >= gc_threshold_in_words_) {
723 return nullptr;
724 }
726 if (page == nullptr) {
727 return nullptr;
728 }
730 if (link) {
731 if (head_ == nullptr) {
732 head_ = tail_ =
page;
733 } else {
736 }
737 }
739}
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 748 of file scavenger.cc.
748 {
749 for (Page* page = head_;
page !=
nullptr;
page =
page->next()) {
750 page->WriteProtect(read_only);
751 }
752}
The documentation for this class was generated from the following files: