Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
dart::kernel::TableSelectorMetadataHelper Class Reference

#include <kernel_translation_helper.h>

Inheritance diagram for dart::kernel::TableSelectorMetadataHelper:
dart::kernel::MetadataHelper

Public Member Functions

 TableSelectorMetadataHelper (KernelReaderHelper *helper)
 
TableSelectorMetadataGetTableSelectorMetadata (Zone *zone)
 
- Public Member Functions inherited from dart::kernel::MetadataHelper
 MetadataHelper (KernelReaderHelper *helper, const char *tag, bool precompiler_only)
 

Static Public Member Functions

static const char * tag ()
 

Additional Inherited Members

- Protected Member Functions inherited from dart::kernel::MetadataHelper
intptr_t FindMetadataMapping (intptr_t node_offset)
 
intptr_t GetNextMetadataPayloadOffset (intptr_t node_offset)
 
intptr_t GetComponentMetadataPayloadOffset ()
 
- Protected Attributes inherited from dart::kernel::MetadataHelper
KernelReaderHelperhelper_
 
TranslationHelpertranslation_helper_
 

Detailed Description

Definition at line 1193 of file kernel_translation_helper.h.

Constructor & Destructor Documentation

◆ TableSelectorMetadataHelper()

dart::kernel::TableSelectorMetadataHelper::TableSelectorMetadataHelper ( KernelReaderHelper helper)
explicit

Definition at line 2070 of file kernel_translation_helper.cc.

2072 : MetadataHelper(helper, tag(), /* precompiler_only = */ true) {}
MetadataHelper(KernelReaderHelper *helper, const char *tag, bool precompiler_only)

Member Function Documentation

◆ GetTableSelectorMetadata()

TableSelectorMetadata * dart::kernel::TableSelectorMetadataHelper::GetTableSelectorMetadata ( Zone zone)

Definition at line 2074 of file kernel_translation_helper.cc.

2075 {
2076 const intptr_t node_offset = GetComponentMetadataPayloadOffset();
2077 const intptr_t md_offset = GetNextMetadataPayloadOffset(node_offset);
2078 if (md_offset < 0) {
2079 return nullptr;
2080 }
2081
2082 AlternativeReadingScopeWithNewData alt(&helper_->reader_,
2083 &H.metadata_payloads(), md_offset);
2084
2085 const intptr_t num_selectors = helper_->ReadUInt();
2086 TableSelectorMetadata* metadata =
2087 new (zone) TableSelectorMetadata(num_selectors);
2088 for (intptr_t i = 0; i < num_selectors; i++) {
2089 ReadTableSelectorInfo(&metadata->selectors[i]);
2090 }
2091 return metadata;
2092}
intptr_t GetNextMetadataPayloadOffset(intptr_t node_offset)
Definition: SkMD5.cpp:130

◆ tag()

static const char * dart::kernel::TableSelectorMetadataHelper::tag ( )
inlinestatic

Definition at line 1195 of file kernel_translation_helper.h.

1195{ return "vm.table-selector.metadata"; }

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