#include <object.h>
Definition at line 6083 of file object.h.
◆ Iterator()
dart::PcDescriptors::Iterator::Iterator |
( |
const PcDescriptors & |
descriptors, |
|
|
intptr_t |
kind_mask |
|
) |
| |
|
inline |
Definition at line 6085 of file object.h.
6086 : descriptors_(descriptors),
6087 kind_mask_(kind_mask),
6088 byte_index_(0),
6089 cur_pc_offset_(0),
6090 cur_kind_(0),
6091 cur_deopt_id_(0),
6092 cur_token_pos_(0),
6093 cur_try_index_(0),
static constexpr intptr_t kInvalidYieldIndex
◆ DeoptId()
intptr_t dart::PcDescriptors::Iterator::DeoptId |
( |
| ) |
const |
|
inline |
Definition at line 6128 of file object.h.
6128{ return cur_deopt_id_; }
◆ Kind()
◆ MoveNext()
bool dart::PcDescriptors::Iterator::MoveNext |
( |
| ) |
|
|
inline |
Definition at line 6096 of file object.h.
6096 {
6097 NoSafepointScope scope;
6098 ReadStream
stream(descriptors_.untag()->data(), descriptors_.
Length(),
6099 byte_index_);
6100
6101 while (byte_index_ < descriptors_.
Length()) {
6102 const int32_t kind_and_metadata =
stream.ReadSLEB128<int32_t>();
6104 kind_and_metadata);
6106 kind_and_metadata);
6107 cur_yield_index_ =
6109 kind_and_metadata);
6110
6111 cur_pc_offset_ +=
stream.ReadSLEB128();
6112
6113 if (!FLAG_precompiled_mode) {
6114 cur_deopt_id_ +=
stream.ReadSLEB128();
6116 cur_token_pos_,
stream.ReadSLEB128<int32_t>());
6117 }
6118 byte_index_ =
stream.Position();
6119
6120 if ((cur_kind_ & kind_mask_) != 0) {
6121 return true;
6122 }
6123 }
6124 return false;
6125 }
static T AddWithWrapAround(T a, T b)
◆ PcOffset()
uword dart::PcDescriptors::Iterator::PcOffset |
( |
| ) |
const |
|
inline |
Definition at line 6127 of file object.h.
6127{ return cur_pc_offset_; }
◆ TokenPos()
Definition at line 6129 of file object.h.
6129 {
6131 }
static TokenPosition Deserialize(int32_t value)
◆ TryIndex()
intptr_t dart::PcDescriptors::Iterator::TryIndex |
( |
| ) |
const |
|
inline |
Definition at line 6132 of file object.h.
6132{ return cur_try_index_; }
◆ YieldIndex()
intptr_t dart::PcDescriptors::Iterator::YieldIndex |
( |
| ) |
const |
|
inline |
Definition at line 6133 of file object.h.
6133{ return cur_yield_index_; }
◆ PcDescriptors
The documentation for this class was generated from the following file:
- third_party/dart-lang/sdk/runtime/vm/object.h