/ark/ts2abc/ts2panda/tests/types/ |
D | class.test.ts | 27 let shift = PrimitiveType._LENGTH; variable 37 ["#3#A", shift + 1], 38 ["#4#a", shift + 3], 52 [5, 'constructor'], [2, shift + 2], [2, 0], [2, 0] 59 [2, 2], [2, shift + 1] 73 ["#3#A", shift + 1], 74 ["#4#a", shift + 3], 87 [2, 0], [2, 1], [5, 'constructor'], [2, shift + 2], 95 [2, 2], [2, shift + 1] 109 ["#3#A", shift + 1], [all …]
|
D | array.test.ts | 27 let shift = PrimitiveType._LENGTH; variable 37 ["#3#num", shift + 1], 38 ["#4#bool", shift + 2], 39 ["#5#str", shift + 3], 40 ["#6#sym", shift + 4], 41 ["#7#nu", shift + 5], 42 ["#8#und", shift + 6], 82 ["#3#A", shift + 1], 83 ["#4#arrayA", shift + 3], 115 ["#3#num1", shift + 1], [all …]
|
D | union.test.ts | 27 let shift = PrimitiveType._LENGTH; variable 37 ["#3#num", shift + 1], 38 ["#4#str", shift + 2], 39 ["#5#und", shift + 3], 40 ["#6#full", shift + 4], 75 ["#3#A", shift + 2], 76 ["#4#c", shift + 1], 111 ["#3#u1", shift + 1], 112 ["#4#u2", shift + 1], 137 ["#3#A", shift + 2], [all …]
|
D | function.test.ts | 27 let shift = PrimitiveType._LENGTH; variable 37 ["#0#emptyFunc", shift + 2], 69 ["#0#emptyFunc", shift + 2], 103 ["#0#foo", shift + 2], 104 ["#1#bar", shift + 3], 139 ["#1#a", shift + 4], 140 ["#0#foo", shift + 2], 141 ["#1#A", shift + 3], 157 [2, 2], [2, 1], [2, shift + 4], [2, 0] 165 [2, 2], [2, shift + 3] [all …]
|
D | object.test.ts | 27 let shift = PrimitiveType._LENGTH; variable 37 ["#3#a", shift + 1], 63 ["#3#A", shift + 2], 64 ["#4#a", shift + 1],
|
D | primitives.test.ts | 27 let shift = PrimitiveType._LENGTH; variable 168 ["#3#A", shift + 1], 169 ["#4#a", shift + 2], 191 [2, 2], [2, shift + 1]
|
/ark/runtime_core/runtime/tests/ |
D | math_helpers_test.cpp | 33 size_t shift = 5; in TestBitShl() local 34 T res = bit_shl<T>()(v, shift); in TestBitShl() 35 EXPECT_EQ(res, v << shift) << ss.str(); in TestBitShl() 40 size_t shift = std::numeric_limits<unsigned_type>::digits - 1; in TestBitShl() local 41 T res = bit_shl<T>()(v, shift); in TestBitShl() 42 EXPECT_EQ(res, static_cast<T>(v << shift)) << ss.str(); in TestBitShl() 47 size_t shift = std::numeric_limits<unsigned_type>::digits; in TestBitShl() local 48 T res = bit_shl<T>()(v, shift); in TestBitShl() 54 size_t shift = std::numeric_limits<unsigned_type>::digits + 2U; in TestBitShl() local 55 T res = bit_shl<T>()(v, shift); in TestBitShl() [all …]
|
/ark/runtime_core/libpandabase/utils/ |
D | leb128.h | 45 size_t shift = i * PAYLOAD_WIDTH; in DecodeUnsigned() local 46 result |= static_cast<T>(byte) << shift; in DecodeUnsigned() 49 bool is_full = MinimumBitsToStore(byte) <= (BITWIDTH - shift); in DecodeUnsigned() 72 size_t shift = i * PAYLOAD_WIDTH; in DecodeSigned() local 74 result |= static_cast<unsigned_type>(byte & PAYLOAD_MASK) << shift; in DecodeSigned() 77 shift = BITWIDTH - shift; in DecodeSigned() 82 bool is_full = MinimumBitsToStore(masked) <= shift; in DecodeSigned() 83 if (shift > PAYLOAD_WIDTH) { in DecodeSigned() 84 shift -= PAYLOAD_WIDTH; in DecodeSigned() 86 result = static_cast<T>(result << shift) >> shift; in DecodeSigned()
|
D | bit_memory_region.h | 134 size_t shift = (start_ + offset) % BITS_PER_BYTE; in Read() local 136 return (data_[index] & (1U << shift)) != 0; in Read() 143 size_t shift = (start_ + offset) % BITS_PER_BYTE; in Write() local 145 data_[index] &= ~(1U << shift); in Write() 147 data_[index] |= ((value ? 1U : 0U) << shift); in Write() 168 size_t shift = (start_ + offset) % width; in Read() local 170 T value = data[index] >> shift; in Read() 172 T extra = data[index + (shift + (length - 1)) / width]; in Read() 174 return (value | (extra << ((width - shift) & (width - 1)))) & ~clear; in Read() 213 size_t shift = (start_ + offset) % BITS_PER_BYTE; in Write() local [all …]
|
D | murmur3_hash.h | 74 static uint32_t Rotl(uint32_t word, uint8_t shift) in Rotl() argument 76 return (word << shift) | (word >> (MAX_BITS - shift)); in Rotl()
|
D | cframe_layout.h | 176 size_t shift = Is64BitsArch(arch_) ? 0 : 1; // in arm32 one slot is 2 word and shifted by 1 in GetSpillOffset() local 177 …rn GetOffset<origin, unit>(STACK_START_SLOT + GetFirstSpillSlot() + (spill_slot << shift) + shift); in GetSpillOffset()
|
D | bit_utils.h | 168 uint64_t shift = index << OFFSET_BYTE; in GetByteFrom() local 169 return static_cast<uint8_t>((value >> shift) & MASK); in GetByteFrom()
|
/ark/runtime_core/runtime/interpreter/ |
D | math_helpers.h | 34 size_t shift = static_cast<unsigned_type>(y) & mask; in operator() local 35 return static_cast<T>(static_cast<unsigned_type>(x) << shift); in operator() 45 size_t shift = static_cast<unsigned_type>(y) & mask; in operator() local 46 return static_cast<T>(static_cast<unsigned_type>(x) >> shift); in operator() 56 size_t shift = static_cast<unsigned_type>(y) & mask; in operator() local 57 return x >> shift; // NOLINT(hicpp-signed-bitwise) in operator()
|
D | interpreter-inl.h | 2840 constexpr size_t shift = initobj ? 1U : 0; in CopyCallArguments() local 2845 …frame.GetVReg(num_vregs + shift) = this->GetFrame()->GetVReg(this->GetInst().template GetVReg<form… in CopyCallArguments() 2846 frame.GetVReg(num_vregs + shift + 1U) = in CopyCallArguments() 2848 frame.GetVReg(num_vregs + shift + 2U) = in CopyCallArguments() 2850 frame.GetVReg(num_vregs + shift + 3U) = in CopyCallArguments() 2857 constexpr size_t shift = initobj ? 1U : 0; in CopyCallArguments() local 2862 for (size_t i = 0; i < num_actual_args - shift; i++) { in CopyCallArguments() 2864 frame.GetVReg(num_vregs + shift + i) = this->GetFrame()->GetVReg(vs); in CopyCallArguments() 2871 constexpr size_t shift = initobj ? 1U : 0; in CopyRangeArguments() local 2877 for (size_t i = 0; i < num_actual_args - shift; i++) { in CopyRangeArguments() [all …]
|
/ark/runtime_core/libpandafile/ |
D | proto_data_accessor-inl.h | 45 size_t shift = (elem_num_ % SHORTY_ELEM_PER16) * SHORTY_ELEM_WIDTH; in EnumerateTypes() local 46 uint8_t elem = (v >> shift) & SHORTY_ELEM_MASK; in EnumerateTypes()
|
/ark/runtime_core/assembler/ |
D | assembly-parser.h | 104 … int8_t shift = 0, int token_shift = 0, const std::string &add_mess = "") const 107 … context_.tokens[static_cast<int>(context_.number) + token_shift - 1].bound_left + shift, 113 int8_t shift = 0, const std::string &add_mess = "") 116 … context_.tokens[context_.number - 1].bound_left + static_cast<size_t>(shift),
|
/ark/js_runtime/ecmascript/ic/ |
D | ic_binary_op-inl.h | 282 uint32_t shift = in ShlWithTSType() local 286 …static_cast<int32_t>(static_cast<unsigned_type>(opNumber0) << shift); // NOLINT(hicpp-signed-bitw… in ShlWithTSType() 298 uint32_t shift = in ShrWithTSType() local 300 auto ret = static_cast<int32_t>(opNumber0 >> shift); // NOLINT(hicpp-signed-bitwise) in ShrWithTSType() 312 uint32_t shift = in AshrWithTSType() local 316 …static_cast<uint32_t>(static_cast<unsigned_type>(opNumber0) >> shift); // NOLINT(hicpp-signed-bit… in AshrWithTSType()
|
/ark/js_runtime/ecmascript/compiler/ |
D | circuit.h | 84 [[nodiscard]] Gate *LoadGatePtr(GateRef shift); 85 [[nodiscard]] const Gate *LoadGatePtrConst(GateRef shift) const;
|
D | circuit.cpp | 164 Gate *Circuit::LoadGatePtr(GateRef shift) in LoadGatePtr() argument 167 return reinterpret_cast<Gate *>(GetDataPtr(shift)); in LoadGatePtr() 170 const Gate *Circuit::LoadGatePtrConst(GateRef shift) const in LoadGatePtrConst() 173 return reinterpret_cast<const Gate *>(GetDataPtrConst(shift)); in LoadGatePtrConst()
|
/ark/ts2abc/ts2panda/templates/ |
D | irnodes.ts.erb | 450 ctors.shift() 453 let ctor = ctors.shift() 466 ctors.shift() 468 let ctor = ctors.shift()
|
D | builtinsMap.ts.erb | 99 operands.shift();
|
/ark/ts2abc/test262/ |
D | es5_tests.txt | 6160 language/expressions/left-shift/S11.7.1_A1.js 6161 language/expressions/left-shift/S11.7.1_A2.1_T1.js 6162 language/expressions/left-shift/S11.7.1_A2.1_T2.js 6163 language/expressions/left-shift/S11.7.1_A2.1_T3.js 6164 language/expressions/left-shift/S11.7.1_A2.2_T1.js 6165 language/expressions/left-shift/S11.7.1_A2.3_T1.js 6166 language/expressions/left-shift/S11.7.1_A2.4_T1.js 6167 language/expressions/left-shift/S11.7.1_A2.4_T2.js 6168 language/expressions/left-shift/S11.7.1_A2.4_T3.js 6169 language/expressions/left-shift/S11.7.1_A2.4_T4.js [all …]
|
D | CI_tests.txt | 1858 built-ins/Array/prototype/shift/call-with-boolean.js 1859 built-ins/Array/prototype/shift/S15.4.4.9_A1.1_T1.js 1860 built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js 1861 built-ins/Array/prototype/shift/throws-when-this-value-length-is-writable-false.js 3208 language/expressions/left-shift/S11.7.1_A3_T2.5.js 3209 language/expressions/left-shift/S11.7.1_A2.4_T3.js 3210 language/expressions/left-shift/S11.7.1_A3_T1.1.js 3211 language/expressions/left-shift/S11.7.1_A3_T1.4.js 3212 language/expressions/left-shift/S11.7.1_A2.4_T2.js 3213 language/expressions/left-shift/S9.5_A1_T1.js [all …]
|
/ark/js_runtime/ecmascript/ |
D | runtime_trampolines.cpp | 747 uint32_t shift = static_cast<uint32_t>(rightInt32) & 0x1f; in DEF_RUNTIME_TRAMPOLINES() local 748 auto ret = static_cast<int32_t>(leftInt32 >> shift); in DEF_RUNTIME_TRAMPOLINES() 843 uint32_t shift = in DEF_RUNTIME_TRAMPOLINES() local 847 …static_cast<int32_t>(static_cast<unsigned_type>(leftInt32) << shift); // NOLINT(hicpp-signed-bitw… in DEF_RUNTIME_TRAMPOLINES()
|
/ark/js_runtime/ecmascript/interpreter/ |
D | interpreter-inl.h | 1703 uint32_t shift = in RunInternal() local 1707 …static_cast<int32_t>(static_cast<unsigned_type>(opNumber0) << shift); // NOLINT(hicpp-signed-bitwi… in RunInternal() 1714 uint32_t shift = in RunInternal() local 1718 …static_cast<int32_t>(static_cast<unsigned_type>(opNumber0) << shift); // NOLINT(hicpp-signed-bitwi… in RunInternal() 1740 uint32_t shift = in RunInternal() local 1742 auto ret = static_cast<int32_t>(opNumber0 >> shift); // NOLINT(hicpp-signed-bitwise) in RunInternal() 1749 uint32_t shift = in RunInternal() local 1751 auto ret = static_cast<int32_t>(opNumber0 >> shift); // NOLINT(hicpp-signed-bitwise) in RunInternal() 1772 uint32_t shift = in RunInternal() local 1776 …static_cast<uint32_t>(static_cast<unsigned_type>(opNumber0) >> shift); // NOLINT(hicpp-signed-bitw… in RunInternal() [all …]
|