#include <object.h>
Definition at line 6110 of file object.h.
◆ Iterator()
dart::PcDescriptors::Iterator::Iterator |
( |
const PcDescriptors & |
descriptors, |
|
|
intptr_t |
kind_mask |
|
) |
| |
|
inline |
Definition at line 6112 of file object.h.
6113 : descriptors_(descriptors),
6114 kind_mask_(kind_mask),
6115 byte_index_(0),
6116 cur_pc_offset_(0),
6117 cur_kind_(0),
6118 cur_deopt_id_(0),
6119 cur_token_pos_(0),
6120 cur_try_index_(0),
static constexpr intptr_t kInvalidYieldIndex
◆ DeoptId()
intptr_t dart::PcDescriptors::Iterator::DeoptId |
( |
| ) |
const |
|
inline |
Definition at line 6155 of file object.h.
6155{ return cur_deopt_id_; }
◆ Kind()
◆ MoveNext()
bool dart::PcDescriptors::Iterator::MoveNext |
( |
| ) |
|
|
inline |
Definition at line 6123 of file object.h.
6123 {
6124 NoSafepointScope scope;
6125 ReadStream
stream(descriptors_.untag()->data(), descriptors_.
Length(),
6126 byte_index_);
6127
6128 while (byte_index_ < descriptors_.
Length()) {
6129 const int32_t kind_and_metadata =
stream.ReadSLEB128<int32_t>();
6131 kind_and_metadata);
6133 kind_and_metadata);
6134 cur_yield_index_ =
6136 kind_and_metadata);
6137
6138 cur_pc_offset_ +=
stream.ReadSLEB128();
6139
6140 if (!FLAG_precompiled_mode) {
6141 cur_deopt_id_ +=
stream.ReadSLEB128();
6143 cur_token_pos_,
stream.ReadSLEB128<int32_t>());
6144 }
6145 byte_index_ =
stream.Position();
6146
6147 if ((cur_kind_ & kind_mask_) != 0) {
6148 return true;
6149 }
6150 }
6151 return false;
6152 }
static T AddWithWrapAround(T a, T b)
◆ PcOffset()
uword dart::PcDescriptors::Iterator::PcOffset |
( |
| ) |
const |
|
inline |
Definition at line 6154 of file object.h.
6154{ return cur_pc_offset_; }
◆ TokenPos()
Definition at line 6156 of file object.h.
6156 {
6158 }
static TokenPosition Deserialize(int32_t value)
◆ TryIndex()
intptr_t dart::PcDescriptors::Iterator::TryIndex |
( |
| ) |
const |
|
inline |
Definition at line 6159 of file object.h.
6159{ return cur_try_index_; }
◆ YieldIndex()
intptr_t dart::PcDescriptors::Iterator::YieldIndex |
( |
| ) |
const |
|
inline |
Definition at line 6160 of file object.h.
6160{ 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