Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::kernel::BuildingTranslationHelper Class Reference

#include <kernel_loader.h>

Inheritance diagram for dart::kernel::BuildingTranslationHelper:
dart::kernel::TranslationHelper

Public Member Functions

 BuildingTranslationHelper (KernelLoader *loader, Thread *thread, Heap::Space space)
 
virtual ~BuildingTranslationHelper ()
 
virtual LibraryPtr LookupLibraryByKernelLibrary (NameIndex library, bool required=true)
 
virtual ClassPtr LookupClassByKernelClass (NameIndex klass, bool required=true)
 
- Public Member Functions inherited from dart::kernel::TranslationHelper
 TranslationHelper (Thread *thread)
 
 TranslationHelper (Thread *thread, Heap::Space space)
 
virtual ~TranslationHelper ()
 
void Reset ()
 
void InitFromKernelProgramInfo (const KernelProgramInfo &info)
 
Threadthread ()
 
Zonezone ()
 
IsolateGroupisolate_group ()
 
Heap::Space allocation_space ()
 
const TypedDatastring_offsets () const
 
void SetStringOffsets (const TypedData &string_offsets)
 
const TypedDataViewstring_data () const
 
void SetStringData (const TypedDataView &string_data)
 
const TypedDatacanonical_names () const
 
void SetCanonicalNames (const TypedData &canonical_names)
 
const TypedDataViewmetadata_payloads () const
 
void SetMetadataPayloads (const TypedDataView &metadata_payloads)
 
const TypedDataViewmetadata_mappings () const
 
void SetMetadataMappings (const TypedDataView &metadata_mappings)
 
const Arrayconstants ()
 
void SetConstants (const Array &constants)
 
const TypedDataViewconstants_table () const
 
void SetConstantsTable (const TypedDataView &constants_table)
 
void SetKernelProgramInfo (const KernelProgramInfo &info)
 
const KernelProgramInfoGetKernelProgramInfo () const
 
intptr_t StringOffset (StringIndex index) const
 
intptr_t StringSize (StringIndex index) const
 
uint8_t * StringBuffer (StringIndex index) const
 
uint8_t CharacterAt (StringIndex string_index, intptr_t index)
 
bool StringEquals (StringIndex string_index, const char *other)
 
NameIndex CanonicalNameParent (NameIndex name)
 
StringIndex CanonicalNameString (NameIndex name)
 
bool IsAdministrative (NameIndex name)
 
bool IsPrivate (NameIndex name)
 
bool IsRoot (NameIndex name)
 
bool IsLibrary (NameIndex name)
 
bool IsClass (NameIndex name)
 
bool IsMember (NameIndex name)
 
bool IsConstructor (NameIndex name)
 
bool IsProcedure (NameIndex name)
 
bool IsMethod (NameIndex name)
 
bool IsGetter (NameIndex name)
 
bool IsSetter (NameIndex name)
 
bool IsFactory (NameIndex name)
 
bool IsField (NameIndex name)
 
NameIndex EnclosingName (NameIndex name)
 
InstancePtr Canonicalize (const Instance &instance)
 
const StringDartString (const char *content)
 
const StringDartString (const char *content, Heap::Space space)
 
StringDartString (StringIndex index)
 
StringDartString (StringIndex string_index, Heap::Space space)
 
StringDartString (const uint8_t *utf8_array, intptr_t len, Heap::Space space)
 
const StringDartString (const GrowableHandlePtrArray< const String > &pieces)
 
const StringDartSymbolPlain (const char *content) const
 
StringDartSymbolPlain (StringIndex string_index) const
 
const StringDartSymbolObfuscate (const char *content) const
 
StringDartSymbolObfuscate (StringIndex string_index) const
 
StringDartIdentifier (const Library &lib, StringIndex string_index)
 
const StringDartClassName (NameIndex kernel_class)
 
const StringDartConstructorName (NameIndex constructor)
 
const StringDartProcedureName (NameIndex procedure)
 
const StringDartSetterName (NameIndex setter)
 
const StringDartSetterName (NameIndex parent, StringIndex setter)
 
const StringDartGetterName (NameIndex getter)
 
const StringDartGetterName (NameIndex parent, StringIndex getter)
 
const StringDartFieldName (NameIndex field)
 
