#include <deopt_instructions.h>
Definition at line 609 of file deopt_instructions.h.
◆ FrameSize()
intptr_t dart::DeoptInfo::FrameSize |
( |
const TypedData & |
packed | ) |
|
|
static |
Definition at line 1349 of file deopt_instructions.cc.
1349 {
1350 NoSafepointScope no_safepoint;
1351 typedef ReadStream::Raw<sizeof(intptr_t), intptr_t> Reader;
1352 ReadStream read_stream(reinterpret_cast<uint8_t*>(packed.DataAddr(0)),
1353 packed.LengthInBytes());
1354 return Reader::Read(&read_stream);
1355}
◆ NumMaterializations()
Definition at line 1357 of file deopt_instructions.cc.
1358 {
1359 intptr_t num = 0;
1361 num++;
1362 }
1363 return num;
1364}
◆ ToCString()
const char * dart::DeoptInfo::ToCString |
( |
const Array & |
table, |
|
|
const TypedData & |
packed |
|
) |
| |
|
static |
Definition at line 1409 of file deopt_instructions.cc.
1410 {
1411#define FORMAT "[%s]"
1412 GrowableArray<DeoptInstr*> deopt_instrs;
1413 Unpack(deopt_table, packed, &deopt_instrs);
1414
1415
1417 for (intptr_t i = 0; i < deopt_instrs.length(); i++) {
1419 }
1420
1421
1423
1424
1425 intptr_t index = 0;
1426 for (intptr_t i = 0; i < deopt_instrs.length(); i++) {
1429 }
1430
1432#undef FORMAT
1433}
static void Unpack(const Array &table, const TypedData &packed, GrowableArray< DeoptInstr * > *instructions)
static const char * ToCString(const Array &table, const TypedData &packed)
static Thread * Current()
static int SNPrint(char *str, size_t size, const char *format,...) PRINTF_ATTRIBUTE(3
ElementType * Alloc(intptr_t length)
static const uint8_t buffer[]
◆ Unpack()
Definition at line 1397 of file deopt_instructions.cc.
1399 {
1400 ASSERT(unpacked->is_empty());
1401
1402
1403
1405
1406 unpacked->Reverse();
1407}
constexpr int32_t kMaxInt32
◆ VerifyDecompression()
Definition at line 1436 of file deopt_instructions.cc.
1438 {
1439 GrowableArray<DeoptInstr*> unpacked;
1440 Unpack(deopt_table, packed, &unpacked);
1441 ASSERT(unpacked.length() == original.length());
1442 for (intptr_t i = 0; i < unpacked.length(); ++i) {
1444 }
1445 return true;
1446}
static bool Equals(const Object &expected, const Object &actual)
The documentation for this class was generated from the following files: