| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins.h | 30 const char *nativePropertyName{nullptr}; 43 void Initialize(const JSHandle<GlobalEnv> &env, JSThread *thread); 51 …JSHandle<JSFunction> NewBuiltinConstructor(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject… 52 … EcmaEntrypoint ctorFunc, const char *name, int length, 54 kungfu::BuiltinsStubCSigns::INVALID) const; 56 JSHandle<JSFunction> NewBuiltinCjsCtor(const JSHandle<GlobalEnv> &env, 57 … const JSHandle<JSObject> &prototype, EcmaEntrypoint ctorFunc, 58 const char *name, int length) const; 60 …JSHandle<JSFunction> NewFunction(const JSHandle<GlobalEnv> &env, const JSHandle<JSTaggedValue> &ke… 63 kungfu::BuiltinsStubCSigns::INVALID) const; [all …]
|
| /arkcompiler/runtime_core/runtime/include/ |
| D | language_context.h | 46 std::vector<const uint8_t *> array_elements_for_verification; 61 virtual panda_file::SourceLang GetLanguage() const = 0; 63 virtual const uint8_t *GetStringClassDescriptor() const in GetStringClassDescriptor() 68 virtual const uint8_t *GetObjectClassDescriptor() const = 0; 70 virtual const uint8_t *GetClassClassDescriptor() const = 0; 72 virtual const uint8_t *GetClassArrayClassDescriptor() const = 0; 74 virtual const uint8_t *GetStringArrayClassDescriptor() const = 0; 76 virtual const uint8_t *GetCtorName() const in GetCtorName() 81 virtual const uint8_t *GetCctorName() const in GetCctorName() 86 virtual const uint8_t *GetNullPointerExceptionClassDescriptor() const = 0; [all …]
|
| D | class.h | 51 uint32_t GetFlags() const in GetFlags() 56 bool IsDynamicClass() const in IsDynamicClass() 61 uint32_t GetObjectSize() const in GetObjectSize() 76 ObjectHeader *GetManagedObject() const in GetManagedObject() 81 panda_file::SourceLang GetSourceLang() const in GetSourceLang() 135 …Class(const uint8_t *descriptor, panda_file::SourceLang lang, uint32_t vtable_size, uint32_t imt_s… 138 Class *GetBase() const in GetBase() 148 panda_file::File::EntityId GetFileId() const in GetFileId() 158 const panda_file::File *GetPandaFile() const in GetPandaFile() 163 void SetPandaFile(const panda_file::File *pf) in SetPandaFile() [all …]
|
| /arkcompiler/runtime_core/verification/absint/ |
| D | panda_types.h | 48 const PandaString &ClassNameOfId(Id id) in ClassNameOfId() 53 const PandaString &MethodNameOfId(Id id) in MethodNameOfId() 59 TypeParams NormalizeMethodSignature(const TypeParams &sig); 61 const TypeParams &MethodSignature(const CachedMethod &method); 62 const TypeParams &NormalizedMethodSignature(const CachedMethod &method); 64 TypeId TypeIdOf(const Type &type) const; 66 Type TypeOf(const CachedMethod &method); 67 Type TypeOf(const CachedClass &klass); 68 Type TypeOf(TypeId id) const; 70 Type TypeOf(const TypeParamIdx &idx) const in TypeOf() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_tagged_value.h | 119 static const JSTaggedType NULL_POINTER = VALUE_HOLE; 120 static const JSTaggedType INVALID_VALUE_LIMIT = 0x40000ULL; 168 …ARK_INLINE explicit JSTaggedValue(const TaggedObject *v) : value_(static_cast<JSTaggedType>(ToUint… in JSTaggedValue() 196 inline JSTaggedValue CreateAndGetWeakRef() const in CreateAndGetWeakRef() 203 inline JSTaggedValue GetWeakRawValue() const in GetWeakRawValue() 211 ARK_INLINE bool IsWeak() const in IsWeak() 216 ARK_INLINE bool IsDouble() const in IsDouble() 221 ARK_INLINE bool IsInt() const in IsInt() 226 ARK_INLINE bool IsSpecial() const in IsSpecial() 231 ARK_INLINE bool IsObject() const in IsObject() [all …]
|
| D | tagged_list.h | 29 static const int NUMBER_OF_NODE_INDEX = 0; 30 static const int NUMBER_OF_DELETED_NODES_INDEX = 1; 31 static const int HEAD_TABLE_INDEX = 2; 32 static const int TAIL_TABLE_INDEX = 3; 33 static const int ELEMENTS_START_INDEX = 4; 34 static const int DEFAULT_ARRAY_LENGHT = 10; 35 static const int NEXT_PTR_OFFSET = 1; 36 static const int PREV_PTR_OFFSET = 2; 38 … static JSHandle<Derived> Create(const JSThread *thread, int numberOfNodes = DEFAULT_ARRAY_LENGHT); 39 …static JSHandle<Derived> GrowCapacity(const JSThread *thread, const JSHandle<Derived> &taggedList); [all …]
|
| D | js_object.h | 57 explicit PropertyDescriptor(const JSThread *thread) : thread_(thread) {} in PropertyDescriptor() 59 …explicit PropertyDescriptor(const JSThread *thread, JSHandle<JSTaggedValue> v) : thread_(thread), … in PropertyDescriptor() 61 …explicit PropertyDescriptor(const JSThread *thread, JSHandle<JSTaggedValue> v, bool w, bool e, boo… in PropertyDescriptor() 73 explicit PropertyDescriptor(const JSThread *thread, bool w, bool e, bool c) in PropertyDescriptor() 78 inline JSHandle<JSTaggedValue> GetValue() const in GetValue() 91 inline bool IsWritable() const in IsWritable() 102 inline bool IsEnumerable() const in IsEnumerable() 113 inline bool IsConfigurable() const in IsConfigurable() 124 inline bool HasValue() const in HasValue() 129 inline bool HasWritable() const in HasWritable() [all …]
|
| /arkcompiler/ets_frontend/es2panda/compiler/core/ |
| D | pandagen.h | 73 ArenaVector<const binder::Scope *> variableDebugInfo; 74 const ir::Statement *firstStmt {}; 99 inline ArenaAllocator *Allocator() const in Allocator() 104 inline CompilerContext *Context() const in Context() 109 const ArenaSet<util::StringView> &Strings() const in Strings() 114 const ArenaVector<CatchTable *> &CatchList() const in CatchList() 119 binder::FunctionScope *TopScope() const in TopScope() 124 binder::Scope *Scope() const in Scope() 129 const ir::AstNode *RootNode() const in RootNode() 139 const ArenaList<IRNode *> &Insns() const in Insns() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/assembler/aarch64/ |
| D | assembler_aarch64.h | 27 Register W() const in W() 32 Register X() const in X() 37 RegisterType GetType() const in GetType() 42 inline bool IsSp() const in IsSp() 47 inline bool IsW() const in IsW() 52 inline RegisterId GetId() const in GetId() 57 inline bool IsValid() const in IsValid() 62 inline bool operator !=(const Register &other) 67 inline bool operator ==(const Register &other) 81 inline VectorRegisterId GetId() const in GetId() [all …]
|
| /arkcompiler/runtime_core/runtime/core/ |
| D | core_language_context.h | 35 panda_file::SourceLang GetLanguage() const override in GetLanguage() 40 const uint8_t *GetObjectClassDescriptor() const override in GetObjectClassDescriptor() 45 const uint8_t *GetClassClassDescriptor() const override in GetClassClassDescriptor() 50 const uint8_t *GetClassArrayClassDescriptor() const override in GetClassArrayClassDescriptor() 55 const uint8_t *GetStringArrayClassDescriptor() const override in GetStringArrayClassDescriptor() 60 const uint8_t *GetNullPointerExceptionClassDescriptor() const override in GetNullPointerExceptionClassDescriptor() 65 const uint8_t *GetStackOverflowErrorClassDescriptor() const override in GetStackOverflowErrorClassDescriptor() 70 const uint8_t *GetArrayIndexOutOfBoundsExceptionClassDescriptor() const override in GetArrayIndexOutOfBoundsExceptionClassDescriptor() 75 const uint8_t *GetIndexOutOfBoundsExceptionClassDescriptor() const override in GetIndexOutOfBoundsExceptionClassDescriptor() 80 const uint8_t *GetIllegalStateExceptionClassDescriptor() const override in GetIllegalStateExceptionClassDescriptor() [all …]
|
| /arkcompiler/toolchain/tooling/base/ |
| D | pt_json.h | 45 static std::unique_ptr<PtJson> Parse(const std::string &data); 48 std::string Stringify() const; 51 bool Add(const char *key, bool value) const; 52 bool Add(const char *key, int32_t value) const; 53 bool Add(const char *key, int64_t value) const; 54 bool Add(const char *key, double value) const; 55 bool Add(const char *key, const char *value) const; 56 bool Add(const char *key, const std::unique_ptr<PtJson> &value) const; 59 bool Push(bool value) const; 60 bool Push(int32_t value) const; [all …]
|
| /arkcompiler/runtime_core/disassembler/ |
| D | disassembler.h | 58 …void Disassemble(const std::string &filename_in, const bool quiet = false, const bool skip_strings… 60 …oid Serialize(std::ostream &os, bool add_separators = false, bool print_information = false) const; 62 static inline bool IsPandasmFriendly(const char c); 63 static inline bool IsSystemType(const std::string &type_name); 65 void GetRecord(pandasm::Record *record, const panda_file::File::EntityId &record_id); 66 void AddMethodToTables(const panda_file::File::EntityId &method_id); 67 void GetMethod(pandasm::Function *method, const panda_file::File::EntityId &method_id); 68 void GetLiteralArray(pandasm::LiteralArray *lit_array, size_t index) const; 70 void FillLiteralArrayData(pandasm::LiteralArray *lit_array, const panda_file::LiteralTag &tag, 71 const panda_file::LiteralDataAccessor::LiteralValue &value) const; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | gate_accessor.h | 26 … explicit ConstUseIterator(const Circuit* circuit, const Out* out) : circuit_(circuit), out_(out) in ConstUseIterator() 30 GateRef operator*() const 38 const ConstUseIterator operator++() 48 const ConstUseIterator operator++(int) 55 size_t GetIndex() const in GetIndex() 61 OpCode GetOpCode() const in GetOpCode() 67 friend bool operator== (const ConstUseIterator& a, const ConstUseIterator& b) 71 friend bool operator!= (const ConstUseIterator& a, const ConstUseIterator& b) 77 const Circuit* circuit_; 78 const Out* out_; [all …]
|
| /arkcompiler/ets_runtime/test/perform/string/ |
| D | string.js | 17 … const str = "The quick brown fox jumps over the lazy dog. If the dog reacted, was it really lazy?" 18 const time1 = Date.now() 22 const time2 = Date.now() 23 const time3 = time2 - time1; 29 const re = /apples/gi; 30 const str = 'Apples are round, and apples are juicy.'; 31 const time1 = Date.now() 35 const time2 = Date.now() 36 const time3 = time2 - time1; 44 const time1 = Date.now() [all …]
|
| /arkcompiler/runtime_core/compiler/aot/ |
| D | aot_file.h | 40 …le(panda::os::library_loader::LibraryHandle &&handle, Span<const uint8_t> aot_data, Span<const uin… in AotFile() 50 …static Expected<std::unique_ptr<AotFile>, std::string> Open(const std::string &file_name, uint32_t… 53 const void *GetCode() const in GetCode() 58 size_t GetCodeSize() const in GetCodeSize() 63 auto FileHeaders() const in FileHeaders() 65 … return aot_data_.SubSpan<const PandaFileHeader>(GetAotHeader()->files_offset, GetFilesCount()); in FileHeaders() 68 auto GetMethodHeader(size_t index) const in GetMethodHeader() 71 … return reinterpret_cast<const MethodHeader *>(&aot_data_[GetAotHeader()->methods_offset]) + index; in GetMethodHeader() 74 const MethodHeader *GetMethodHeadersPtr() const in GetMethodHeadersPtr() 76 return reinterpret_cast<const MethodHeader *>(&aot_data_[GetAotHeader()->methods_offset]); in GetMethodHeadersPtr() [all …]
|
| /arkcompiler/runtime_core/libark_defect_scan_aux/include/ |
| D | abc_file.h | 47 using FuncInstPair = std::pair<const Function *, Inst>; 48 using ResolveResult = std::tuple<const void *, std::string, ResolveType>; 52 static std::unique_ptr<const AbcFile> Open(std::string_view abc_filename); 55 bool IsModule() const; 56 const std::string &GetAbcFileName() const; 57 size_t GetDefinedFunctionCount() const; 58 size_t GetDefinedClassCount() const; 59 const Function *GetDefinedFunctionByIndex(size_t index) const; 60 const Function *GetFunctionByName(std::string_view func_name) const; 61 const Function *GetExportFunctionByExportName(std::string_view export_func_name) const; [all …]
|
| D | function.h | 33 …Function(std::string_view func_name, panda_file::File::EntityId m_id, uint32_t arg_count, const Gr… in Function() 34 const AbcFile *abc_file) in Function() 42 const std::string &GetFunctionName() const; 43 const AbcFile *GetAbcFileInstance() const; 44 const Graph &GetGraph() const; 45 const Class *GetClass() const; 46 const Function *GetParentFunction() const; 47 uint32_t GetArgCount() const; 48 size_t GetDefinedClassCount() const; 49 size_t GetDefinedFunctionCount() const; [all …]
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | bytecode_instruction.h | 35 template <const BytecodeInstMode> 49 panda_file::File::Index AsIndex() const in AsIndex() 55 panda_file::File::EntityId AsFileId() const in AsFileId() 60 uint32_t AsRawValue() const in AsRawValue() 65 bool IsValid() const in IsValid() 70 bool operator==(BytecodeId id) const noexcept 91 explicit BytecodeInstBase(const uint8_t *pc) : pc_ {pc} {} in BytecodeInstBase() 95 const uint8_t *GetPointer(int32_t offset) const in GetPointer() 101 const uint8_t *GetAddress() const in GetAddress() 106 const uint8_t *GetAddress() volatile const in GetAddress() [all …]
|
| /arkcompiler/ets_frontend/es2panda/typescript/extractor/ |
| D | typeRecorder.h | 33 const util::StringView DEFAULT_NAME = "default"; 42 ArenaAllocator *Allocator() const; 43 const ArenaVector<compiler::LiteralBuffer *> &BuffStorage() const; 44 const std::unordered_map<const ir::AstNode *, int64_t> &NodeTypeIndex() const; 45 const std::unordered_map<const binder::Variable *, int64_t> &VariableTypeIndex() const; 46 const std::unordered_map<std::string, int64_t> &ExportType() const; 47 const std::unordered_map<std::string, int64_t> &DeclareType() const; 51 compiler::LiteralBuffer *GetLiteralBuffer(int64_t index) const; 54 util::StringView GetAnonymousFunctionNames(const ir::ScriptFunction *func) const; 56 int64_t CalculateUserType() const; [all …]
|
| D | typeExtractor.h | 26 using Getter = std::function<int64_t(const ir::AstNode *, bool isNewInstance)>; 27 using Handler = std::function<void(const ir::AstNode *)>; 31 …explicit TypeExtractor(const ir::BlockStatement *rootNode, bool typeDtsExtractor, bool typeDtsBuil… 37 void StartTypeExtractor(const parser::Program *program); 39 bool GetTypeDtsExtractor() const; 40 bool GetTypeDtsBuiltin() const; 41 TypeRecorder *Recorder() const; 43 const ir::Identifier *GetIdentifierFromExpression(const ir::Expression *expression); 44 int64_t GetTypeIndexFromAnnotation(const ir::Expression *typeAnnotation); 45 int64_t GetTypeIndexFromIdentifier(const ir::Identifier *identifier); [all …]
|
| /arkcompiler/runtime_core/assembler/ |
| D | assembly-emitter.h | 52 …static bool Emit(panda_file::ItemContainer *items, const Program &program, PandaFileToPandaAsmMaps… 55 …static bool Emit(panda_file::Writer *writer, const Program &program, std::map<std::string, size_t>… 59 …static bool Emit(const std::string &filename, const Program &program, std::map<std::string, size_t… 63 …static bool EmitPrograms(const std::string &filename, const std::vector<Program *> &progs, bool em… 65 static std::unique_ptr<const panda_file::File> Emit(const Program &program, 74 static void MakeStringItems(panda_file::ItemContainer *items, const Program &program, 76 static void MakeLiteralItems(panda_file::ItemContainer *items, const Program &program, 78 static void MakeArrayTypeItems(panda_file::ItemContainer *items, const Program &program, 81 panda_file::ItemContainer *items, const Program &program, AsmEntityCollections &entities, 82 …const std::unordered_map<panda_file::Type::TypeId, panda_file::PrimitiveTypeItem *> &primitive_typ… [all …]
|
| /arkcompiler/ets_runtime/ecmascript/napi/include/ |
| D | jsnapi.h | 77 className(const className &) = delete; \ 78 className &operator=(const className &) = delete 91 inline Local(const Local<S> ¤t) : address_(reinterpret_cast<uintptr_t>(*current)) in Local() 96 Local(const EcmaVM *vm, const Global<T> ¤t); 98 Local(const EcmaVM *vm, const CopyableGlobal<T> ¤t); 102 inline T *operator*() const 107 inline T *operator->() const 112 inline bool IsEmpty() const in IsEmpty() 117 inline bool IsNull() const in IsNull() 124 inline T *GetAddress() const in GetAddress() [all …]
|
| /arkcompiler/runtime_core/verification/type/ |
| D | type_type.h | 35 Type(const Type &) = default; 37 Type &operator=(const Type &) = default; 41 bool operator==(const Type &t) const; 43 bool operator!=(const Type &t) const; 45 const Type &operator<<(const Type &t) const; 48 const TypeSet &operator<<(const TypeSet &s) const; 52 TypeSet operator|(const Type &t) const; 55 TypeParam operator+() const; 58 TypeParam operator-() const; 61 TypeParam operator~() const; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/stubs/ |
| D | runtime_stubs.h | 40 using JSFunctionEntryType = JSTaggedValue (*)(uintptr_t glue, uint32_t argc, const JSTaggedType arg… 329 static void DebugPrintInstruction([[maybe_unused]]uintptr_t argGlue, const uint8_t *pc); 358 static inline JSTaggedValue RuntimeInc(JSThread *thread, const JSHandle<JSTaggedValue> &value); 359 static inline JSTaggedValue RuntimeDec(JSThread *thread, const JSHandle<JSTaggedValue> &value); 361 static inline JSTaggedValue RuntimeIsIn(JSThread *thread, const JSHandle<JSTaggedValue> &prop, 362 const JSHandle<JSTaggedValue> &obj); 363 …static inline JSTaggedValue RuntimeInstanceof(JSThread *thread, const JSHandle<JSTaggedValue> &obj, 364 const JSHandle<JSTaggedValue> &target); 365 …static inline JSTaggedValue RuntimeCreateGeneratorObj(JSThread *thread, const JSHandle<JSTaggedVal… 368 … const JSHandle<JSTaggedValue> &genFunc); [all …]
|
| /arkcompiler/toolchain/tooling/agent/ |
| D | debugger_impl.h | 35 DebuggerImpl(const EcmaVM *vm, ProtocolChannel *channel, RuntimeImpl *runtime); 39 bool NotifyScriptParsed(ScriptId scriptId, const std::string &fileName, 41 bool NotifySingleStep(const JSPtLocation &location); 45 void NotifyNativeCalling(const void *nativeAddress); 47 DispatchResponse Enable(const EnableParams ¶ms, UniqueDebuggerId *id); 49 DispatchResponse EvaluateOnCallFrame(const EvaluateOnCallFrameParams ¶ms, 51 DispatchResponse GetPossibleBreakpoints(const GetPossibleBreakpointsParams ¶ms, 53 DispatchResponse GetScriptSource(const GetScriptSourceParams ¶ms, std::string *source); 55 DispatchResponse RemoveBreakpoint(const RemoveBreakpointParams ¶ms); 56 DispatchResponse Resume(const ResumeParams ¶ms); [all …]
|