| /arkcompiler/runtime_core/docs/ |
| D | runtime-class.md | 1 # Runtime class 3 …Class` to store all necessary language independent information about class. Virtual table and regi… 5 …er to the managed class object (instance of `panda.Class` or other in case of plugin-related code)… 8 panda::Class *cls = obj->ClassAddr()->GetManagedObject(); 11 … approach is that we need additional dereference to get `panda::Class` from mirror class and vice … 15 class Class : public ObjectHeader { 19 panda::Class klass_; 24 In this case layout of the `coretypes::Class` will be following: 27 mirror class (`coretypes::Class`) --------> +------------------+ <-+ 29 | `Class Word` |-----+ [all …]
|
| /arkcompiler/runtime_core/runtime/include/mem/ |
| D | panda_containers.h | 33 template <class T> 36 template <class T> 39 template <class T> 42 template <class T> 45 template <class T> 48 template <class T> 51 template <class T, class PandaContainer = PandaDeque<T>> 54 template <class T, class PandaContainer = PandaDequeTL<T>> 57 template <class T, class PandaContainer = PandaDeque<T>> 60 template <class T, class PandaContainer = PandaDequeTL<T>> [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | object_factory.h | 35 class Method; 36 class JSObject; 37 class JSArray; 38 class JSAPIPlainArray; 39 class JSSymbol; 40 class JSFunctionBase; 41 class JSFunction; 42 class JSBoundFunction; 43 class JSProxyRevocFunction; 44 class JSAsyncAwaitStatusFunction; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | c_containers.h | 34 template<class T> 37 template<class T> 40 template<class Key, class T, class Compare = std::less<>> 43 template<class Key, class T, class Compare = std::less<>> 46 template<class Key, class Value, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>> 50 template<class T> 53 template<class T, class Container = CDeque<T>> 56 template<class T, class Container = CDeque<T>> 59 template<class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>> 62 template<class Key, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>>
|
| /arkcompiler/runtime_core/libpandabase/utils/ |
| D | arena_containers.h | 36 template <class T, bool use_oom_handler = false> 38 template <class T, bool use_oom_handler = false> 40 template <class T, bool use_oom_handler = false, class ArenaContainer = ArenaDeque<T, use_oom_handl… 42 template <class T, bool use_oom_handler = false, class ArenaContainer = ArenaDeque<T, use_oom_handl… 44 template <class T, bool use_oom_handler = false> 46 template <class Key, class Compare = std::less<Key>, bool use_oom_handler = false> 48 template <class Key, class T, class Compare = std::less<Key>, bool use_oom_handler = false> 50 template <class Key, class T, class Compare = std::less<Key>, bool use_oom_handler = false> 52 template <class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>, 56 template <class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>, [all …]
|
| /arkcompiler/runtime_core/tests/cts-generator/runner/reporters/ |
| D | base_test_reporter.rb | 15 # Methods should be redefined in derived class 16 class BaseTestReporter 18 raise NotImplementedError, "#{self.class} does not implement prologue()." 22 raise NotImplementedError, "#{self.class} does not implement epilogue()." 26 raise NotImplementedError, "#{self.class} does not implement log_exclusion()." 30 raise NotImplementedError, "#{self.class} does not implement log_skip_include()." 34 raise NotImplementedError, "#{self.class} does not implement log_skip_bugid()." 38 raise NotImplementedError, "#{self.class} does not implement log_skip_ignore()." 42 raise NotImplementedError, "#{self.class} does not implement log_skip_only_ignore()." 46 raise NotImplementedError, "#{self.class} does not implement log_ignore_ignored()." [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/ |
| D | test262skiplist.txt | 2 annexB/built-ins/RegExp/RegExp-decimal-escape-class-range.js 9 annexB/language/literals/regexp/class-escape.js 148 built-ins/Function/prototype/toString/private-method-class-expression.js 149 built-ins/Function/prototype/toString/private-method-class-statement.js 150 built-ins/Function/prototype/toString/private-static-method-class-expression.js 151 built-ins/Function/prototype/toString/private-static-method-class-statement.js 166 built-ins/RegExp/property-escapes/character-class.js 1037 language/expressions/class/dstr/async-private-gen-meth-ary-init-iter-close.js 1038 language/expressions/class/dstr/async-private-gen-meth-ary-init-iter-no-close.js 1039 language/expressions/class/dstr/async-private-gen-meth-ary-name-iter-val.js [all …]
|
| /arkcompiler/runtime_core/compiler/docs/ |
| D | aot_cha.md | 1 # Usage of Class Hierarchy during AOT compilation 5 ## Class Hierarchy Matching 7 The class order in class path influences on resulting class hierarchy that would be available for a… 8 result the order of files in class path and files themselves are enough to verify the class context… 12 This class context is represented by a string which is written into AOT file and compared with runt… 19 ### Class path 21 AOT file compiled with class hierarchy requires the complete conformity of class path with runtime.… 22 have to pass a class path to AOT compiler identical to class path used by runtime. 49 Runtime class context: '$LIBDIR/lib1.abc*2239629066:$LIBDIR/lib2.abc*2767220441:application.abc*252… 50 AoT class context: '$LIBDIR/lib1.abc*2239629066:application.abc*2524155584' [all …]
|
| D | interface_inline_cache.md | 15 …l runtime RESOLVE_VIRTUAL_CALL_AOT to get method address and save method addr and class to cache 16 * `Fast Path`: Check whether the class is the same as the last cached class,if equal: use cache; i… 27 Cache structure:(offset addr)/(class addr) 32bit/32bit 31 cache:offset/class ---------->| <-| 37 if call class == cache.class | 48 2. cache's high 32 save the `offset addr`,cache's low 32 save the `class addr` 54 `class addr` 55 1. `class addr` is just the point to a class, in ark runtime, class point is 32bit 56 2. because `class address` is no move in ark, so we do not need to worry that the saved class will … 57 3. if class address is move, it is still save, but maybe the hit rate will be lower. [all …]
|
| /arkcompiler/ets_frontend/es2panda/typescript/ |
| D | checker.h | 34 class Binder; 35 class Decl; 36 class EnumVariable; 37 class FunctionDecl; 38 class LocalVariable; 39 class Scope; 40 class Variable; 44 class AstNode; 45 class SpreadElement; 46 class AssignmentExpression; [all …]
|
| /arkcompiler/runtime_core/runtime/ |
| D | class.cpp | 22 #include "runtime/include/class-inl.h" 27 std::ostream &operator<<(std::ostream &os, const Class::State &state) in operator <<() 30 case Class::State::INITIAL: { in operator <<() 34 case Class::State::LOADED: { in operator <<() 38 case Class::State::VERIFIED: { in operator <<() 42 case Class::State::INITIALIZING: { in operator <<() 46 case Class::State::ERRONEOUS: { in operator <<() 50 case Class::State::INITIALIZED: { in operator <<() 63 Class::UniqId Class::CalcUniqId(const panda_file::File *file, panda_file::File::EntityId file_id) in CalcUniqId() 72 Class::UniqId Class::CalcUniqId(const uint8_t *descriptor) in CalcUniqId() [all …]
|
| /arkcompiler/runtime_core/runtime/include/ |
| D | class_linker.h | 32 #include "runtime/include/class.h" 47 class ClassLinkerErrorHandler; 49 class ClassLinker { 51 enum class Error { 67 … Class *GetClass(const uint8_t *descriptor, bool need_copy_descriptor, ClassLinkerContext *context, 70 …Class *GetClass(const panda_file::File &pf, panda_file::File::EntityId id, ClassLinkerContext *con… 73 Class *GetClass(const Method &caller, panda_file::File::EntityId id, 76 …Class *LoadClass(const panda_file::File &pf, panda_file::File::EntityId class_id, ClassLinkerConte… 139 template <class Callback> 153 template <class Callback> [all …]
|
| D | itable_builder.h | 20 #include "runtime/include/class-inl.h" 25 class ClassLinker; 27 class ITableBuilder { 31 …virtual void Build(ClassLinker *class_linker, Class *base, Span<Class *> class_interfaces, bool is… 33 virtual void Resolve(Class *klass) = 0; 35 virtual void UpdateClass(Class *klass) = 0; 37 virtual void DumpITable(Class *klass) = 0; 47 class DummyITableBuilder final : public ITableBuilder { 49 void Build([[maybe_unused]] ClassLinker *class_linker, [[maybe_unused]] Class *base, in Build() 50 … [[maybe_unused]] Span<Class *> class_interfaces, [[maybe_unused]] bool is_interface) override in Build() [all …]
|
| D | class_linker_extension.h | 23 #include "runtime/include/class.h" 28 class ClassLinker; 29 class ClassLinkerErrorHandler; 31 class ClassLinkerExtension { 43 virtual void InitializeArrayClass(Class *array_class, Class *component_class) = 0; 45 virtual void InitializePrimitiveClass(Class *primitive_class) = 0; 59 …virtual Class *CreateClass(const uint8_t *descriptor, size_t vtable_size, size_t imt_size, size_t … 61 virtual void FreeClass(Class *klass) = 0; 63 virtual void InitializeClass(Class *klass) = 0; 73 Class *GetClassRoot(ClassRoot root) const in GetClassRoot() [all …]
|
| D | class-inl.h | 18 #include "runtime/include/class.h" 83 inline uint32_t Class::GetTypeSize(panda_file::Type type) in GetTypeSize() 110 inline uint32_t Class::GetComponentSize() const in GetComponentSize() 119 inline bool Class::IsClassClass() const in IsClassClass() 121 return GetManagedObject()->ClassAddr<Class>() == this; in IsClassClass() 124 inline bool Class::IsSubClassOf(const Class *klass) const in IsSubClassOf() 126 const Class *current = this; in IsSubClassOf() 139 inline bool Class::IsAssignableFrom(const Class *klass) const in IsAssignableFrom() 156 inline bool Class::Implements(const Class *klass) const in Implements() 167 template <Class::FindFilter filter> [all …]
|
| /arkcompiler/runtime_core/libark_defect_scan_aux/ |
| D | class.cpp | 16 #include "class.h" 21 const std::string &Class::GetClassName() const in GetClassName() 26 const AbcFile *Class::GetAbcFileInstance() const in GetAbcFileInstance() 31 const Function *Class::GetDefineFunction() const in GetDefineFunction() 36 size_t Class::GetMemberFunctionCount() const in GetMemberFunctionCount() 41 const Function *Class::GetMemberFunctionByName(std::string_view func_name) const in GetMemberFunctionByName() 54 const Function *Class::GetMemberFunctionByIndex(size_t index) const in GetMemberFunctionByIndex() 60 const Class *Class::GetParentClass() const in GetParentClass() 65 const std::string &Class::GetParentClassName() const in GetParentClassName() 70 const std::string &Class::GetParClassExternalModuleName() const in GetParClassExternalModuleName() [all …]
|
| /arkcompiler/runtime_core/runtime/include/coretypes/ |
| D | class.h | 23 #include "runtime/include/class.h" 28 class Class : public ObjectHeader { 30 Class(const uint8_t *descriptor, uint32_t vtable_size, uint32_t imt_size, uint32_t klass_size) in Class() function 36 // otherwise it may cause data race while visiting object's class concurrently in gc. 40 …panda::Class(descriptor, panda_file::SourceLang::PANDA_ASSEMBLY, vtable_size, imt_size, klass_size… in InitClass() 43 panda::Class *GetRuntimeClass() in GetRuntimeClass() 48 const panda::Class *GetRuntimeClass() const in GetRuntimeClass() 53 template <class T> 59 template <class T> 84 return MEMBER_OFFSET(Class, klass_); in GetRuntimeClassOffset() [all …]
|
| /arkcompiler/ets_frontend/es2panda/parser/ |
| D | parserImpl.h | 38 enum class TokenFlags; 39 enum class TokenType; 40 class LexerPosition; 41 class Token; 42 class Lexer; 46 class ArrowFunctionExpression; 47 class AstNode; 48 class BlockStatement; 49 class BreakStatement; 50 class CallExpression; [all …]
|
| /arkcompiler/ets_frontend/ |
| D | README.md | 70 <table><thead align="left"><tr id="row535415467591"><th class="cellrowborder" valign="top" width="1… 72 <th class="cellrowborder" valign="top" width="19.33806619338066%" id="mcps1.1.6.1.3"><p id="p157281… 74 <th class="cellrowborder" valign="top" width="25.82741725827417%" id="mcps1.1.6.1.4"><p id="p103276… 76 <th class="cellrowborder" valign="top" width="35.066493350664935%" id="mcps1.1.6.1.5"><p id="p18354… 80 <tbody><tr id="row1435412465598"><td class="cellrowborder" valign="top" width="12.898710128987101%"… 82 <td class="cellrowborder" valign="top" width="19.33806619338066%" headers="mcps1.1.6.1.3 "><p id="p… 84 <td class="cellrowborder" valign="top" width="25.82741725827417%" headers="mcps1.1.6.1.4 "><p id="p… 86 <td class="cellrowborder" valign="top" width="35.066493350664935%" headers="mcps1.1.6.1.5 "><p id="… 89 <tr id="row1435412465598"><td class="cellrowborder" valign="top" width="12.898710128987101%" header… 91 <td class="cellrowborder" valign="top" width="19.33806619338066%" headers="mcps1.1.6.1.3 "><p id="p… [all …]
|
| D | README_zh.md | 70 <table><thead align="left"><tr id="row535415467591"><th class="cellrowborder" valign="top" width="1… 72 <th class="cellrowborder" valign="top" width="19.33806619338066%" id="mcps1.1.6.1.3"><p id="p157281… 74 <th class="cellrowborder" valign="top" width="25.82741725827417%" id="mcps1.1.6.1.4"><p id="p103276… 76 <th class="cellrowborder" valign="top" width="35.066493350664935%" id="mcps1.1.6.1.5"><p id="p18354… 80 <tbody><tr id="row1435412465598"><td class="cellrowborder" valign="top" width="12.898710128987101%"… 82 <td class="cellrowborder" valign="top" width="19.33806619338066%" headers="mcps1.1.6.1.3 "><p id="p… 84 <td class="cellrowborder" valign="top" width="25.82741725827417%" headers="mcps1.1.6.1.4 "><p id="p… 86 <td class="cellrowborder" valign="top" width="35.066493350664935%" headers="mcps1.1.6.1.5 "><p id="… 89 <tr id="row1435412465598"><td class="cellrowborder" valign="top" width="12.898710128987101%" header… 91 <td class="cellrowborder" valign="top" width="19.33806619338066%" headers="mcps1.1.6.1.3 "><p id="p… [all …]
|
| /arkcompiler/runtime_core/runtime/tests/ |
| D | class_size_test.cpp | 21 #include "runtime/include/class-inl.h" 23 #include "runtime/include/coretypes/class.h" 34 const size_t aligned_class_size = AlignUp(sizeof(Class), OBJECT_POINTER_SIZE); in TEST() 35 ASSERT_EQ(aligned_class_size, Class::ComputeClassSize(0, 0, 0, 0, 0, 0, 0, 0)); in TEST() 40 const size_t aligned_class_size = AlignUp(sizeof(Class), OBJECT_POINTER_SIZE); in TEST() 42 …ASSERT_EQ(aligned_class_size + vtbl_size * POINTER_SIZE, Class::ComputeClassSize(vtbl_size, 0, 0, … in TEST() 47 const size_t aligned_class_size = AlignUp(sizeof(Class), OBJECT_POINTER_SIZE); in TEST() 50 Class::ComputeClassSize(0, 0, num_8bit_fields, 0, 0, 0, 0, 0)); in TEST() 55 const size_t aligned_class_size = AlignUp(sizeof(Class), OBJECT_POINTER_SIZE); in TEST() 58 Class::ComputeClassSize(0, 0, 0, num_16bit_fields, 0, 0, 0, 0)); in TEST() [all …]
|
| /arkcompiler/ets_runtime/docs/ |
| D | using-the-toolchain.md | 24 <table><thead align="left"><tr id="row19706343164411"><th class="cellrowborder" valign="top" width=… 26 <th class="cellrowborder" valign="top" width="6.830683068306829%" id="mcps1.1.6.1.2"><p id="p954814… 28 <th class="cellrowborder" valign="top" width="44.34443444344434%" id="mcps1.1.6.1.3"><p id="p170614… 30 <th class="cellrowborder" valign="top" width="26.01260126012601%" id="mcps1.1.6.1.4"><p id="p184125… 32 <th class="cellrowborder" valign="top" width="7.520752075207521%" id="mcps1.1.6.1.5"><p id="p158941… 36 <tbody><tr id="row770684312444"><td class="cellrowborder" valign="top" width="15.29152915291529%" h… 38 <td class="cellrowborder" valign="top" width="6.830683068306829%" headers="mcps1.1.6.1.2 "><p id="p… 40 <td class="cellrowborder" valign="top" width="44.34443444344434%" headers="mcps1.1.6.1.3 "><p id="p… 42 <td class="cellrowborder" valign="top" width="26.01260126012601%" headers="mcps1.1.6.1.4 "><p id="p… 44 <td class="cellrowborder" valign="top" width="7.520752075207521%" headers="mcps1.1.6.1.5 "><p id="p… [all …]
|
| D | using-the-toolchain-zh.md | 24 <table><thead align="left"><tr id="row19706343164411"><th class="cellrowborder" valign="top" width=… 26 <th class="cellrowborder" valign="top" width="6.830683068306829%" id="mcps1.1.6.1.2"><p id="p954814… 28 <th class="cellrowborder" valign="top" width="44.34443444344434%" id="mcps1.1.6.1.3"><p id="p170614… 30 <th class="cellrowborder" valign="top" width="26.01260126012601%" id="mcps1.1.6.1.4"><p id="p184125… 32 <th class="cellrowborder" valign="top" width="7.520752075207521%" id="mcps1.1.6.1.5"><p id="p158941… 36 <tbody><tr id="row770684312444"><td class="cellrowborder" valign="top" width="15.29152915291529%" h… 38 <td class="cellrowborder" valign="top" width="6.830683068306829%" headers="mcps1.1.6.1.2 "><p id="p… 40 <td class="cellrowborder" valign="top" width="44.34443444344434%" headers="mcps1.1.6.1.3 "><p id="p… 42 <td class="cellrowborder" valign="top" width="26.01260126012601%" headers="mcps1.1.6.1.4 "><p id="p… 44 <td class="cellrowborder" valign="top" width="7.520752075207521%" headers="mcps1.1.6.1.5 "><p id="p… [all …]
|
| /arkcompiler/runtime_core/libark_defect_scan_aux/include/ |
| D | class.h | 24 class Class; variable 25 class Function; 26 class AbcFile; 29 const Class *class_ {nullptr}; 35 class Class final { 37 Class(std::string_view class_name, const AbcFile *abc_file, const Function *def_func) in Class() function 41 ~Class() = default; 42 NO_COPY_SEMANTIC(Class); 43 NO_MOVE_SEMANTIC(Class); 51 const Class *GetParentClass() const; [all …]
|
| /arkcompiler/ets_frontend/es2panda/binder/ |
| D | declaration.h | 24 class AstNode; 25 class ScriptFunction; 26 class TSInterfaceDeclaration; 27 class TSModuleDeclaration; 28 class ImportDeclaration; 33 class Scope; 34 class LocalScope; 36 #define DECLARE_CLASSES(decl_kind, className) class className; 40 class Decl { in DECLARATION_KINDS() 120 class MultiDecl : public Decl { [all …]
|