/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | regmask.h | 90 constexpr bool Test(size_t bit) const in Test() 92 ASSERT(bit < Size()); in Test() 93 return ((value_ >> static_cast<ValueType>(bit)) & 1U) != 0; in Test() 105 constexpr void Set(size_t bit) in Set() argument 107 ASSERT(bit < Size()); in Set() 108 value_ |= (1U << bit); in Set() 111 constexpr void Set(size_t bit, bool value) 113 ASSERT(bit < Size()); 115 Set(bit); 117 Reset(bit); [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | regmask.h | 90 constexpr bool Test(size_t bit) const in Test() 92 ASSERT(bit < Size()); in Test() 93 return ((value_ >> static_cast<ValueType>(bit)) & 1U) != 0; in Test() 105 constexpr void Set(size_t bit) in Set() argument 107 ASSERT(bit < Size()); in Set() 108 value_ |= (1U << bit); in Set() 111 constexpr void Set(size_t bit, bool value) 113 ASSERT(bit < Size()); 115 Set(bit); 117 Reset(bit); [all...] |
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | idle_gc_trigger.h | 73 uint8_t bit = static_cast<uint8_t>(gcType); in IsPossiblePostGCTask() local 74 return (bit & gcTaskPostedState_) != bit; in IsPossiblePostGCTask() 79 uint8_t bit = static_cast<uint8_t>(gcType); in SetPostGCTask() local 80 gcTaskPostedState_ = (gcTaskPostedState_ | bit); in SetPostGCTask() 85 uint8_t bit = static_cast<uint8_t>(gcType); in ClearPostGCTask() local 86 gcTaskPostedState_ = (gcTaskPostedState_ & ~bit); in ClearPostGCTask()
|
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | runslots.h | 196 for (size_t bit = 0; bit < (1U << BITS_IN_BYTE_POWER_OF_TWO); bit++) { in IterateOverOccupiedSlots() 198 objectVisitor(static_cast<ObjectHeader *>(static_cast<void *>(BitMapToSlot(arrayIndex, bit)))); in IterateOverOccupiedSlots() 268 FreeSlot *BitMapToSlot(size_t arrayIndex, size_t bit);
|
H A D | runslots.cpp | 152 FreeSlot *RunSlots<LockTypeT>::BitMapToSlot(size_t arrayIndex, size_t bit) in BitMapToSlot() argument 155 ToVoidPtr(ToUintPtr(this) + (((arrayIndex << BITS_IN_BYTE_POWER_OF_TWO) + bit) in BitMapToSlot()
|
/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | regmask_test.cpp | 61 void TestDistance(RegMask mask, size_t bit, size_t bits_before, size_t bits_after) in TestDistance() argument 63 ASSERT_EQ(mask.GetDistanceFromTail(bit), bits_before); in TestDistance() 64 ASSERT_EQ(mask.GetDistanceFromHead(bit), bits_after); in TestDistance()
|
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | regmask_test.cpp | 61 void TestDistance(RegMask mask, size_t bit, size_t bitsBefore, size_t bitsAfter) in TestDistance() argument 63 ASSERT_EQ(mask.GetDistanceFromTail(bit), bitsBefore); in TestDistance() 64 ASSERT_EQ(mask.GetDistanceFromHead(bit), bitsAfter); in TestDistance()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | tagged_node.cpp | 85 void RBTreeNode::InOrderTraverse(JSThread *thread, const JSHandle<RBTreeNode> &treeNode, int bit,
in InOrderTraverse() argument 90 InOrderTraverse(thread, leftChild, bit, nodeStruct);
in InOrderTraverse() 95 if ((static_cast<uint32_t>(linkedNode->GetHash().GetInt()) & static_cast<uint32_t>(bit)) == 0) {
in InOrderTraverse() 112 InOrderTraverse(thread, rightChild, bit, nodeStruct);
in InOrderTraverse() 117 JSHandle<JSTaggedValue> nodeVa, int index, int bit)
in Divide() 125 InOrderTraverse(thread, self, bit, nodeStruct);
in Divide() 151 table->Set(thread, index + bit, hiRoot);
in Divide() 153 table->Set(thread, index + bit, nodeStruct.higherHead);
in Divide() 116 Divide(JSThread *thread, JSHandle<TaggedHashArray> table, JSHandle<JSTaggedValue> nodeVa, int index, int bit) Divide() argument
|
H A D | tagged_node.h | 139 JSHandle<JSTaggedValue> nodeVa, int index, int bit);
154 int bit, LinkedNodeStruct &nodeStruct);
|
H A D | js_bigint.cpp | 1233 // so high << leadingZeros will not lose the significant bit in DivideAndRemainder() 1325 // Record the new high bit and carry for the next round in SpecialMultiplyAndSub() 1407 uint32_t vHighestNext = v->GetDigit(divisorLen - 2); // 2 : Get the second most significant bit in DivideAndRemainderWithBigintDivisor() 1536 int64_t bit = base::NumberHelper::DoubleToInt64(number.GetNumber()); in AsUintN() local 1537 if (bit == 0) { in AsUintN() 1543 JSHandle<BigInt> exponent = Uint64ToBigInt(thread, bit); in AsUintN() 1545 if (bit >= kMaxLengthBits && !bigint->GetSign()) { in AsUintN() 1557 int64_t bit = base::NumberHelper::DoubleToInt64(number.GetNumber()); in AsintN() local 1558 if (bit == 0) { in AsintN() 1564 JSHandle<BigInt> exp = Int64ToBigInt(thread, bit); in AsintN() [all...] |
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_bigint_test.cpp | 105 int bit = 64; // 64-bit
in HWTEST_F_L0() local 106 std::vector<JSTaggedValue> vals{JSTaggedValue(static_cast<int>(bit)), numericValue.GetTaggedValue()};
in HWTEST_F_L0() 121 int bit = 64; // 64-bit
in HWTEST_F_L0() local 122 std::vector<JSTaggedValue> vals{JSTaggedValue(static_cast<int>(bit)), numericValue.GetTaggedValue()};
in HWTEST_F_L0() 137 int bit = 64; // 64-bit
in HWTEST_F_L0() local 138 std::vector<JSTaggedValue> vals{JSTaggedValue(static_cast<int>(bit)), numericValue.GetTaggedValue()};
in HWTEST_F_L0() 153 int bit in HWTEST_F_L0() local [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | lcr_circuit_builder.cpp | 118 auto bit = LoadStoreAccessor::ToValue(mAttr); in Store() local 119 GateRef result = GetCircuit()->NewGate(circuit_->Store(bit), in Store() 128 auto bit = LoadStoreAccessor::ToValue(mAttr); in StoreWithoutBarrier() local 129 GateRef result = GetCircuit()->NewGate(circuit_->StoreWithoutBarrier(bit), in StoreWithoutBarrier()
|
H A D | async_function_lowering.cpp | 55 auto bit = LoadStoreAccessor::ToValue(MemoryAttribute::Default());
in ProcessJumpTable() local 56 GateRef contextGate = circuit_->NewGate(circuit_->Load(bit), MachineType::I64, {dependStart, val},
in ProcessJumpTable() 60 GateRef restoreOffsetGate = circuit_->NewGate(circuit_->Load(bit), MachineType::I32, {contextGate, val},
in ProcessJumpTable()
|
H A D | slowpath_lowering.cpp | 1261 auto bit = LoadStoreAccessor::ToValue(MemoryAttribute::Default()); in LowerExceptionHandler() local 1262 GateRef loadException = circuit_->NewGate(circuit_->Load(bit), VariableType::JS_ANY().GetMachineType(), in LowerExceptionHandler() 1266 GateRef clearException = circuit_->NewGate(circuit_->Store(bit), MachineType::NOVALUE, in LowerExceptionHandler() 1290 auto bit = LoadStoreAccessor::ToValue(MemoryAttribute::Default()); in LowerLdGlobal() local 1291 GateRef newGate = circuit_->NewGate(circuit_->Load(bit), VariableType::JS_ANY().GetMachineType(), in LowerLdGlobal()
|
H A D | stub_builder.cpp | 1697 auto bit = LoadStoreAccessor::ToValue(mAttr); in Store() local 1699 env_->GetCircuit()->Store(bit), MachineType::NOVALUE, in Store() 1927 // Load the bit using relaxed memory order. in SetSValueWithBarrier() 1928 // If the bit is set, do nothing (local->shared barrier is done). in SetSValueWithBarrier()
|
/arkcompiler/ets_runtime/ecmascript/js_api/ |
H A D | js_api_bitvector.h | 117 int32_t bit = (*elements)[elementId].test(bitId); in GetBit() local 118 return JSTaggedValue(bit); in GetBit()
|
H A D | js_api_bitvector.cpp | 56 JSTaggedValue bit = GetBit(elements, lastIndex); in Pop() local 63 return bit; in Pop()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/ |
H A D | mpl_int_val.h | 23 /// @brief this class provides different operations on signed and unsigned integers with arbitrary bit-width 26 /// @brief create zero value with zero bit-width 31 DEBUG_ASSERT(width <= valBitSize && width != 0, "bit-width is too wide"); in IntVal() 51 // Allow 'this' to be assigned with new bit-width and sign iff in operator =() 52 // its original bit-width is zero (i.e. the value was created by the default ctor) in operator =() 56 DEBUG_ASSERT(width == other.width && sign == other.sign, "different bit-width or sign"); in operator =() 79 /// @return bit-width of the value 111 /// @return true if the (most significant bit) MSB is set 135 // Comparison operators that manipulate on values with the same sign and bit-width 138 DEBUG_ASSERT(width == rhs.width && sign == rhs.sign, "bit in operator ==() [all...] |
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | js_api_bitvector_test.cpp | 69 int32_t bit = (*elements)[elementId].test(bitId); in GetBit() local 70 return JSTaggedValue(bit); in GetBit()
|
/arkcompiler/runtime_core/assembler/ |
H A D | assembly-parser.cpp | 1621 GetError("Too large immediate (length is more than 64 bit).", Error::ErrorType::ERR_BAD_INTEGER_WIDTH); in ParseInteger() 1651 GetError("Too large immediate (length is more than 64 bit).", Error::ErrorType::ERR_BAD_FLOAT_WIDTH); in ParseFloat()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/ |
H A D | reg_alloc_lsra.cpp | 374 uint64 bit = regNO % (sizeof(uint64) * k8ByteSize); in UpdateRegUsedInfo() local 375 if ((regUsedInBB[index] & (static_cast<uint64>(1) << bit)) != 0) { in UpdateRegUsedInfo() 378 regUsedInBB[index] |= (static_cast<uint64>(1) << bit); in UpdateRegUsedInfo() 1233 * For simplification, entire 64bit register is spilled/filled. in SpillOperand() 1236 * This represents a 64bit slot (8bytes). The base_slot_offset in SpillOperand()
|
/arkcompiler/runtime_core/static_core/assembler/ |
H A D | assembly-parser.cpp | 1688 GetError("Too large immediate (length is more than 64 bit).", Error::ErrorType::ERR_BAD_INTEGER_WIDTH); in ParseInteger() 1718 GetError("Too large immediate (length is more than 64 bit).", Error::ErrorType::ERR_BAD_FLOAT_WIDTH); in ParseFloat()
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
H A D | cocos_worker_test.js | 26896 mm.addLayer(i.name, i.bit); [all...] |