| /arkcompiler/runtime_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 environment_checksum; 33 uint32_t arch; 34 uint32_t gc_type; 35 uint32_t files_count; 36 uint32_t files_offset; 37 uint32_t class_hash_tables_offset; 38 uint32_t classes_offset; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/regexp/ |
| D | regexp_opcode.h | 89 virtual uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const = 0; 99 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 103 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override; 109 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 113 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override; 119 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 123 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override; 129 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 130 void UpdateOpPara(DynChunk *buf, uint32_t offset, uint32_t para) const; 134 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override; [all …]
|
| D | regexp_opcode.cpp | 114 uint32_t pc = RegExpParser::OP_START_OFFSET; in DumpRegExpOpCode() 121 uint32_t SaveStartOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 129 uint32_t SaveStartOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 136 uint32_t SaveEndOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 144 uint32_t SaveEndOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 151 uint32_t CharOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 159 uint32_t CharOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 166 uint32_t Char32OpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 173 uint32_t Char32OpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 180 uint32_t GotoOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() [all …]
|
| D | regexp_executor.h | 38 uint32_t currentPc_ = 0; 39 uint32_t currentStack_ = 0; 45 uint32_t endIndex_ = 0; 46 uint32_t index_ = 0; 62 …bool Execute(const uint8_t *input, uint32_t lastIndex, uint32_t length, uint8_t *buf, bool isWideC… 64 bool ExecuteInternal(const DynChunk &byteCode, uint32_t pcEnd); 86 uint32_t currentChar = GetCurrentChar(); in HandleOpAll() 96 uint32_t expectedChar = 0; in HandleOpChar() 105 uint32_t currentChar = GetCurrentChar(); in HandleOpChar() 107 currentChar = static_cast<uint32_t>(RegExpParser::Canonicalize(currentChar, IsUtf16())); in HandleOpChar() [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/ |
| D | js_bigint.h | 28 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 MAXSIZE = MAXBITS / DATEBITS; // the maximum value of size 36 static constexpr uint32_t MAXOCTALVALUE = 7; // 7 : max octal value 37 static constexpr uint32_t BINARY = 2; // 2 : binary 39 static constexpr uint32_t OCTAL = 8; // 8 : octal 40 static constexpr uint32_t DECIMAL = 10; // 10 : decimal 41 static constexpr uint32_t HEXADECIMAL = 16; // 16 : hexadecimal 42 static constexpr uint32_t HALFDATEBITS = DATEBITS / 2; [all …]
|
| D | js_bigint.cpp | 27 uint32_t res = 0; in CharToInt() 38 static void Division(CString &num, uint32_t conversionToRadix, uint32_t currentRadix, uint32_t &rem… in Division() 41 uint32_t temp = 0; in Division() 44 temp = (currentRadix * remain + static_cast<uint32_t>(CharToInt(num[i]))); in Division() 55 CString BigIntHelper::Conversion(const CString &num, uint32_t conversionToRadix, uint32_t currentRa… in Conversion() 60 uint32_t remain = 0; in Conversion() 85 JSHandle<BigInt> BigIntHelper::SetBigInt(JSThread *thread, const CString &numStr, uint32_t currentR… in SetBigInt() 111 uint32_t val = 0; in SetBigInt() 114 val |= static_cast<uint32_t>(binaryStr[i] - '0'); in SetBigInt() 124 uint32_t val = 0; in SetBigInt() [all …]
|
| D | property_attributes.h | 55 explicit PropertyAttributes(uint32_t v) : value_(v) {} in PropertyAttributes() 56 explicit PropertyAttributes(int32_t v) : value_(static_cast<uint32_t>(v)) {} in PropertyAttributes() 60 static constexpr uint32_t DICTIONARY_ORDER_NUM = 20; 61 static constexpr uint32_t OFFSET_BITFIELD_NUM = 10; 62 static constexpr uint32_t MAX_CAPACITY_OF_PROPERTIES = (1U << OFFSET_BITFIELD_NUM) - 1; 75 using OffsetField = RepresentationField::NextField<uint32_t, OFFSET_BITFIELD_NUM>; // 18 77 static constexpr uint32_t NORMAL_ATTR_BITS = 18; 79 using SortedIndexField = OffsetField::NextField<uint32_t, OFFSET_BITFIELD_NUM>; // 28 83 …using DictionaryOrderField = PropertyBoxTypeField::NextField<uint32_t, DICTIONARY_ORDER_NUM>; // … 85 static constexpr uint32_t BIT_SIZE = 28; [all …]
|
| D | ecma_string.h | 45 static constexpr uint32_t STRING_COMPRESSED_BIT = 0x1; 46 static constexpr uint32_t STRING_INTERN_BIT = 0x2; 50 ACCESSORS_PRIMITIVE_FIELD(MixLength, uint32_t, MIX_LENGTH_OFFSET, HASHCODE_OFFSET) 51 ACCESSORS_PRIMITIVE_FIELD(RawHashcode, uint32_t, HASHCODE_OFFSET, SIZE) 69 …static EcmaString *CreateFromUtf8(const EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len, boo… 71 … static EcmaString *CreateFromUtf16(const EcmaVM *vm, const uint16_t *utf16Data, uint32_t utf16Len, 76 const JSHandle<EcmaString> &src, uint32_t start, uint32_t length); 93 static size_t ComputeDataSizeUtf16(uint32_t length) in ComputeDataSizeUtf16() 101 static size_t ComputeSizeUtf16(uint32_t utf16Len) in ComputeSizeUtf16() 120 static size_t ComputeSizeUtf8(uint32_t utf8Len) in ComputeSizeUtf8() [all …]
|
| D | tagged_array.h | 28 static constexpr uint32_t MAX_ARRAY_INDEX = std::numeric_limits<uint32_t>::max(); 29 static constexpr uint32_t MAX_END_UNUSED = 4; 33 JSTaggedValue Get(uint32_t idx) const; 35 uint32_t GetIdx(const JSTaggedValue &value) const; 38 void Set(const JSThread *thread, uint32_t idx, const JSHandle<T> &value); 40 JSTaggedValue Get(const JSThread *thread, uint32_t idx) const; 42 void Set(const JSThread *thread, uint32_t idx, const JSTaggedValue &value); 47 … const JSHandle<TaggedArray> &second, uint32_t copyLength); 49 static inline size_t ComputeSize(size_t elemSize, uint32_t length) in ComputeSize() 66 uint32_t capa); [all …]
|
| D | weak_vector.h | 31 static constexpr uint32_t DEFAULT_CAPACITY = 4; 32 … static JSHandle<WeakVector> Create(const JSThread *thread, uint32_t capacity = DEFAULT_CAPACITY); 33 …le<WeakVector> Grow(const JSThread *thread, const JSHandle<WeakVector> &old, uint32_t newCapacity); 34 uint32_t PushBack(const JSThread *thread, JSTaggedValue value); 36 bool Delete(const JSThread *thread, uint32_t index); 38 inline uint32_t GetEnd() const in GetEnd() 53 inline uint32_t GetCapacity() const in GetCapacity() 58 inline JSTaggedValue Get(uint32_t index) const in Get() 64 inline void Set(const JSThread *thread, uint32_t index, JSTaggedValue value) in Set() 71 static const uint32_t MIN_CAPACITY = 2; [all …]
|
| D | tagged_queue.h | 38 uint32_t start = GetStart().GetArrayLength(); in Pop() 42 uint32_t capacity = GetCapacity().GetArrayLength(); in Pop() 51 uint32_t capacity = queue->GetCapacity().GetArrayLength(); in Push() 63 uint32_t start = queue->GetStart().GetArrayLength(); in Push() 64 uint32_t end = queue->GetEnd().GetArrayLength(); in Push() 65 uint32_t size = queue->Size(); in Push() 74 uint32_t newCapacity = capacity + (capacity >> 1U); in Push() 77 uint32_t newEnd = 0; in Push() 78 for (uint32_t i = start; newEnd < size; i = (i + 1) % capacity) { in Push() 98 uint32_t end = queue->GetEnd().GetArrayLength(); in PushFixedQueue() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | bytecode_info_collector.h | 66 static constexpr uint32_t DEFAULT_ROOT = std::numeric_limits<uint32_t>::max(); 68 inline void Inilialize(uint32_t outMethodId, uint32_t numOfLexVars, LexicalEnvStatus status) in Inilialize() 75 inline uint32_t GetOutMethodId() const in GetOutMethodId() 85 inline GateType GetLexVarType(uint32_t slot) const in GetLexVarType() 93 inline void SetLexVarType(uint32_t slot, const GateType &type) in SetLexVarType() 101 uint32_t outerMethodId_ { DEFAULT_ROOT }; 110 uint32_t methodsSize {0}; 115 explicit MethodInfo(uint32_t methodInfoIndex, uint32_t methodPcInfoIndex, uint32_t outMethodIdx, 116 … uint32_t outMethodOffset = MethodInfo::DEFAULT_OUTMETHOD_OFFSET, uint32_t num = 0, 125 static constexpr uint32_t DEFAULT_OUTMETHOD_OFFSET = 0; [all …]
|
| D | type.h | 24 constexpr explicit GateType(uint32_t type = 0) : type_(type) in type_() 35 uint32_t Value() const in Value() 134 uint32_t m = r.GetModuleId(); in IsAnyType() 135 uint32_t l = r.GetLocalId(); in IsAnyType() 136 return (m == 0) && (l == static_cast<uint32_t>(TSPrimitiveType::ANY)); in IsAnyType() 142 uint32_t m = r.GetModuleId(); in IsNumberType() 143 uint32_t l = r.GetLocalId(); in IsNumberType() 144 return (m == 0) && ((l == static_cast<uint32_t>(TSPrimitiveType::NUMBER)) || in IsNumberType() 145 (l == static_cast<uint32_t>(TSPrimitiveType::INT)) || in IsNumberType() 146 (l == static_cast<uint32_t>(TSPrimitiveType::DOUBLE))); in IsNumberType() [all …]
|
| /arkcompiler/runtime_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 *mutf8_string) in GetHash32StringImpl() 48 static uint32_t GetHash32StringWithSeedImpl(const uint8_t *mutf8_string, 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 …]
|
| D | hash.h | 23 template <uint32_t seed_value> 29 static constexpr uint32_t DEFAULT_SEED = 0x12345678U; 41 inline uint32_t GetHash32WithSeed(const uint8_t *key, size_t len, uint32_t seed) in GetHash32WithSeed() 52 inline uint32_t GetHash32(const uint8_t *key, size_t len) in GetHash32() 62 inline uint32_t GetHash32String(const uint8_t *mutf8_string) in GetHash32String() 73 inline uint32_t GetHash32StringWithSeed(const uint8_t *mutf8_string, uint32_t seed) in GetHash32StringWithSeed() 78 constexpr uint32_t FNV_INITIAL_SEED = 0x811c9dc5; 82 uint32_t PseudoFnvHashItem(Item item, uint32_t seed = FNV_INITIAL_SEED) 86 constexpr uint32_t PRIME = 16777619U; 87 return (seed ^ static_cast<uint32_t>(item)) * PRIME; [all …]
|
| /arkcompiler/runtime_core/runtime/include/coretypes/ |
| D | string.h | 39 …static String *CreateFromMUtf8(const uint8_t *mutf8_data, size_t mutf8_length, uint32_t utf16_leng… 43 …static String *CreateFromMUtf8(const uint8_t *mutf8_data, uint32_t utf16_length, bool can_be_compr… 46 …static String *CreateFromMUtf8(const uint8_t *mutf8_data, uint32_t utf16_length, const LanguageCon… 52 …static String *CreateFromUtf16(const uint16_t *utf16_data, uint32_t utf16_length, const LanguageCo… 61 static String *CreateNewStringFromChars(uint32_t offset, uint32_t length, Array *chararray, 64 …static String *CreateNewStringFromBytes(uint32_t offset, uint32_t length, uint32_t high_byte, Arra… 84 static size_t ComputeDataSizeUtf16(uint32_t length) in ComputeDataSizeUtf16() 92 static size_t ComputeSizeUtf16(uint32_t utf16_length) in ComputeSizeUtf16() 106 static size_t ComputeSizeMUtf8(uint32_t mutf8_length) in ComputeSizeMUtf8() 150 uint32_t len = GetLength(); in CopyDataRegionMUtf8() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | parallel_marker.h | 30 static constexpr uint32_t MAIN_THREAD_INDEX = 0; 42 void MarkRoots(uint32_t threadId); 43 void ProcessOldToNew(uint32_t threadId); // for HPPGC only semi mode 44 void ProcessOldToNew(uint32_t threadId, Region *region); // for SemiGC 45 void ProcessSnapshotRSet(uint32_t threadId); // for SemiGC 47 virtual void ProcessMarkStack([[maybe_unused]] uint32_t threadId) in ProcessMarkStack() 54 …virtual inline void MarkObject([[maybe_unused]] uint32_t threadId, [[maybe_unused]] TaggedObject *… in MarkObject() 59 …virtual inline SlotStatus MarkObject([[maybe_unused]] uint32_t threadId, [[maybe_unused]] TaggedOb… in MarkObject() 66 virtual inline void HandleOldToNewRSet(uint32_t threadId, Region *region) = 0; 67 …virtual inline void HandleRoots(uint32_t threadId, [[maybe_unused]] Root type, ObjectSlot slot) = … [all …]
|
| D | gc_bitset.h | 32 using GCBitsetWord = uint32_t; 33 static constexpr uint32_t BYTE_PER_WORD = sizeof(GCBitsetWord); 34 static constexpr uint32_t BYTE_PER_WORD_LOG2 = base::MathHelper::GetIntLog2(BYTE_PER_WORD); 35 static constexpr uint32_t BIT_PER_BYTE = 8; 36 static constexpr uint32_t BIT_PER_BYTE_LOG2 = base::MathHelper::GetIntLog2(BIT_PER_BYTE); 37 static constexpr uint32_t BIT_PER_WORD = BYTE_PER_WORD * BIT_PER_BYTE; 38 static constexpr uint32_t BIT_PER_WORD_LOG2 = base::MathHelper::GetIntLog2(BIT_PER_WORD); 39 static constexpr uint32_t BIT_PER_WORD_MASK = BIT_PER_WORD - 1; 63 void SetGCWords(uint32_t index) // Only used for snapshot to record region index in SetGCWords() 71 uint32_t wordCount = static_cast<uint32_t>(WordCount(bitSize)); in Clear() [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/optimizations/ |
| D | scheduler.h | 57 void AddDep(uint32_t *prio, Inst *from, Inst *to, uint32_t latency, Inst *barrier); 61 …void ProcessInst(Inst *inst, Marker mrk, uint32_t *num_inst, uint32_t *num_between, uint32_t *num_… 63 void ProcessMemory(Inst *inst, uint32_t *prio, Inst *last_barrier); 64 void ProcessSpecial(Inst *inst, uint32_t *prio, Inst *last_barrier); 66 bool FinalizeBB(BasicBlock *bb, uint32_t cycle); 69 uint32_t ScheduleInstsBetweenBarriers(Inst *first, Inst *last); 72 uint32_t SchedWithGlued(Inst *inst, SchedulerPriorityQueue *waiting, uint32_t cycle); 74 uint32_t oprev_ {0}; 75 uint32_t num_barriers_ {0}; 76 uint32_t max_prio_ {0}; [all …]
|
| /arkcompiler/runtime_core/runtime/ |
| D | handle_storage-inl.h | 24 inline uintptr_t HandleStorage<T>::GetNodeAddress(uint32_t index) const in GetNodeAddress() 26 uint32_t id = index >> NODE_BLOCK_SIZE_LOG2; in GetNodeAddress() 27 uint32_t offset = index & NODE_BLOCK_SIZE_MASK; in GetNodeAddress() 36 uint32_t nid = lastIndex_ >> NODE_BLOCK_SIZE_LOG2; in NewHandle() 37 uint32_t offset = lastIndex_ & NODE_BLOCK_SIZE_MASK; in NewHandle() 50 inline void HandleStorage<T>::FreeHandles(uint32_t beginIndex) in FreeHandles() 56 uint32_t nid = lastIndex_ >> NODE_BLOCK_SIZE_LOG2; in FreeHandles() 70 uint32_t nid = lastIndex_ >> NODE_BLOCK_SIZE_LOG2; in ZapFreedHandles() 71 uint32_t offset = lastIndex_ & NODE_BLOCK_SIZE_MASK; in ZapFreedHandles() 77 for (uint32_t j = offset; j < NODE_BLOCK_SIZE; ++j) { in ZapFreedHandles() [all …]
|
| /arkcompiler/runtime_core/compiler/ |
| D | compiler.yaml | 234 type: uint32_t 253 type: uint32_t 260 type: uint32_t 359 type: uint32_t 366 type: uint32_t 373 type: uint32_t 428 type: uint32_t 435 type: uint32_t 448 type: uint32_t 496 type: uint32_t [all …]
|
| /arkcompiler/ets_runtime/ecmascript/js_api/ |
| D | js_api_deque.cpp | 37 uint32_t capacity = elements->GetLength(); in InsertFront() 38 uint32_t first = deque->GetFirst(); in InsertFront() 39 uint32_t last = deque->GetLast(); in InsertFront() 58 uint32_t capacity = elements->GetLength(); in InsertEnd() 59 uint32_t first = deque->GetFirst(); in InsertEnd() 60 uint32_t last = deque->GetLast(); in InsertEnd() 93 uint32_t capacity = elements->GetLength(); in GetTail() 94 uint32_t last = GetLast(); in GetTail() 100 uint32_t oldCapacity, uint32_t first, uint32_t last) in GrowCapacity() 104 uint32_t newCapacity = ComputeCapacity(oldCapacity); in GrowCapacity() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_arraybuffer.h | 25 static constexpr uint32_t BITS_EIGHT = 8; 26 static constexpr uint32_t BITS_TWENTY_FOUR = 24; 27 static constexpr uint32_t BITS_FORTY = 40; 28 static constexpr uint32_t BITS_FIFTY_SIX = 56; 29 static constexpr uint32_t BITS_THIRTY_ONE = 31; 32 uint32_t uValue; 58 …static JSTaggedValue GetValueFromBuffer(JSThread *thread, JSTaggedValue arrBuf, uint32_t byteIndex, 61 … static JSTaggedValue SetValueInBuffer(JSThread *thread, JSTaggedValue arrBuf, uint32_t byteIndex, 65 … uint32_t srcByteOffset, JSHandle<JSTaggedValue> constructor); 74 …static JSTaggedValue FastSetValueInBuffer(JSTaggedValue arrBuf, uint32_t byteIndex, DataViewType t… [all …]
|