| /arkcompiler/runtime_core/verification/util/tests/ |
| D | bit_vector_property_test.cpp | 37 BitVector Bits; member 41 if (Bits.SetBitsCount() != Indices.size()) { in IsEqual() 45 if (!Bits[elem]) { in IsEqual() 65 os << ".Bits = {"; in showValue() 66 for (size_t idx = 0; idx < bitset.Bits.size(); ++idx) { in showValue() 67 os << (static_cast<int>(bitset.Bits[idx]) ? '1' : '0'); in showValue() 91 BitVector bits {size}; in arbitrary() local 93 bits[idx] = 1; in arbitrary() 95 return BSet {set, bits}; in arbitrary() 133 ClassifySize("Bits.size() in", bitset.Bits.size(), stat_intervals); in stat() [all …]
|
| D | int_tag_test.cpp | 29 EXPECT_EQ(IntTag1::Bits, 3); in TEST_F() 36 EXPECT_EQ(IntTag2::Bits, 1); in TEST_F()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | interpreter_stub-inl.h | 115 /* 2 : skip 8 bits of opcode and 8 bits of low bits */ in ReadInstSigned16_0() 118 GateRef currentInst2 = Int32LSL(currentInst1, Int32(8)); // 8 : set as high 8 bits in ReadInstSigned16_0() 124 /* 4 : skip 8 bits of opcode and 24 bits of low bits */ in ReadInstSigned32_0() 127 GateRef currentInst1 = Int32LSL(currentInst, Int32(8)); // 8 : set as high 8 bits in ReadInstSigned32_0() 129 GateRef currentInst3 = Int32LSL(currentInst2, Int32(8)); // 8 : set as high 8 bits in ReadInstSigned32_0() 131 GateRef currentInst5 = Int32LSL(currentInst4, Int32(8)); // 8 : set as high 8 bits in ReadInstSigned32_0() 137 /* 2 : skip 8 bits of opcode and 8 bits of low bits */ in ReadInst16_0() 139 GateRef currentInst2 = Int16LSL(currentInst1, Int16(8)); // 8 : set as high 8 bits in ReadInst16_0() 145 /* 3 : skip 8 bits of opcode, 8 bits of prefix and 8 bits of low bits */ in ReadInst16_1() 147 GateRef currentInst2 = Int16LSL(currentInst1, Int16(8)); // 8 : set as high 8 bits in ReadInst16_1() [all …]
|
| /arkcompiler/runtime_core/libpandabase/utils/ |
| D | hash_base.h | 30 * \brief Create 32 bits Hash from \param key via \param seed. 34 * @return 32 bits hash 41 * \brief Create 32 bits Hash from \param key. 44 * @return 32 bits hash 51 * \brief Create 32 bits Hash from MUTF8 \param string. 53 * @return 32 bits hash 60 * \brief Create 32 bits Hash from MUTF8 \param string. 63 * @return 32 bits hash
|
| D | hash.h | 35 * \brief Create 32 bits Hash from \param key via \param seed. 39 * @return 32 bits hash 47 * \brief Create 32 bits Hash from \param key. 50 * @return 32 bits hash 58 * \brief Create 32 bits Hash from MUTF8 \param string. 60 * @return 32 bits hash 68 * \brief Create 32 bits Hash from MUTF8 \param string. 71 * @return 32 bits hash 155 …// note that the numbers are for 32 bits specifically, see https://github.com/HowardHinnant/hash_a… in merge_hashes()
|
| D | bit_vector.h | 246 * - set/clear bits with automatic resizing (SetBit/ClearBit) 274 BitVectorBase(void *data, size_t bits) in BitVectorBase() argument 275 : size_(bits), in BitVectorBase() 276 …storage_(reinterpret_cast<WordType *>(data), GetWordIndex(bits) + (((bits % WORD_BITS) != 0) ? 1 :… in BitVectorBase() 357 void resize(size_t bits) in resize() argument 361 if (bits > initial_size) { in resize() 362 EnsureSpace(bits); in resize() 363 std::fill(begin() + initial_size, begin() + bits, false); in resize() 365 size_ = bits; in resize() 547 void EnsureSpace(size_t bits) in EnsureSpace() argument [all …]
|
| D | murmur3_hash.h | 31 // Firstly, we proceed each 32 bits block from key; 32 // Secondly, we proceed last 8 bits block which were not covered in previous step. 94 // Iterate for each 32bits in MurmurHash3() 115 // blocks is a pointer to the end of 32bits section in MurmurHash3() 145 // Iterate for each 32bits in MurmurHash3String()
|
| /arkcompiler/runtime_core/runtime/ |
| D | object_header_config.h | 44 // Config for High-end devices with hash stored inside object header and 32 bits pointer 49 static constexpr Size BITS = 32U; variable 54 // Config for High-end devices with hash stored inside object header and 64 bits pointer 59 static constexpr Size BITS = 64UL; variable 64 // Config for Low-end devices with hash stored inside object header and 32 bits pointer 69 static constexpr Size BITS = 16U; variable
|
| D | mark_word.h | 17 // 64 bits object header for high-end devices: (64 bits pointer) 19 // | Object Header (128 bits) | … 21 // | Mark Word (64 bits) | Class Word (64 bits) | … 34 // 64 bits object header for high-end devices: (32 bits pointer) 36 // | Object Header (64 bits) | … 38 // | Mark Word (32 bits) | Class Word (32 bits) | … 53 // | Object Header (64 bits) | … 55 // | Mark Word (32 bits) | Class Word (32 bits) | … 66 // 32 bits object header for low-end devices: 68 // | Object Header (32 bits) | … [all …]
|
| /arkcompiler/toolchain/tooling/base/ |
| D | pt_base64.cpp | 61 // 2: shift 2bits, 4: shift 4bits in Decode() 63 // 2: shift 2bits, 4: shift 4bits in Decode() 65 // 2: shift 2bits, 3: the last encode str, 6: shift 6bits in Decode() 103 index = src[j] >> 2; // 2: shift 2bits in Encode() 105 index = ((src[j] & 0x03) << 4) | (src[j + 1] >> 4); // 4: shift 4bits in Encode() 107 index = ((src[j + 1] & 0x0F) << 2) | (src[j + 2] >> 6); // 2: shift 2bits, 6: shift 6bits in Encode()
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_bigint.cpp | 51 JSHandle<JSTaggedValue> bits = GetCallArg(argv, 0); in AsUintN() local 53 // 1. Let bits be ? ToIndex(bits). in AsUintN() 54 JSTaggedNumber index = JSTaggedValue::ToIndex(thread, bits); in AsUintN() 59 // 3. Return a BigInt representing bigint modulo 2bits. in AsUintN() 69 JSHandle<JSTaggedValue> bits = GetCallArg(argv, 0); in AsIntN() local 71 // 1. Let bits be ? ToIndex(bits). in AsIntN() 72 JSTaggedNumber index = JSTaggedValue::ToIndex(thread, bits); in AsIntN() 77 // 3. Let mod be ℝ(bigint) modulo 2bits. in AsIntN() 78 // 4. If mod ≥ 2bits - 1, return ℤ(mod - 2bits); otherwise, return ℤ(mod). in AsIntN()
|
| /arkcompiler/runtime_core/runtime/include/coretypes/ |
| D | tagged_value.h | 31 // Every double with all of its exponent bits set and its highest mantissa bit set is a quiet NaN. 32 // That leaves 51 bits unaccounted for. We’ll avoid one of those so that we don’t step on Intel’s 33 // “QNaN Floating-Point Indefinite” value, leaving us 50 bits. Those remaining bits can be anythin… 34 // so we use a special quietNaN as TaggedInt tag(highest 16bits as 0xFFFF), and need to encode dou… 39 // WeakRef: [0x0000] [47 bits direct pointer] | 1 bit 1 46 // False: [56 bits 0] | 0x06 // 0110 47 // True: [56 bits 0] | 0x07 // 0111 48 // Undefined: [56 bits 0] | 0x0a // 1010 49 // Null: [56 bits 0] | 0x02 // 0010 50 // Hole: [56 bits 0] | 0x00 // 0000 [all …]
|
| /arkcompiler/runtime_core/verification/util/ |
| D | bit_vector.h | 71 class Bits : public ConstBits<GetFunc> { 73 … Bits(GetFunc &&get, SetFunc &&set) : ConstBits<GetFunc>(std::move(get)), SetF_ {std::move(set)} {} in Bits() function 74 ~Bits() = default; 75 Bits() = delete; 76 Bits(const Bits &) = delete; 77 Bits(Bits &&) = default; 78 Bits &operator=(const Bits &rhs) 83 Bits &operator=(Bits &&) = default; 85 Bits &operator=(Word val) 195 auto bits(size_t from, size_t to) const in bits() function [all …]
|
| /arkcompiler/runtime_core/docs/ |
| D | code_metainfo.md | 42 Columns width is in a bits. 53 Column width can't be greater than 32 bits, because `BitTableBuilder` class, that aims to build bit… 73 Row size is 25 bits, that is sum of columns width: 2 + 0 + 15 + 8. 74 …e in a table, e.g. for 2th column it is zero row, that has value 31547. This value fits in 15 bits. 76 So, the size of this table's data is 25 * 5 = 125 bits = 15.625 bytes. 80 Bitmap table is a Bit table with one column, that doesn't have 32-bits limitation for the width. 86 The first four bits determine the variable length of the encoded number: 87 - Values 0..11 represent the result as-is, with no further following bits. 88 - Values 12..15 mean the result is in the next 8/16/24/32-bits respectively.
|
| D | memory-management.md | 70 128 bits object header for high-end devices(64 bits pointers): 73 | Object Header (128 bits) | Sta… 75 | Mark Word (64 bits) | Class Word (64 bits) | … 88 64 bits object header for high-end devices(32 bits pointers): 91 | Object Header (64 bits) | Sta… 93 | Mark Word (32 bits) | Class Word (32 bits) | … 110 | Object Header (64 bits) | Sta… 112 | Mark Word (32 bits) | Class Word (32 bits) | … 127 32 bits object header for low-end devices: 130 | Object Header (32 bits) | Sta… [all …]
|
| D | rationale-for-bytecode.md | 148 It easy to see that to address virtual registers 4 and 5 we need just 3 bits which allows to encode 152 |<- 8 bits ->|<- 4 bits ->|<- 4 bits ->| 158 into 4 bits, we have to use a wider encoding: 161 |<- 8 bits ->|<- 8 bits ->|<- 8 bits ->|
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| D | base64.cpp | 30 // former 00 + first 6 bits of the first char in Base64Encode() 32 // 00 + the last 2 bits of the first char + the first 4 bits of the second char in Base64Encode() 34 // 00 + last 4 bits of the second char + the first 2 bits of the third char in Base64Encode() 36 // 00 + the last 6 bits of the third char in Base64Encode()
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | region.h | 39 // We should avoid using the lower 3 bits (bits 0 to 2). 40 // If ZAP_MEM is enabled, the value of the lower 3 bits conflicts with the INVALID_VALUE. 42 // Bits 3 to 7 are reserved to denote the space where the region is located. 56 // We should avoid using the lower 3 bits (bits 0 to 2). 57 // If ZAP_MEM is enabled, the value of the lower 3 bits conflicts with the INVALID_VALUE. 65 // Bits 8 to 10 (the lower 3 bits for the next byte) are also excluded for the sake of 580 …// snapshotdata_ is used to encode the region for snapshot. Its upper 32 bits are used to store th… 581 // the huge object, and the lower 32 bits are used to store the region index
|
| /arkcompiler/ets_runtime/ecmascript/deoptimizer/ |
| D | relocator.h | 57 Elf64_Word id = (cur->r_info >> 32); // 32: get high 32 bits in GetSymbol() 63 return (cur->r_info & 0xffffffffL); // 0xffffffff :get lower 32 bits in GetType() 75 return cur->st_info & 0x0f; // f: get lowest 4 bits in GetType()
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | hash_test.cpp | 81 // Set up 64 bits value and use only 40 bits from it in OneObject32bitsHashTest() 139 // Do it for 8 bits key, 32 bits and 40 bits key.
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | property_attributes.h | 64 …using PropertyMetaDataField = BitField<int, 0, 4>; // 4: property metaData field occupies 4 bits 65 using AttributesField = BitField<int, 0, 4>; // 4: attributes field occupies 4 bits 66 …using DefaultAttributesField = BitField<int, 0, 3>; // 3: default attributes field occupies 3 bits 67 using WritableField = BitField<bool, 0, 1>; // 1: writable field occupies 1 bits 74 …ing RepresentationField = IsInlinedPropsField::NextField<Representation, 3>; // 3: 3 bits, 6-8 82 …BoxTypeField = PropertyMetaDataField::NextField<PropertyBoxType, 2>; // 2: 2 bits, 5-6
|
| D | js_tagged_value.h | 52 // Every double with all of its exponent bits set and its highest mantissa bit set is a quiet NaN. 53 // That leaves 51 bits unaccounted for. We’ll avoid one of those so that we don’t step on Intel’s 54 // “QNaN Floating-Point Indefinite” value, leaving us 50 bits. Those remaining bits can be anythin… 55 // so we use a special quietNaN as TaggedInt tag(highest 16bits as 0xFFFF), and need to encode dou… 60 // WeakRef: [0x0000] [47 bits direct pointer] | 1 67 // False: [56 bits 0] | 0x06 // 0110 68 // True: [56 bits 0] | 0x07 // 0111 69 // Undefined: [56 bits 0] | 0x02 // 0010 70 // Null: [56 bits 0] | 0x03 // 0011 71 // Hole: [56 bits 0] | 0x05 // 0101 [all …]
|
| D | js_hclass.h | 370 uint32_t bits = GetBitField(); in GetObjectType() local 371 return ObjectTypeBits::Decode(bits); in GetObjectType() 376 uint32_t bits = GetBitField(); in SetObjectType() local 377 uint32_t newVal = ObjectTypeBits::Update(bits, type); in SetObjectType() 1069 uint32_t bits = GetBitField(); in IsCallable() local 1070 return CallableBit::Decode(bits); in IsCallable() 1075 uint32_t bits = GetBitField(); in IsConstructor() local 1076 return ConstructorBit::Decode(bits); in IsConstructor() 1081 uint32_t bits = GetBitField(); in IsExtensible() local 1082 return ExtensibleBit::Decode(bits); in IsExtensible() [all …]
|
| /arkcompiler/runtime_core/runtime/mem/gc/ |
| D | bitmap.h | 114 * \brief Iterates over all bits of bitmap sequentially. 125 * \brief Iterates over marked bits in range [begin, end) sequentially. 142 // first word, clear bits before begin in IterateOverSetBitsInRange() 161 // last partial word, clear bits after right boundary in IterateOverSetBitsInRange() 165 // loop over bits of bitmap_word in IterateOverSetBitsInRange() 193 * \brief Iterates over marked bits of bitmap sequentially. 206 * \brief Iterates over all bits in range [begin, end) sequentially. 222 * \brief Clear all bits in range [begin, end). 229 * \brief Set all bits in range [begin, end). [begin, end) must be within a BitmapWord. 241 * \brief Clear all bits in range [begin, end). [begin, end) must be within a BitmapWord. [all …]
|
| /arkcompiler/runtime_core/runtime/arch/amd64/ |
| D | shorty.S | 33 orl $0xFFFFF000, \shorty_reg // fill the high 20 bits by 0xFFFFF 43 orl $0xFFFFF000, \shorty_reg // fill the high 20 bits by 0xFFFFF
|