/arkcompiler/runtime_core/static_core/runtime/mem/gc/ |
H A D | bitmap.h | 74 void SetBit(size_t bitOffset) in SetBit() argument 76 CheckBitOffset(bitOffset); in SetBit() 77 bitmap_[GetWordIdx(bitOffset)] |= GetBitMask(bitOffset); in SetBit() 84 void ClearBit(size_t bitOffset) in ClearBit() argument 86 CheckBitOffset(bitOffset); in ClearBit() 87 bitmap_[GetWordIdx(bitOffset)] &= ~GetBitMask(bitOffset); in ClearBit() 95 bool TestBit(size_t bitOffset) const in TestBit() 97 CheckBitOffset(bitOffset); in TestBit() 319 GetWordIdx(size_t bitOffset) GetWordIdx() argument [all...] |
H A D | bitmap.cpp | 49 bool Bitmap::AtomicTestAndSetBit(size_t bitOffset) in AtomicTestAndSetBit() argument 51 CheckBitOffset(bitOffset); in AtomicTestAndSetBit() 52 auto wordIdx = GetWordIdx(bitOffset); in AtomicTestAndSetBit() 54 auto mask = GetBitMask(bitOffset); in AtomicTestAndSetBit() 67 bool Bitmap::AtomicTestAndClearBit(size_t bitOffset) in AtomicTestAndClearBit() argument 69 CheckBitOffset(bitOffset); in AtomicTestAndClearBit() 70 auto wordIdx = GetWordIdx(bitOffset); in AtomicTestAndClearBit() 72 auto mask = GetBitMask(bitOffset); in AtomicTestAndClearBit() 85 bool Bitmap::AtomicTestBit(size_t bitOffset) in AtomicTestBit() argument 87 CheckBitOffset(bitOffset); in AtomicTestBit() [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | rem_set.h | 114 size_t bitOffset = idx - elemIdx * ELEM_BITS; in Set() 115 bitmap_[elemIdx] |= 1ULL << bitOffset; in Set() 122 size_t bitOffset = idx - elemIdx * ELEM_BITS; 123 return (bitmap_[elemIdx] & (1ULL << bitOffset)) != 0;
|
/arkcompiler/ets_runtime/ecmascript/ic/tests/ |
H A D | ic_runtime_stub_test.cpp | 342 uint32_t bitOffset = 1U; in HWTEST_F_L0() local 343 OffsetBit::Set<uint32_t>(bitOffset, &handler); in HWTEST_F_L0() 346 uint32_t arrayLength = bitOffset + 1U; in HWTEST_F_L0() 349 handleTaggedArr->Set(thread, bitOffset, handleAccessor.GetTaggedValue()); in HWTEST_F_L0() 400 uint32_t bitOffset = 1U; in HWTEST_F_L0() local 401 OffsetBit::Set<uint32_t>(bitOffset, &handler); in HWTEST_F_L0() 404 uint32_t arrayLength = bitOffset + 1U; in HWTEST_F_L0() 407 handleTaggedArr->Set(thread, bitOffset, handleAccessor.GetTaggedValue()); in HWTEST_F_L0() 439 uint32_t bitOffset = 1U; in HWTEST_F_L0() local 440 OffsetBit::Set<uint32_t>(bitOffset, in HWTEST_F_L0() 474 uint32_t bitOffset = 1U; HWTEST_F_L0() local 501 uint32_t bitOffset = 2U; HWTEST_F_L0() local [all...] |
/arkcompiler/ets_runtime/ecmascript/ |
H A D | tagged_array.cpp | 42 JSTaggedValue TaggedArray::GetBit(uint32_t idx, uint32_t bitOffset) const in GetBit() 46 return JSTaggedValue(int((element >> bitOffset) & 1ULL)); in GetBit() 50 void TaggedArray::SetBit(const JSThread *thread, uint32_t idx, uint32_t bitOffset, const JSTaggedValue &value) in SetBit() argument 55 element &= ~(1ULL << bitOffset); in SetBit() 57 element |= (1ULL << bitOffset); in SetBit()
|
H A D | tagged_array.h | 41 JSTaggedValue GetBit(uint32_t idx, uint32_t bitOffset) const; 46 void SetBit(const JSThread* thread, uint32_t idx, uint32_t bitOffset, const JSTaggedValue &value);
|
/arkcompiler/runtime_core/static_core/verification/util/ |
H A D | addr_map.h | 125 uintptr_t bitOffset = addrRange_.OffsetOf(addr); in EnumerateMarkedBlocks() local 127 if (bitMap_[bitOffset]) { in EnumerateMarkedBlocks() 131 if (bitMap_[bitOffset]) { in EnumerateMarkedBlocks()
|
/arkcompiler/runtime_core/static_core/libpandafile/ |
H A D | bytecode_emitter.cpp | 79 size_t bitOffset = offset % BIT_8; in EmitImpl() local 83 buf[byteOffset] |= static_cast<uint8_t>(static_cast<uint8_t>(val & BITMASK_4) << bitOffset); in EmitImpl()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/ |
H A D | cgfunc.cpp | 139 uint8 bitOffset = node.GetBitsOffset(); in HandleExtractBits() local 143 (bitOffset == 0 || bitOffset == k8BitSize || bitOffset == k16BitSize || bitOffset == k24BitSize) && in HandleExtractBits()
|
H A D | isel.cpp | 828 void MPISel::SelectExtractbits(RegOperand &resOpnd, RegOperand &opnd0, uint8 bitOffset, uint8 bitSize, in SelectExtractbits() argument 833 if (bitOffset == 0 && !isSigned) { in SelectExtractbits() 841 * tmpOpnd = opnd0 << (primBitSize - bitSize - bitOffset) in SelectExtractbits() 847 ImmOperand &imm1Opnd = cgFunc->GetOpndBuilder()->CreateImm(primBitSize, primBitSize - bitSize - bitOffset); in SelectExtractbits()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
H A D | isel.h | 154 void SelectExtractbits(RegOperand &resOpnd, RegOperand &opnd0, uint8 bitOffset, uint8 bitSize, PrimType primType);
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | stub_builder.cpp | 1916 GateRef bitOffset = TruncPtrToInt32(bitOffsetPtr); in SetSValueWithBarrier() local 1919 // bitOffset >> BIT_PER_WORD_LOG2 in SetSValueWithBarrier() 1920 GateRef index = Int32LSR(bitOffset, bitPerWordLog2); in SetSValueWithBarrier() 1925 GateRef mask = GetBitMask(bitOffset); in SetSValueWithBarrier() 1996 GateRef bitOffset = TruncPtrToInt32(bitOffsetPtr); in SetNonSValueWithBarrier() local 1999 // bitOffset >> BIT_PER_WORD_LOG2 in SetNonSValueWithBarrier() 2000 GateRef index = Int32LSR(bitOffset, bitPerWordLog2); in SetNonSValueWithBarrier() 2005 GateRef newmapValue = Int32Or(oldsetValue, GetBitMask(bitOffset)); in SetNonSValueWithBarrier() 2034 GateRef bitOffset = TruncPtrToInt32(bitOffsetPtr); in SetNonSValueWithBarrier() local 2037 // bitOffset >> BIT_PER_WORD_LOG in SetNonSValueWithBarrier() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/ |
H A D | aarch64_cgfunc.cpp | 2519 uint8 bitOffset = node.GetBitsOffset(); 2525 SelectIread(parent, *static_cast<IreadNode *>(node.Opnd(0)), static_cast<int>(bitOffset / k8BitSize), destType); 2531 uint8 bitOffset = node.GetBitsOffset(); 2540 if (bitOffset == 0) { 2565 ImmOperand &immOpnd1 = CreateImmOperand(bitOffset, k8BitSize, false);
|