#include <thread_state.h>
Definition at line 24 of file thread_state.h.
◆ ThreadState()
dart::ThreadState::ThreadState |
( |
bool |
is_os_thread | ) |
|
|
explicit |
◆ ~ThreadState()
dart::ThreadState::~ThreadState |
( |
| ) |
|
|
virtual |
◆ CountScopedHandles()
intptr_t dart::ThreadState::CountScopedHandles |
( |
| ) |
const |
Definition at line 61 of file thread_state.cc.
61 {
64 while (zone != nullptr) {
67 }
70}
int CountScopedHandles() const
◆ CountZoneHandles()
intptr_t dart::ThreadState::CountZoneHandles |
( |
| ) |
const |
Definition at line 39 of file thread_state.cc.
39 {
42 while (zone != nullptr) {
45 }
48}
int CountZoneHandles() const
◆ Current()
Definition at line 27 of file thread_state.h.
static ThreadState * CurrentVMThread()
◆ IsValidScopedHandle()
bool dart::ThreadState::IsValidScopedHandle |
( |
Dart_Handle |
object | ) |
const |
Definition at line 50 of file thread_state.cc.
50 {
52 while (zone != nullptr) {
54 return true;
55 }
57 }
58 return false;
59}
bool IsValidScopedHandle(uword handle) const
◆ IsValidZoneHandle()
bool dart::ThreadState::IsValidZoneHandle |
( |
Dart_Handle |
object | ) |
const |
Definition at line 28 of file thread_state.cc.
28 {
30 while (zone != nullptr) {
32 return true;
33 }
35 }
36 return false;
37}
bool IsValidZoneHandle(uword handle) const
◆ long_jump_base()
◆ MayAllocateHandles()
virtual bool dart::ThreadState::MayAllocateHandles |
( |
| ) |
|
|
pure virtual |
◆ os_thread()
OSThread * dart::ThreadState::os_thread |
( |
| ) |
const |
|
inline |
◆ set_long_jump_base()
void dart::ThreadState::set_long_jump_base |
( |
LongJumpScope * |
value | ) |
|
|
inline |
◆ set_os_thread()
void dart::ThreadState::set_os_thread |
( |
OSThread * |
os_thread | ) |
|
|
inline |
◆ set_top_handle_scope()
void dart::ThreadState::set_top_handle_scope |
( |
HandleScope * |
handle_scope | ) |
|
|
inline |
Definition at line 65 of file thread_state.h.
65 {
66#if defined(DEBUG)
67 top_handle_scope_ = handle_scope;
68#endif
69 }
◆ set_top_resource()
void dart::ThreadState::set_top_resource |
( |
StackResource * |
value | ) |
|
|
inline |
◆ top_handle_scope()
HandleScope * dart::ThreadState::top_handle_scope |
( |
| ) |
const |
|
inline |
Definition at line 57 of file thread_state.h.
57 {
58#if defined(DEBUG)
59 return top_handle_scope_;
60#else
61 return 0;
62#endif
63 }
◆ top_resource()
◆ top_resource_offset()
static intptr_t dart::ThreadState::top_resource_offset |
( |
| ) |
|
|
inlinestatic |
Definition at line 43 of file thread_state.h.
43 {
45 }
#define OFFSET_OF(type, field)
◆ zone()
Zone * dart::ThreadState::zone |
( |
| ) |
const |
|
inline |
◆ ZoneIsOwnedByThread()
bool dart::ThreadState::ZoneIsOwnedByThread |
( |
Zone * |
zone | ) |
const |
Definition at line 16 of file thread_state.cc.
16 {
18 Zone* current = zone_;
19 while (current != nullptr) {
20 if (current ==
zone) {
21 return true;
22 }
24 }
25 return false;
26}
◆ ApiZone
◆ StackZone
The documentation for this class was generated from the following files: