/arkcompiler/runtime_core/libpandabase/tests/ |
D | regmask_test.cpp | 24 void CompareWithBitset(RegMask mask, BitsetType base) in CompareWithBitset() argument 26 ASSERT_EQ(mask.Count(), base.count()); in CompareWithBitset() 28 ASSERT_EQ(mask.GetMinRegister(), static_cast<uint32_t>(Ctz(base.to_ulong()))); in CompareWithBitset() 29 …ASSERT_EQ(mask.GetMaxRegister(), base.size() - Clz(static_cast<RegMask::ValueType>(base.to_ulong()… in CompareWithBitset() 31 ASSERT_EQ(mask.Size(), base.size()); in CompareWithBitset() 32 ASSERT_EQ(mask.Any(), base.any()); in CompareWithBitset() 33 ASSERT_EQ(mask.None(), base.none()); in CompareWithBitset() 35 ASSERT_EQ(mask.Test(i), base.test(i)); in CompareWithBitset() 36 ASSERT_EQ(mask[i], base[i]); in CompareWithBitset() 42 RegMask mask(value); in TestRegMask() local [all …]
|
D | bit_memory_region_test.cpp | 40 uint32_t mask = 0; in TEST() local 65 uint32_t mask = 0; in TEST() local 67 const uint32_t value = 0xBADDCAFE & mask; in TEST() 80 mask = (mask << 1) | 1; in TEST()
|
D | arena_allocator_test.cpp | 84 size_t mask = GetAlignmentInBytes(align) - 1; in AllocateWithAlignment() local 97 …ASSERT_EQ(reinterpret_cast<size_t>(arr[i]) & mask, 0U) << "value of i: " << i << ", align: " << al… in AllocateWithAlignment() 124 size_t mask = GetAlignmentInBytes(static_cast<Alignment>(align)) - 1; in AllocateWithDiffAlignment() local 127 …ASSERT_EQ(reinterpret_cast<size_t>(arr[i]) & mask, 0U) << "value of i: " << i << ", align: " << al… in AllocateWithDiffAlignment() 451 size_t mask = GetAlignmentInBytes(align) - 1; variable 454 ASSERT_EQ(reinterpret_cast<size_t>(ptr) & mask, 0U) 468 size_t mask = GetAlignmentInBytes(align) - 1; variable 471 ASSERT_EQ(reinterpret_cast<size_t>(ptr) & mask, 0U)
|
D | bit_table_test.cpp | 373 uint64_t mask = (i == 64) ? std::numeric_limits<uint64_t>::max() : ((1ULL << i) - 1); in TEST_F() local 374 uint64_t value = pattern & mask; in TEST_F()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | gc_bitset.h | 81 GCBitsetWord mask = 0; in SetAllBits() local 83 words[i] = ~mask; in SetAllBits() 189 bool ClearWord(uint32_t index, uint32_t mask); 192 bool ClearWord<AccessType::NON_ATOMIC>(uint32_t index, uint32_t mask) 194 if ((Words()[index] & mask) == 0) { 197 Words()[index] &= ~mask; 202 bool ClearWord<AccessType::ATOMIC>(uint32_t index, uint32_t mask) 207 if ((oldValue & mask) == 0) { 210 … } while (!word->compare_exchange_weak(oldValue, oldValue & (~mask), std::memory_order_seq_cst)); 219 GCBitsetWord mask = Mask(IndexInWord(offset)); variable [all …]
|
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/ |
D | location_mask.h | 34 void Init(const T &mask) in Init() argument 36 usage_.resize(mask.size()); in Init() 37 mask_.resize(mask.size()); in Init() 38 for (size_t idx = 0; idx < mask.size(); idx++) { in Init() 39 if (mask.test(idx)) { in Init()
|
D | reg_alloc_base.cpp | 183 auto &mask = sf.GetSrc().IsFpRegister() ? vregs_mask_ : regs_mask_; in SetPreassignedRegisters() local 184 if (GetGraph()->GetArch() != Arch::AARCH32 || !mask.IsSet(sf.SrcValue())) { in SetPreassignedRegisters()
|
D | reg_alloc_graph_coloring.cpp | 364 auto mask = is_fp ? GetVRegMask() : GetRegMask(); in InitWorkingRanges() local 365 if (mask.IsSet(interval->GetReg())) { in InitWorkingRanges()
|
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/graphics/ |
D | XTexture.js | 225 let mask = 0; 226 for (let i = 0; i < useHeight; i++) mask |= 1 << i; 231 if ((this.textImgs[k].mask & (mask << i)) === 0) { 243 this.textImgs[rid] = { mask: 0 }; property 247 this.textImgs[rid]['mask'] |= mask << off; 248 this.textIdxs[textIdx] = { cid: cid, rid: rid, mask: mask << off, time: this.timenow(), }; property 261 this.textImgs[this.textIdxs[idx].rid].mask &= ~this.textIdxs[idx].mask;
|
/arkcompiler/ets_runtime/tools/circuit_viewer/src/ir/ |
D | IrToPicture.js | 58 let mask = NODE_TYPE_MASK.NONE; 60 mask |= NODE_TYPE_MASK.CONTROL; 63 mask |= NODE_TYPE_MASK.CONTROL; 66 mask |= NODE_TYPE_MASK.DEPEND; 69 mask |= NODE_TYPE_MASK.VALUE; 72 mask |= NODE_TYPE_MASK.FRAMESTATE; 75 mask |= NODE_TYPE_MASK.ROOT; 77 if (mask === NODE_TYPE_MASK.NONE) { 78 mask = NODE_TYPE_MASK.OTHER; 80 return mask; [all …]
|
D | IrViewer.js | 150 if (type === 0 && (n1.mask & this.mask_) !== 0 && this.selectPoint_.indexOf(id2) >= 0) {//选中前继 154 if (type === 1 && (n2.mask & this.mask_) !== 0 && this.selectPoint_.indexOf(id1) >= 0) {//选中后继 244 n.hide = (n.mask & this.mask_) === 0; 253 if ((this.mask_ & (1 << i) !== 0) && (n.mask & (1 << i) !== 0)) {//进入点也加进来
|
/arkcompiler/runtime_core/docs/ |
D | code_metainfo.md | 32 | | | VRegs mask | 106 | CALLEE_REG_MASK | Specifies registers mask that is saved in the method | 107 | CALLEE_FP_REG_MASK | Specifies fp registers mask that is saved in the method | 108 | TABLE_MASK | Bit mask of existing bit tables | 156 This is a Bitmap table, where column is a bit mask, that determines which CPU register holds a mana… 160 This is a Bitmap table, where column is a bit mask, that determines which stack slot holds a manage… 166 ### 6. VRegs mask 168 This is a Bitmap table, where column is a bit mask, that determines which virtual register is modif…
|
/arkcompiler/runtime_core/compiler/tests/ |
D | code_info_test.cpp | 149 std::bitset<vregs.size()> mask(0); in TEST_F() local 150 code_info.EnumerateStaticRoots(stack_map, [&mask, &vregs](auto vreg) -> bool { in TEST_F() 153 ASSERT(std::distance(vregs.begin(), it) < helpers::ToSigned(mask.size())); in TEST_F() 154 mask.set(std::distance(vregs.begin(), it)); in TEST_F() 158 ASSERT_EQ(Popcount(mask.to_ullong()), 2); in TEST_F() 159 ASSERT_TRUE(mask.test(1)); in TEST_F() 160 ASSERT_TRUE(mask.test(2)); in TEST_F()
|
/arkcompiler/runtime_core/libpandafile/ |
D | bytecode_instruction-inl.h | 34 S mask = static_cast<S>(ReadByte(byteoffset + i)) << (i * BYTE_WIDTH); in ReadHelper() local 35 v |= mask; in ReadHelper()
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/bytecode_inst/ |
D | instruction.h | 91 S mask = static_cast<S>(ReadByte(byteoffset + i)) << (i * BYTE_WIDTH); in ReadHelper() local 92 v |= mask; in ReadHelper()
|
/arkcompiler/runtime_core/libpandabase/utils/ |
D | bit_memory_region.h | 210 …uint32_t mask = (std::numeric_limits<uint32_t>::max()) >> ((std::numeric_limits<uint32_t>::digits)… in Write() local 214 data_[index] &= ~(mask << shift); in Write() 220 data_[index + i] &= ~(mask >> end_bits); in Write()
|
D | regmask.h | 295 inline std::ostream &operator<<(std::ostream &stream, const RegMask &mask) 297 mask.Dump(stream);
|
D | bit_utils.h | 165 constexpr T SwapBits(T value, T mask, uint32_t offset) in SwapBits() argument 167 return ((value >> offset) & mask) | ((value & mask) << offset); in SwapBits()
|
D | bit_vector.h | 44 BitReference(WordType *data, WordType mask) : data_(data), mask_(mask) in BitReference() argument 46 ASSERT(Popcount(mask) == 1); in BitReference()
|
/arkcompiler/toolchain/websocket/test/ |
D | websocket_test.cpp | 230 uint32_t mask = 1; in ClientSendReq() local 234 sendBuf[1] = msgLen | (mask << 7); // 7: mask need shift left by 7 bits in ClientSendReq() 237 …sendBuf[1] = 126 | (mask << 7); // 126: payloadLen according to the spec; 7: mask shift left by 7 … in ClientSendReq() 242 …sendBuf[1] = 127 | (mask << 7); // 127: payloadLen according to the spec; 7: mask shift left by 7 … in ClientSendReq()
|
/arkcompiler/toolchain/websocket/ |
D | websocket.h | 30 uint8_t mask = 0; member
|
D | websocket.cpp | 156 if (wsFrame.mask == 1) { in DecodeMessage() 239 wsFrame.mask = static_cast<uint8_t>((recvbuf[index] >> 7) & 0x1); // 7: to get the mask in Decode()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | stub_builder-inl.h | 1324 GateRef mask = Int32(1LLU << (ProtoChangeMarker::HAS_CHANGED_BITS - 1)); in GetHasChanged() local 1325 return Int32NotEqual(Int32And(bitfield, mask), Int32(0)); in GetHasChanged() 1474 GateRef mask = Int32LSL( in SetDictionaryOrderFieldInPropAttr() local 1477 GateRef newVal = Int32Or(Int32And(attr, Int32Not(mask)), in SetDictionaryOrderFieldInPropAttr() 1535 GateRef mask = Int32LSL( in SetIsAllTaggedProp() local 1538 GateRef newVal = Int32Or(Int32And(bitfield1, Int32Not(mask)), in SetIsAllTaggedProp() 1578 GateRef mask = Int32LSL( in SetIsProtoTypeToHClass() local 1581 GateRef newVal = Int32Or(Int32And(bitfield, Int32Not(mask)), in SetIsProtoTypeToHClass() 2017 GateRef mask = Int32LSL( in SetOffsetFieldInPropAttr() local 2020 GateRef newVal = Int32Or(Int32And(attr, Int32Not(mask)), in SetOffsetFieldInPropAttr() [all …]
|
/arkcompiler/ets_runtime/ecmascript/deoptimizer/ |
D | deoptimizer.cpp | 580 size_t mask = (1 << shift) - 1; in DecodeDeoptDepth() local 582 return id & mask; in DecodeDeoptDepth() 584 return (-id) & mask; in DecodeDeoptDepth()
|
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/aarch64/ |
D | assembler_aarch64.cpp | 39 uint64_t mask = (1ULL << size) - 1; in Create() local 41 if ((imm & mask) != ((imm >> size) & mask)) { in Create() 50 uint64_t mask = ((uint64_t)-1LL) >> (RegXSize - size); in Create() local 51 imm &= mask; in Create() 58 imm |= ~mask; in Create()
|