const StringDartFieldName (NameIndex parent, StringIndex field)
 
const StringDartMethodName (NameIndex method)
 
const StringDartMethodName (NameIndex parent, StringIndex method)
 
const StringDartFactoryName (NameIndex factory)
 
DART_NORETURN void LookupFailed (NameIndex name)
 
DART_NORETURN void LookupFailed (StringIndex name)
 
ClassPtr LookupClassByKernelClassOrLibrary (NameIndex kernel_name, bool required=true)
 
FieldPtr LookupFieldByKernelField (NameIndex field, bool required=true)
 
FieldPtr LookupFieldByKernelGetterOrSetter (NameIndex field, bool required=true)
 
FunctionPtr LookupStaticMethodByKernelProcedure (NameIndex procedure, bool required=true)
 
FunctionPtr LookupConstructorByKernelConstructor (NameIndex constructor, bool required=true)
 
FunctionPtr LookupConstructorByKernelConstructor (const Class &owner, NameIndex constructor, bool required=true)
 
FunctionPtr LookupConstructorByKernelConstructor (const Class &owner, StringIndex constructor_name, bool required=true)
 
FunctionPtr LookupMethodByMember (NameIndex target, const String &method_name, bool required=true)
 
ObjectPtr LookupMemberByMember (NameIndex kernel_name, bool required=true)
 
FunctionPtr LookupDynamicFunction (const Class &klass, const String &name)
 
TypeGetDeclarationType (const Class &klass)
 
void SetupFieldAccessorFunction (const Class &klass, const Function &function, const AbstractType &field_type)
 
void ReportError (const char *format,...) PRINTF_ATTRIBUTE(2
 
void void ReportError (const Script &script, const TokenPosition position, const char *format,...) PRINTF_ATTRIBUTE(4
 
void void void ReportError (const Error &prev_error, const char *format,...) PRINTF_ATTRIBUTE(3
 
void void void void ReportError (const Error &prev_error, const Script &script, const TokenPosition position, const char *format,...) PRINTF_ATTRIBUTE(5
 
void void void void void SetExpressionEvaluationFunction (const Function &function)
 
const FunctionGetExpressionEvaluationFunction ()
 
void SetExpressionEvaluationClass (const Class &cls)
 
const ClassGetExpressionEvaluationClass ()
 
void SetExpressionEvaluationRealClass (const Class &real_class)
 
const ClassGetExpressionEvaluationRealClass ()
 

Detailed Description

Definition at line 23 of file kernel_loader.h.

Constructor & Destructor Documentation

◆ BuildingTranslationHelper()

dart::kernel::BuildingTranslationHelper::BuildingTranslationHelper ( KernelLoader loader,
Thread thread,
Heap::Space  space 
)
inline

Definition at line 25 of file kernel_loader.h.

28 : TranslationHelper(thread, space),
29 loader_(loader),
30 library_lookup_handle_(Library::Handle(thread->zone())) {}
static Object & Handle()
Definition object.h:407
Zone * zone() const

◆ ~BuildingTranslationHelper()

virtual dart::kernel::BuildingTranslationHelper::~BuildingTranslationHelper ( )
inlinevirtual

Definition at line 31 of file kernel_loader.h.

31{}

Member Function Documentation

◆ LookupClassByKernelClass()

ClassPtr dart::kernel::BuildingTranslationHelper::LookupClassByKernelClass ( NameIndex  klass,
bool  required = true 
)
virtual

Reimplemented from dart::kernel::TranslationHelper.

Definition at line 153 of file kernel_loader.cc.

154 {
155#if defined(DEBUG)
156 LibraryLookupHandleScope library_lookup_handle_scope(library_lookup_handle_);
157#endif // defined(DEBUG)
158 library_lookup_handle_ = loader_->LookupLibraryFromClass(klass);
159 return loader_->LookupClass(library_lookup_handle_, klass);
160}

◆ LookupLibraryByKernelLibrary()

LibraryPtr dart::kernel::BuildingTranslationHelper::LookupLibraryByKernelLibrary ( NameIndex  library,
bool  required = true 
)
virtual

Reimplemented from dart::kernel::TranslationHelper.

Definition at line 147 of file kernel_loader.cc.

149 {
150 return loader_->LookupLibrary(library);
151}

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