Flutter Engine
The Flutter Engine
|
#include <memory>
#include <utility>
#include "vm/app_snapshot.h"
#include "platform/assert.h"
#include "vm/bootstrap.h"
#include "vm/bss_relocs.h"
#include "vm/canonical_tables.h"
#include "vm/class_id.h"
#include "vm/code_observers.h"
#include "vm/compiler/api/print_filter.h"
#include "vm/compiler/assembler/disassembler.h"
#include "vm/dart.h"
#include "vm/dart_entry.h"
#include "vm/dispatch_table.h"
#include "vm/flag_list.h"
#include "vm/growable_array.h"
#include "vm/heap/heap.h"
#include "vm/image_snapshot.h"
#include "vm/native_entry.h"
#include "vm/object.h"
#include "vm/object_store.h"
#include "vm/program_visitor.h"
#include "vm/raw_object_fields.h"
#include "vm/stub_code.h"
#include "vm/symbols.h"
#include "vm/timeline.h"
#include "vm/v8_snapshot_writer.h"
#include "vm/version.h"
#include "vm/zone_text_buffer.h"
#include "vm/compiler/backend/code_statistics.h"
#include "vm/compiler/backend/il_printer.h"
#include "vm/compiler/relocation.h"
Go to the source code of this file.
Namespaces | |
namespace | dart |
Macros | |
#define | AutoTraceObject(obj) Serializer::WritingObjectScope scope_##__COUNTER__(s, name(), obj, nullptr) |
#define | AutoTraceObjectName(obj, str) Serializer::WritingObjectScope scope_##__COUNTER__(s, name(), obj, str) |
#define | WriteFieldValue(field, value) s->WritePropertyRef(value, #field); |
#define | WriteFromTo(obj, ...) s->WriteFromTo(obj, ##__VA_ARGS__); |
#define | PushFromTo(obj, ...) s->PushFromTo(obj, ##__VA_ARGS__); |
#define | WriteField(obj, field) s->WritePropertyRef(obj->untag()->field, #field) |
#define | WriteCompressedField(obj, name) s->WritePropertyRef(obj->untag()->name(), #name "_") |
#define | DECLARE_OBJECT_STORE_FIELD(Type, Name) #Name, |
#define | RESET_ROOT_LIST(V) |
#define | ONLY_IN_AOT(code) |
#define | SAVE_AND_RESET_ROOT(name, Type, init) |
#define | ONLY_IN_AOT(code) |
#define | RESTORE_ROOT(name, Type, init) object_store_->set_##name(saved_##name##_); |
#define | ONLY_IN_AOT(code) code |
#define | DECLARE_FIELD(name, Type, init) Type& saved_##name##_ = Type::Handle(); |
#define | CASE_FFI_CID(name) case kFfi##name##Cid: |
#define | CID_CLUSTER(Type) reinterpret_cast<Type##SerializationCluster*>(clusters_by_cid_[k##Type##Cid]) |
#define | ADD_CANONICAL_NEXT(cid) |
#define | ADD_NON_CANONICAL_NEXT(cid) |
#define | CASE_FFI_CID(name) case kFfi##name##Cid: |
#define | SET_FLAG(name) |
#define | CHECK_FLAG(name, mode) |
#define | SET_P(name, T, DV, C) SET_FLAG(name) |
#define | SET_OR_CHECK_R(name, PV, T, DV, C) SET_FLAG(name) |
#define | SET_OR_CHECK_C(name, PV, T, DV, C) SET_FLAG(name) |
#define | SET_OR_CHECK_D(name, T, DV, C) CHECK_FLAG(name, "non-debug mode") |
Functions | |
dart::DEFINE_FLAG (bool, print_cluster_information, false, "Print information about clusters written to snapshot") | |
dart::COMPILE_ASSERT (kUnreachableReference==WeakTable::kNoValue) | |
static constexpr bool | dart::IsAllocatedReference (intptr_t ref) |
static constexpr bool | dart::IsArtificialReference (intptr_t ref) |
static constexpr bool | dart::IsReachableReference (intptr_t ref) |
static UnboxedFieldBitmap | dart::CalculateTargetUnboxedFieldsBitmap (Serializer *s, intptr_t class_id) |
template<bool need_entry_point_for_non_discarded> | |
static DART_FORCE_INLINE CodePtr | dart::GetCodeAndEntryPointByIndex (const Deserializer *d, intptr_t code_index, uword *entry_point) |
static int | dart::CompareClusters (SerializationCluster *const *a, SerializationCluster *const *b) |
Variables | |
static constexpr intptr_t | dart::kUnreachableReference = 0 |
static constexpr intptr_t | dart::kFirstReference = 1 |
static constexpr intptr_t | dart::kUnallocatedReference = -1 |
static const char *const | dart::kObjectStoreFieldNames [] |
#define ADD_CANONICAL_NEXT | ( | cid | ) |
#define ADD_NON_CANONICAL_NEXT | ( | cid | ) |
#define AutoTraceObject | ( | obj | ) | Serializer::WritingObjectScope scope_##__COUNTER__(s, name(), obj, nullptr) |
Definition at line 649 of file app_snapshot.cc.
#define AutoTraceObjectName | ( | obj, | |
str | |||
) | Serializer::WritingObjectScope scope_##__COUNTER__(s, name(), obj, str) |
Definition at line 652 of file app_snapshot.cc.
#define CHECK_FLAG | ( | name, | |
mode | |||
) |
#define CID_CLUSTER | ( | Type | ) | reinterpret_cast<Type##SerializationCluster*>(clusters_by_cid_[k##Type##Cid]) |
Definition at line 8549 of file app_snapshot.cc.
Definition at line 7178 of file app_snapshot.cc.
#define DECLARE_OBJECT_STORE_FIELD | ( | Type, | |
Name | |||
) | #Name, |
#define ONLY_IN_AOT | ( | code | ) |
Definition at line 7177 of file app_snapshot.cc.
#define ONLY_IN_AOT | ( | code | ) |
Definition at line 7177 of file app_snapshot.cc.
#define ONLY_IN_AOT | ( | code | ) | code |
Definition at line 7177 of file app_snapshot.cc.
#define PushFromTo | ( | obj, | |
... | |||
) | s->PushFromTo(obj, ##__VA_ARGS__); |
Definition at line 659 of file app_snapshot.cc.
#define RESET_ROOT_LIST | ( | V | ) |
Definition at line 7039 of file app_snapshot.cc.
#define SET_FLAG | ( | name | ) |
#define SET_OR_CHECK_D | ( | name, | |
T, | |||
DV, | |||
C | |||
) | CHECK_FLAG(name, "non-debug mode") |
Definition at line 662 of file app_snapshot.cc.
#define WriteField | ( | obj, | |
field | |||
) | s->WritePropertyRef(obj->untag()->field, #field) |
Definition at line 661 of file app_snapshot.cc.
Definition at line 655 of file app_snapshot.cc.
#define WriteFromTo | ( | obj, | |
... | |||
) | s->WriteFromTo(obj, ##__VA_ARGS__); |
Definition at line 657 of file app_snapshot.cc.