#include <dart_api_state.h>
Definition at line 190 of file dart_api_state.h.
◆ ApiFinalizableHandle()
Definition at line 210 of file dart_api_state.h.
210 {
212 }
struct _Dart_FinalizableHandle * Dart_FinalizableHandle
◆ ApiWeakPersistentHandle()
Definition at line 207 of file dart_api_state.h.
207 {
209 }
struct _Dart_WeakPersistentHandle * Dart_WeakPersistentHandle
◆ auto_delete()
bool dart::FinalizablePersistentHandle::auto_delete |
( |
| ) |
const |
|
inline |
◆ callback()
◆ Cast() [1/2]
Definition at line 708 of file dart_api_impl.cc.
709 {
710#if defined(DEBUG)
713#endif
714 return reinterpret_cast<FinalizablePersistentHandle*>(handle);
715}
static IsolateGroup * Current()
ApiState * api_state() const
◆ Cast() [2/2]
Definition at line 700 of file dart_api_impl.cc.
701 {
702#if defined(DEBUG)
704 ASSERT(
state->IsValidWeakPersistentHandle(handle));
705#endif
706 return reinterpret_cast<FinalizablePersistentHandle*>(handle);
707}
◆ EnsureFreedExternal()
void dart::FinalizablePersistentHandle::EnsureFreedExternal |
( |
IsolateGroup * |
isolate_group | ) |
|
|
inline |
Definition at line 255 of file dart_api_state.h.
255 {
256 isolate_group->heap()->FreedExternal(
external_size(), SpaceForExternal());
257 set_external_size(0);
258 }
intptr_t external_size() const
◆ external_size()
intptr_t dart::FinalizablePersistentHandle::external_size |
( |
| ) |
const |
|
inline |
Definition at line 220 of file dart_api_state.h.
220 {
222 }
constexpr intptr_t kWordSize
static DecodeResult decode(std::string path)
◆ IsFinalizedNotFreed()
bool dart::FinalizablePersistentHandle::IsFinalizedNotFreed |
( |
| ) |
const |
|
inline |
Definition at line 216 of file dart_api_state.h.
216 {
217 return ptr_ ==
static_cast<ObjectPtr
>(
reinterpret_cast<uword>(
this));
218 }
◆ New()
Definition at line 790 of file dart_api_state.h.
796 {
797 ApiState*
state = isolate_group->api_state();
799 FinalizablePersistentHandle* ref =
state->AllocateWeakPersistentHandle();
800 ref->set_ptr(object);
804
806 state->FreeWeakPersistentHandle(ref);
807 return nullptr;
808 }
809 return ref;
810}
Dart_HandleFinalizer callback() const
◆ peer()
void * dart::FinalizablePersistentHandle::peer |
( |
| ) |
const |
|
inline |
◆ ptr()
ObjectPtr dart::FinalizablePersistentHandle::ptr |
( |
| ) |
const |
|
inline |
◆ ptr_addr()
ObjectPtr * dart::FinalizablePersistentHandle::ptr_addr |
( |
| ) |
|
|
inline |
◆ ptr_offset()
static intptr_t dart::FinalizablePersistentHandle::ptr_offset |
( |
| ) |
|
|
inlinestatic |
Definition at line 202 of file dart_api_state.h.
202 {
203 return OFFSET_OF(FinalizablePersistentHandle, ptr_);
204 }
#define OFFSET_OF(type, field)
◆ SetExternalSize()
bool dart::FinalizablePersistentHandle::SetExternalSize |
( |
intptr_t |
size, |
|
|
IsolateGroup * |
isolate_group |
|
) |
| |
|
inline |
Definition at line 224 of file dart_api_state.h.
224 {
225
226
229 return false;
230 }
231 set_external_size(
size);
233 SetExternalNewSpaceBit();
234 }
235 return isolate_group->heap()->AllocatedExternal(
external_size(),
236 SpaceForExternal());
237 }
constexpr intptr_t kWordSizeLog2
const intptr_t kMaxAddrSpaceInWords
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
◆ UpdateRelocated()
void dart::FinalizablePersistentHandle::UpdateRelocated |
( |
IsolateGroup * |
isolate_group | ) |
|
|
inline |
Definition at line 246 of file dart_api_state.h.
246 {
247 if (IsSetNewSpaceBit() && (SpaceForExternal() ==
Heap::kOld)) {
249 ClearExternalNewSpaceBit();
250 }
251 }
◆ UpdateUnreachable()
void dart::FinalizablePersistentHandle::UpdateUnreachable |
( |
IsolateGroup * |
isolate_group | ) |
|
|
inline |
Definition at line 240 of file dart_api_state.h.
240 {
242 Finalize(isolate_group, this);
243 }
void EnsureFreedExternal(IsolateGroup *isolate_group)
◆ FinalizablePersistentHandles
The documentation for this class was generated from the following files: