| /arkcompiler/runtime_core/static_core/compiler/aot/ |
| D | aot_headers.h | 29 alignas(alignof(uint32_t)) std::array<char, AOT_HEADER_MAGIC_SIZE> magic; 30 alignas(alignof(uint32_t)) std::array<char, AOT_HEADER_VERSION_SIZE> version; 31 uint32_t checksum; 32 uint32_t environmentChecksum; 33 uint32_t arch; 34 uint32_t gcType; 35 uint32_t filesCount; 36 uint32_t filesOffset; 37 uint32_t classHashTablesOffset; 38 uint32_t classesOffset; [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/ |
| D | regexp_opcode.h | 88 virtual uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const = 0; 98 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 102 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override; 108 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 112 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override; 118 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 122 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override; 128 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 129 void UpdateOpPara(DynChunk *buf, uint32_t offset, uint32_t para) const; 133 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override; [all …]
|
| D | regexp_opcode.cpp | 110 uint32_t pc = RegExpParser::OP_START_OFFSET; in DumpRegExpOpCode() 117 uint32_t SaveStartOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 125 uint32_t SaveStartOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 132 uint32_t SaveEndOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 140 uint32_t SaveEndOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 147 uint32_t CharOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 155 uint32_t CharOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 162 uint32_t Char32OpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 169 uint32_t Char32OpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 176 uint32_t GotoOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() [all …]
|
| /arkcompiler/runtime_core/static_core/libpandafile/ |
| D | modifiers.h | 25 constexpr uint32_t ACC_PUBLIC = 0x0001; // field, method, class 26 constexpr uint32_t ACC_PRIVATE = 0x0002; // field, method, class 27 constexpr uint32_t ACC_PROTECTED = 0x0004; // field, method, class 28 constexpr uint32_t ACC_STATIC = 0x0008; // field, method 29 constexpr uint32_t ACC_FINAL = 0x0010; // field, method, class 30 constexpr uint32_t ACC_SUPER = 0x0020; // class 31 constexpr uint32_t ACC_SYNCHRONIZED = 0x0020; // method 32 constexpr uint32_t ACC_BRIDGE = 0x0040; // method 33 constexpr uint32_t ACC_VOLATILE = 0x0040; // field 34 constexpr uint32_t ACC_TRANSIENT = 0x0080; // field, [all …]
|
| D | code_data_accessor.h | 34 uint32_t GetStartPc() const in GetStartPc() 39 uint32_t GetLength() const in GetLength() 44 uint32_t GetNumCatches() const in GetNumCatches() 66 uint32_t startPc_; 67 uint32_t length_; 68 uint32_t numCatches_; 83 uint32_t GetTypeIdx() const in GetTypeIdx() 88 uint32_t GetHandlerPc() const in GetHandlerPc() 93 uint32_t GetCodeSize() const in GetCodeSize() 104 uint32_t typeIdx_; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/regexp/ |
| D | regexp_opcode.h | 91 virtual uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const = 0; 101 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 105 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override; 111 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 115 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override; 121 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 125 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override; 131 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 132 void UpdateOpPara(DynChunk *buf, uint32_t offset, uint32_t para) const; 136 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override; [all …]
|
| D | regexp_opcode.cpp | 116 uint32_t pc = RegExpParser::OP_START_OFFSET; in DumpRegExpOpCode() 123 uint32_t SaveStartOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 131 uint32_t SaveStartOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 138 uint32_t SaveEndOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 146 uint32_t SaveEndOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 153 uint32_t CharOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 161 uint32_t CharOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 168 uint32_t Char32OpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 175 uint32_t Char32OpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 182 uint32_t GotoOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() [all …]
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | modifiers.h | 25 static constexpr uint32_t ACC_PUBLIC = 0x0001; // field, method, class 26 static constexpr uint32_t ACC_PRIVATE = 0x0002; // field, method 27 static constexpr uint32_t ACC_PROTECTED = 0x0004; // field, method 28 static constexpr uint32_t ACC_STATIC = 0x0008; // field, method 29 static constexpr uint32_t ACC_FINAL = 0x0010; // field, method, class 30 static constexpr uint32_t ACC_SUPER = 0x0020; // class 31 static constexpr uint32_t ACC_SYNCHRONIZED = 0x0020; // method 32 static constexpr uint32_t ACC_BRIDGE = 0x0040; // method 33 static constexpr uint32_t ACC_VOLATILE = 0x0040; // field 34 static constexpr uint32_t ACC_TRANSIENT = 0x0080; // field, [all …]
|
| D | code_data_accessor.h | 34 uint32_t GetStartPc() const in GetStartPc() 39 uint32_t GetLength() const in GetLength() 44 uint32_t GetNumCatches() const in GetNumCatches() 66 uint32_t start_pc_; 67 uint32_t length_; 68 uint32_t num_catches_; 83 uint32_t GetTypeIdx() const in GetTypeIdx() 88 uint32_t GetHandlerPc() const in GetHandlerPc() 93 uint32_t GetCodeSize() const in GetCodeSize() 104 uint32_t type_idx_; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/ |
| D | profile_type.h | 49 uint32_t profileDataOff; 54 ProfileDataInfo(uint32_t profileDataOff, uint8_t profileType, uint8_t mapleFileNum) in ProfileDataInfo() 61 uint32_t classIdx; 62 uint32_t methodIdx; 63 uint32_t sigIdx; 64 uint32_t callTimes; 66 …FunctionItem(uint32_t classIdx, uint32_t methodIdx, uint32_t sigIdx, uint32_t callTimes, uint8_t t… in FunctionItem() 74 uint32_t classIdx; 75 uint32_t methodIdx; 76 uint32_t sigIdx; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_bigint.h | 27 enum class Operate : uint32_t { AND = 0, OR, XOR }; 33 static constexpr uint32_t DATEBITS = sizeof(uint32_t) * 8; // 8 : one-bit number of bytes 34 static constexpr uint32_t MAXBITS = 1_MB; // 1 MB : Maximum space that can be opened up 35 static constexpr uint32_t kMaxLengthBits = 1 << 30; // ~1 billion. 36 static constexpr uint32_t MAXSIZE = MAXBITS / DATEBITS; // the maximum value of size 37 static constexpr uint32_t MAXOCTALVALUE = 7; // 7 : max octal value 38 static constexpr uint32_t BINARY = 2; // 2 : binary 40 static constexpr uint32_t OCTAL = 8; // 8 : octal 41 static constexpr uint32_t DECIMAL = 10; // 10 : decimal 42 static constexpr uint32_t HEXADECIMAL = 16; // 16 : hexadecimal [all …]
|
| D | tagged_array.h | 30 static constexpr uint32_t MAX_ARRAY_INDEX = std::numeric_limits<uint32_t>::max(); 31 static constexpr uint32_t MAX_END_UNUSED = 4; 35 JSTaggedValue Get(uint32_t idx) const; 37 JSTaggedValue Get([[maybe_unused]] const JSThread *thread, uint32_t idx) const; 39 uint32_t GetIdx(const JSTaggedValue &value) const; 40 JSTaggedValue GetBit(uint32_t idx, uint32_t bitOffset) const; 43 inline void Set(const JSThread *thread, uint32_t idx, const JSHandle<T> &value); 46 inline void Set(const JSThread *thread, uint32_t idx, const JSTaggedValue &value); 48 void Set(uint32_t idx, const JSTaggedValue &value); 49 … void SetBit(const JSThread* thread, uint32_t idx, uint32_t bitOffset, const JSTaggedValue& value); [all …]
|
| D | ecma_string_table.h | 37 using IteratorPtr = std::shared_ptr<std::atomic<uint32_t>>; 53 static inline uint32_t GetNextTableId(IteratorPtr& iter) in GetNextTableId() 69 bool Run(uint32_t threadIndex) override; 82 std::atomic<uint32_t> PendingTaskCount_ {0U}; 105 static inline uint32_t GetTableId(uint32_t hashcode) in GetTableId() 115 … const JSHandle<EcmaString> &secondString, uint32_t hashcode); 116 …EcmaString *GetOrInternString(EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len, bool canBeCom… 117 EcmaString *GetOrInternStringWithoutLock(EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len, 118 bool canBeCompress, uint32_t hashcode); 119 …EcmaString *CreateAndInternStringNonMovable(EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | parallel_marker.h | 40 void MarkRoots(uint32_t threadId, VMRootVisitType type = VMRootVisitType::MARK); 41 void ProcessNewToEden(uint32_t threadId); // for HPPGC only sticky mode 42 void ProcessNewToEdenNoMarkStack(uint32_t threadId); 43 void ProcessOldToNew(uint32_t threadId); // for HPPGC only semi mode 44 void ProcessOldToNewNoMarkStack(uint32_t threadId); 45 void ProcessOldToNew(uint32_t threadId, Region *region); // for SemiGC 46 void ProcessSnapshotRSet(uint32_t threadId); // for SemiGC 47 void ProcessSnapshotRSetNoMarkStack(uint32_t threadId); 48 virtual void MarkJitCodeMap([[maybe_unused]] uint32_t threadId) in MarkJitCodeMap() 53 virtual void ProcessMarkStack([[maybe_unused]] uint32_t threadId) in ProcessMarkStack() [all …]
|
| /arkcompiler/runtime_core/libpandabase/utils/ |
| D | murmur3_hash.h | 32 static constexpr uint32_t C1 = 0xCC9E2D51U; 33 static constexpr uint32_t C2 = 0x1B873593U; 34 static constexpr uint32_t MAX_BITS = 32; 35 static constexpr uint32_t FINALIZE_FIRST_SHIFT = 16; 36 static constexpr uint32_t FINALIZE_SECOND_SHIFT = 13; 37 static constexpr uint32_t FINALIZE_THIRD_SHIFT = 16; 38 static constexpr uint32_t FINALIZE_FIRST_MULTIPLICATOR = 0x85EBCA6BU; 39 static constexpr uint32_t FINALIZE_SECOND_MULTIPLICATOR = 0xC2BAE35U; 40 static constexpr uint32_t MAIN_FIRST_SHIFT = 15; 41 static constexpr uint32_t MAIN_SECOND_SHIFT = 13; [all …]
|
| /arkcompiler/runtime_core/static_core/libpandabase/utils/ |
| D | murmur3_hash.h | 33 template <uint32_t SEED_VALUE> 36 static uint32_t GetHash32WithSeedImpl(const uint8_t *key, size_t len, uint32_t seed) in GetHash32WithSeedImpl() 40 static uint32_t GetHash32Impl(const uint8_t *key, size_t len) in GetHash32Impl() 44 static uint32_t GetHash32StringImpl(const uint8_t *mutf8String) in GetHash32StringImpl() 48 static uint32_t GetHash32StringWithSeedImpl(const uint8_t *mutf8String, uint32_t seed) in GetHash32StringWithSeedImpl() 56 static constexpr uint32_t C1 = 0xCC9E2D51U; 57 static constexpr uint32_t C2 = 0x1B873593U; 58 static constexpr uint32_t MAX_BITS = 32; 59 static constexpr uint32_t FINALIZE_FIRST_SHIFT = 16; 60 static constexpr uint32_t FINALIZE_SECOND_SHIFT = 13; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | type.h | 64 explicit ParamType(uint32_t type = 0) : type_(type) {} in type_() 68 type_ = BUILTIN_TYPE | static_cast<uint32_t>(jsType); in ParamType() 72 static ParamType name() { return ParamType(static_cast<uint32_t>(type)); } 79 bool Is##name() const { return type_ == static_cast<uint32_t>(type); } in PARAM_TYPE_LIST() 85 uint32_t Value() const 123 …static constexpr uint32_t BUILTIN_TYPE = (1 << 31); // 31 : the 31-th bit is set implies builtin t… 125 uint32_t type_ {0}; 132 constexpr explicit GateType(uint32_t type = 0) 145 uint32_t Value() const in Value() 177 return GateType(static_cast<uint32_t>(TSPrimitiveType::ANY)); in AnyType() [all …]
|
| D | bytecode_info_collector.h | 35 uint32_t methodsSize {0}; 40 …MethodInfo(uint32_t methodInfoIndex, uint32_t methodPcInfoIndex, std::shared_ptr<CString> recordNa… in MethodInfo() 45 static constexpr uint32_t DEFAULT_OUTMETHOD_OFFSET = 0; 46 static constexpr uint32_t DEFAULT_ROOT = std::numeric_limits<uint32_t>::max(); 48 inline uint32_t GetMethodPcInfoIndex() const in GetMethodPcInfoIndex() 53 inline void SetMethodPcInfoIndex(uint32_t methodPcInfoIndex) in SetMethodPcInfoIndex() 58 inline uint32_t GetMethodInfoIndex() const in GetMethodInfoIndex() 63 inline void SetMethodInfoIndex(uint32_t methodInfoIndex) in SetMethodInfoIndex() 121 uint32_t methodInfoIndex_ { 0 }; 123 uint32_t methodPcInfoIndex_ { 0 }; [all …]
|
| /arkcompiler/runtime_core/abc2program/ |
| D | abc_code_processor.h | 41 void AddJumpLabel4InsAtIndex(uint32_t inst_idx, pandasm::Ins &curr_pa_ins) const; 42 void AddLabel4InsAtIndex(uint32_t inst_idx) const; 43 void AddLabel4InsAtPc(uint32_t inst_pc) const; 44 std::string GetLabelNameAtPc(uint32_t inst_pc) const; 53 void SkipToNextEntryIfNeeded(uint32_t &idx, 54 uint32_t &offset_start, 55 uint32_t &offset_end, 56 uint32_t inst_idx, 59 uint32_t GetInstIdxByInstPc(uint32_t inst_pc) const; 60 uint32_t GetInstPcByInstIdx(uint32_t inst_idx) const; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
| D | module_section_des.h | 29 uint32_t startIndex {0}; 30 uint32_t funcCount {0}; 31 uint32_t rodataSizeBeforeText {0}; 32 uint32_t rodataSizeAfterText {0}; 33 uint32_t textSize {0}; 34 uint32_t stackMapSize {0}; 35 uint32_t strtabSize {0}; 36 uint32_t symtabSize {0}; 40 void UpdateRODataInfo(uint64_t textAddr, uint64_t &addrBeforeText, uint32_t &sizeBeforeText, in UpdateRODataInfo() 41 uint64_t &addrAfterText, uint32_t &sizeAfterText, ElfSecName sec) const in UpdateRODataInfo() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
| D | debug_info.h | 26 static constexpr uint32_t INVALID_LINE_NUMBER = std::numeric_limits<uint32_t>::max(); 27 static constexpr uint32_t INVALID_FILE_INDEX = std::numeric_limits<uint32_t>::max(); 28 static constexpr uint32_t INVALID_DIR_INDEX = std::numeric_limits<uint32_t>::max(); 30 InstDebugInfo(uint32_t dirIndex, uint32_t fileIndex, uint32_t lineNumber) in InstDebugInfo() 35 uint32_t GetLineNumber() const in GetLineNumber() 40 uint32_t GetFileIndex() const in GetFileIndex() 45 uint32_t GetDirIndex() const in GetDirIndex() 61 uint32_t dirIndex_ {INVALID_DIR_INDEX}; 62 uint32_t fileIndex_ {INVALID_FILE_INDEX}; 63 uint32_t lineNumber_ {INVALID_LINE_NUMBER};
|
| /arkcompiler/runtime_core/static_core/runtime/include/coretypes/ |
| D | string.h | 39 … static String *CreateFromMUtf8(const uint8_t *mutf8Data, size_t mutf8Length, uint32_t utf16Length, 43 PANDA_PUBLIC_API static String *CreateFromMUtf8(const uint8_t *mutf8Data, uint32_t utf16Length, 47 PANDA_PUBLIC_API static String *CreateFromMUtf8(const uint8_t *mutf8Data, uint32_t utf16Length, 54 …static String *CreateFromMUtf8(const uint8_t *mutf8Data, uint32_t mutf8Length, uint32_t utf16Lengt… 57 PANDA_PUBLIC_API static String *CreateFromUtf8(const uint8_t *utf8Data, uint32_t utf8Length, 61 PANDA_PUBLIC_API static String *CreateFromUtf16(const uint16_t *utf16Data, uint32_t utf16Length, 71 …PANDA_PUBLIC_API static String *CreateNewStringFromChars(uint32_t offset, uint32_t length, Array *… 74 …static String *CreateNewStringFromBytes(uint32_t offset, uint32_t length, uint32_t highByte, Array… 84 PANDA_PUBLIC_API static Array *GetChars(String *src, uint32_t start, uint32_t utf16Length, 97 static size_t ComputeDataSizeUtf16(uint32_t length) in ComputeDataSizeUtf16() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
| D | scheduler.h | 58 void AddDep(uint32_t *prio, Inst *from, Inst *to, uint32_t latency, Inst *barrier); 62 …void ProcessInst(Inst *inst, uint32_t *numInst, uint32_t *numBetween, uint32_t *numSpecial, Inst *… 63 void ProcessMemory(Inst *inst, uint32_t *prio, Inst *lastBarrier); 64 void ProcessSpecial(Inst *inst, uint32_t *prio, Inst *lastBarrier); 65 void ProcessSpecialBoundsCheckI(Inst *inst, uint32_t *prio, Inst *lastBarrier); 66 void ProcessRefInst(Inst *inst, uint32_t *prio, Inst *lastBarrier); 68 bool FinalizeBB(BasicBlock *bb, uint32_t cycle); 72 uint32_t ScheduleInstsBetweenBarriers(Inst *first, Inst *last); 75 uint32_t SchedWithGlued(Inst *inst, SchedulerPriorityQueue *waiting, uint32_t cycle); 78 uint32_t oprev_ {0}; [all …]
|
| /arkcompiler/runtime_core/abc2program/common/ |
| D | abc2program_entity_container.h | 35 uint32_t class_id) in Abc2ProgramEntityContainer() 46 const std::unordered_set<uint32_t> &GetMouleLiteralArrayIdSet() const; 47 const std::unordered_set<uint32_t> &GetModuleRequestPhaseIdSet() const; 48 const std::unordered_set<uint32_t> &GetUnnestedLiteralArrayIdSet() const; 49 std::unordered_set<uint32_t> &GetUnprocessedNestedLiteralArrayIdSet(); 50 void AddModuleLiteralArrayId(uint32_t module_literal_array_id); 51 void AddUnnestedLiteralArrayId(uint32_t literal_array_id); 52 void AddModuleRequestPhaseId(uint32_t module_request_phase_id); 53 void AddProcessedNestedLiteralArrayId(uint32_t nested_literal_array_id); 54 void TryAddUnprocessedNestedLiteralArrayId(uint32_t nested_literal_array_id); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/dfx/hprof/rawheap_translate/ |
| D | rawheap_translate.h | 28 uint32_t objSize; 29 uint32_t offset; // offset to the file 34 uint32_t index; 37 uint32_t size; 38 uint32_t nativeSize; 42 Node(uint32_t nodeIndex) in Node() 61 uint32_t nameOrIndex; 63 …Edge(EdgeType edgeType, std::shared_ptr<Node> nodeFrom, std::shared_ptr<Node> nodeTo, uint32_t ind… in Edge() 117 bool ParseMetaData(std::ifstream &file, uint32_t &offset); 118 bool ReadMetaDataJson(std::ifstream &file, uint32_t &offset, cJSON **json); [all …]
|