#include <snapshot.h>
Definition at line 22 of file snapshot.h.
◆ Kind
Enumerator |
---|
kFull | |
kFullCore | |
kFullJIT | |
kFullAOT | |
kNone | |
kInvalid | |
Definition at line 24 of file snapshot.h.
◆ Addr()
const uint8_t * dart::Snapshot::Addr |
( |
| ) |
const |
|
inline |
Definition at line 79 of file snapshot.h.
79{ return reinterpret_cast<const uint8_t*>(this); }
◆ check_magic()
bool dart::Snapshot::check_magic |
( |
| ) |
const |
|
inline |
Definition at line 46 of file snapshot.h.
46 {
48 }
static constexpr int32_t kMagicValue
static constexpr intptr_t kMagicOffset
◆ DataImage()
const uint8_t * dart::Snapshot::DataImage |
( |
| ) |
const |
|
inline |
Definition at line 81 of file snapshot.h.
81 {
83 return nullptr;
84 }
87 }
const uint8_t * Addr() const
static bool IncludesCode(Kind kind)
static constexpr T RoundUp(T x, uintptr_t alignment, uintptr_t offset=0)
static constexpr intptr_t kObjectStartAlignment
◆ IncludesCode()
static bool dart::Snapshot::IncludesCode |
( |
Kind |
kind | ) |
|
|
inlinestatic |
◆ IncludesStringsInROData()
static bool dart::Snapshot::IncludesStringsInROData |
( |
Kind |
kind | ) |
|
|
inlinestatic |
Definition at line 71 of file snapshot.h.
71 {
72#if !defined(DART_COMPRESSED_POINTERS)
74#else
75 return false;
76#endif
77 }
◆ IsFull()
static bool dart::Snapshot::IsFull |
( |
Kind |
kind | ) |
|
|
inlinestatic |
◆ kind()
Kind dart::Snapshot::kind |
( |
| ) |
const |
|
inline |
Definition at line 60 of file snapshot.h.
static constexpr intptr_t kKindOffset
◆ KindToCString()
const char * dart::Snapshot::KindToCString |
( |
Kind |
kind | ) |
|
|
static |
Definition at line 12 of file snapshot.cc.
12 {
15 return "full";
17 return "full-core";
19 return "full-jit";
21 return "full-aot";
23 return "none";
25 default:
26 return "invalid";
27 }
28}
◆ large_length()
int64_t dart::Snapshot::large_length |
( |
| ) |
const |
|
inline |
Definition at line 53 of file snapshot.h.
53 {
55 }
static constexpr intptr_t kMagicSize
static constexpr intptr_t kLengthOffset
◆ length()
intptr_t dart::Snapshot::length |
( |
| ) |
const |
|
inline |
Definition at line 56 of file snapshot.h.
int64_t large_length() const
◆ set_kind()
void dart::Snapshot::set_kind |
( |
Kind |
value | ) |
|
|
inline |
◆ set_length()
void dart::Snapshot::set_length |
( |
intptr_t |
value | ) |
|
|
inline |
◆ set_magic()
void dart::Snapshot::set_magic |
( |
| ) |
|
|
inline |
◆ SetupFromBuffer()
const Snapshot * dart::Snapshot::SetupFromBuffer |
( |
const void * |
raw_memory | ) |
|
|
static |
Definition at line 30 of file snapshot.cc.
30 {
31 ASSERT(raw_memory !=
nullptr);
32 const Snapshot* snapshot = reinterpret_cast<const Snapshot*>(raw_memory);
33 if (!snapshot->check_magic()) {
34 return nullptr;
35 }
36
37
38 int64_t
length = snapshot->large_length();
40 return nullptr;
41 }
42 return snapshot;
43}
constexpr intptr_t kIntptrMax
◆ kHeaderSize
◆ kKindOffset
◆ kKindSize
constexpr intptr_t dart::Snapshot::kKindSize = sizeof(int64_t) |
|
staticconstexpr |
◆ kLengthOffset
◆ kLengthSize
constexpr intptr_t dart::Snapshot::kLengthSize = sizeof(int64_t) |
|
staticconstexpr |
◆ kMagicOffset
constexpr intptr_t dart::Snapshot::kMagicOffset = 0 |
|
staticconstexpr |
◆ kMagicSize
constexpr intptr_t dart::Snapshot::kMagicSize = sizeof(int32_t) |
|
staticconstexpr |
◆ kMagicValue
constexpr int32_t dart::Snapshot::kMagicValue = 0xdcdcf5f5 |
|
staticconstexpr |
The documentation for this class was generated from the following files: