Flutter Engine
The Flutter Engine
Classes | Static Public Member Functions | List of all members
dart::UntaggedPcDescriptors::KindAndMetadata Class Reference

#include <raw_object.h>

Static Public Member Functions

static uint32_t Encode (intptr_t kind, intptr_t try_index, intptr_t yield_index)
 
static intptr_t DecodeKind (uint32_t kind_and_metadata)
 
static intptr_t DecodeTryIndex (uint32_t kind_and_metadata)
 
static intptr_t DecodeYieldIndex (uint32_t kind_and_metadata)
 

Detailed Description

Definition at line 2083 of file raw_object.h.

Member Function Documentation

◆ DecodeKind()

static intptr_t dart::UntaggedPcDescriptors::KindAndMetadata::DecodeKind ( uint32_t  kind_and_metadata)
inlinestatic

Definition at line 2095 of file raw_object.h.

2095 {
2096 return 1 << KindShiftBits::decode(kind_and_metadata);
2097 }
static DecodeResult decode(std::string path)
Definition: png_codec.cpp:124

◆ DecodeTryIndex()

static intptr_t dart::UntaggedPcDescriptors::KindAndMetadata::DecodeTryIndex ( uint32_t  kind_and_metadata)
inlinestatic

Definition at line 2099 of file raw_object.h.

2099 {
2100 return TryIndexBits::decode(kind_and_metadata) - 1;
2101 }

◆ DecodeYieldIndex()

static intptr_t dart::UntaggedPcDescriptors::KindAndMetadata::DecodeYieldIndex ( uint32_t  kind_and_metadata)
inlinestatic

Definition at line 2103 of file raw_object.h.

2103 {
2104 return YieldIndexBits::decode(kind_and_metadata) - 1;
2105 }

◆ Encode()

static uint32_t dart::UntaggedPcDescriptors::KindAndMetadata::Encode ( intptr_t  kind,
intptr_t  try_index,
intptr_t  yield_index 
)
inlinestatic

Definition at line 2087 of file raw_object.h.

2089 {
2091 TryIndexBits::encode(try_index + 1) |
2092 YieldIndexBits::encode(yield_index + 1);
2093 }
static void encode(uint8_t output[16], const uint32_t input[4])
Definition: SkMD5.cpp:240
static constexpr int ShiftForPowerOfTwo(T x)
Definition: utils.h:81

The documentation for this class was generated from the following file: