| /arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/ |
| H A D | regexp_executor.h | 291 int32_t idx = 0; 297 idx = (idxMin + idxMax) / RANGE32_OFFSET; 299 static_cast<uint32_t>(idx) * RANGE32_MAX_OFFSET); 301 static_cast<uint32_t>(idx) * RANGE32_MAX_OFFSET + RANGE32_MAX_HALF_OFFSET); 303 idxMax = idx - 1; 305 idxMin = idx + 1; 335 int32_t idx = 0; 341 idx = (idxMin + idxMax) / RANGE32_OFFSET; 343 static_cast<uint32_t>(idx) * RANGE32_MAX_HALF_OFFSET); 345 static_cast<uint32_t>(idx) * RANGE32_MAX_HALF_OFFSE [all...] |
| /arkcompiler/runtime_core/static_core/runtime/include/ |
| H A D | exceptions.h | 38 void ThrowArrayIndexOutOfBoundsException(coretypes::ArraySsizeT idx, coretypes::ArraySizeT length); 39 void ThrowArrayIndexOutOfBoundsException(coretypes::ArraySsizeT idx, coretypes::ArraySizeT length, 42 void ThrowIndexOutOfBoundsException(coretypes::ArraySsizeT idx, coretypes::ArraySsizeT length); 46 void ThrowStringIndexOutOfBoundsException(coretypes::ArraySsizeT idx, coretypes::ArraySizeT length);
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/inspector/evaluation/ |
| H A D | base64.h | 75 for (size_t idx = 0, end = baseIdx - 1; idx < end; ++idx) { in Decode() 77 *output++ = decodedRemainder[idx]; in Decode()
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| H A D | commonUtil.h | 80 for (size_t idx = 1; idx < importSize + 1; ++idx) { in VisitStaticImports() 81 cb(std::get<std::string>(array.literals_[idx].value_)); in VisitStaticImports()
|
| /base/msdp/device_status/intention/ipc/socket/src/ |
| H A D | socket_session.cpp | 70 int32_t idx = 0;
in SendMsg() local 78 ssize_t count = send(fd_, &buf[idx], remSize, MSG_DONTWAIT | MSG_NOSIGNAL);
in SendMsg() 88 idx += count;
in SendMsg() 96 "pid:%{public}d", retryCount, SEND_RETRY_LIMIT, idx, bufSize, fd_, pid_);
in SendMsg()
|
| /base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/ |
| H A D | stream_session.rs | 125 let mut idx: usize = 0; in session_send_msg() variables 133 libc::send(self.fd as c_int, buf.add(idx) as *const libc::c_void, rem_size, in session_send_msg() 149 idx += count as usize; in session_send_msg() 157 retry_count, SEND_RETRY_LIMIT, idx, buf_size, self.fd); in session_send_msg()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
| H A D | module_section_des.cpp | 19 std::string ModuleSectionDes::GetSecName(const ElfSecName idx) in GetSecName() argument 21 switch (idx) { in GetSecName()
|
| H A D | elf_builder.cpp | 62 for (size_t idx = 0; idx < asmStubSymTabNum; ++idx) { in AddAsmStubStrTab() 63 const std::string &str = asmStubELFInfo[idx].first; in AddAsmStubStrTab() 71 for (size_t idx = 0; idx < asmStubSymTabNum; ++idx) { in AddAsmStubStrTab() 72 const std::string &str = asmStubELFInfo[idx].first; in AddAsmStubStrTab() 171 uint32_t idx = 1; in GetShIndex() local 174 return idx; in GetShIndex() [all...] |
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
| H A D | ts2ets_copy.cpp | 147 for (size_t idx = 0; idx < len; ++idx) { 149 TYPEVIS_NAPI_CHECK(napi_get_element(env_, jsValue_, idx, &jsElem)); 150 JsToEtsConvertor subVis(env_, jsElem, ToObjRoot(etsArr.GetAddress()), ELEMS_OFFS + elemSz * idx); 283 for (size_t idx = 0; idx < len; ++idx) { 284 EtsToJsConvertor subVis(env_, ToObjRoot(etsArr.GetAddress()), ELEMS_OFFS + elemSz * idx); 287 TYPEVIS_NAPI_CHECK(napi_set_element(env_, jsValue_, idx, subVi [all...] |
| /arkcompiler/ets_frontend/ets2panda/checker/ets/ |
| H A D | typeRelationContext.cpp | 161 for (size_t idx = 0; idx < typeParams.size(); idx++) { in InstantiateType() 162 if (!typeParams[idx]->IsETSTypeParameter()) { in InstantiateType() 165 ETSChecker::EmplaceSubstituted(substitution, typeParams[idx]->AsETSTypeParameter(), typeArgTypes[idx]); in InstantiateType()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/be/ |
| H A D | switch_lowerer.h | 59 maple::CompareNode *BuildCmpNode(maple::Opcode opCode, maple::uint32 idx); 60 maple::GotoNode *BuildGotoNode(maple::int32 idx); 61 maple::CondGotoNode *BuildCondGotoNode(maple::int32 idx, maple::Opcode opCode, maple::BaseNode &cond);
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| H A D | range_guard.h | 45 size_t idx = acc_.GetId(dependIn); in GetDependChain() local 46 ASSERT(idx <= circuit_->GetMaxGateId()); in GetDependChain() 47 return dependChains_[idx]; in GetDependChain()
|
| H A D | binary_section.h | 60 explicit ElfSection(ElfSecName idx) in ElfSection() argument 62 value_ = idx; in ElfSection() 65 explicit ElfSection(size_t idx) in ElfSection() argument 67 value_ = static_cast<ElfSecName>(idx); in ElfSection() 193 auto idx = static_cast<size_t>(value_); in isValidAOTSec() local 194 return static_cast<uint8_t>(AOTSecFeatureTable_[idx]) & ElfSecFeature::VALID_MASK; in isValidAOTSec() 199 auto idx = static_cast<size_t>(value_); in isSequentialAOTSec() local 200 return static_cast<uint8_t>(AOTSecFeatureTable_[idx]) & ElfSecFeature::SEQUENTIAL_MASK; in isSequentialAOTSec()
|
| /base/hiviewdfx/hiview/test/unittest/unified_collection/utility/ |
| H A D | hilog_collector_test.cpp | 61 for (uint32_t idx = 0; idx < HILOG_LINE_NUM; idx++) { in HWTEST_F()
|
| /arkcompiler/ets_runtime/ecmascript/module/ |
| H A D | js_module_deregister.cpp | 102 for (size_t idx = 0; idx < requestedModulesLen; idx++) { in IncreaseRegisterCounts() 103 required.Update(requestedModules->Get(idx)); in IncreaseRegisterCounts() 151 for (size_t idx = 0; idx < requestedModulesLen; idx++) { in DecreaseRegisterCounts() 152 required.Update(requestedModules->Get(idx)); in DecreaseRegisterCounts()
|
| /arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/graphics/ |
| H A D | XTexture.js | 259 for (let idx in this.textIdxs) { 260 if (nt - this.textIdxs[idx].time > 3) { 261 this.textImgs[this.textIdxs[idx].rid].mask &= ~this.textIdxs[idx].mask; 262 delete this.allCuts[this.textIdxs[idx].cid]; 263 rm.push(idx); 266 for (let idx in rm) { 267 delete this.textIdxs[rm[idx]];
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/bytecode_inst/ |
| H A D | old_instruction.h | 106 template <Format format, size_t idx = 0> 112 return Read<OFFSETS[idx], WIDTHS[idx], true>(); in GetImm() 117 return Read<OFFSETS[idx], WIDTHS[idx], true>(); in GetImm() 122 return Read<OFFSETS[idx], WIDTHS[idx], true>(); in GetImm() 127 return Read<OFFSETS[idx], WIDTHS[idx], true>(); in GetImm() 132 return Read<OFFSETS[idx], WIDTH in GetImm() 1232 HasId(Format format, size_t idx) HasId() argument [all...] |
| /arkcompiler/runtime_core/libpandafile/ |
| H A D | index_accessor.h | 41 uint32_t GetOffsetById(uint16_t idx) const in GetOffsetById() 43 return indexes_[idx].GetOffset(); in GetOffsetById()
|
| /arkcompiler/runtime_core/static_core/disassembler/ |
| H A D | disassembler.cpp | 1093 const size_t idx) in ArrayValueToString() 1098 auto res = value.Get<int8_t>(idx); in ArrayValueToString() 1101 auto res = value.Get<uint8_t>(idx); in ArrayValueToString() 1104 ss << (value.Get<int16_t>(idx)); in ArrayValueToString() 1106 ss << (value.Get<uint16_t>(idx)); in ArrayValueToString() 1108 ss << (value.Get<int32_t>(idx)); in ArrayValueToString() 1110 ss << (value.Get<uint32_t>(idx)); in ArrayValueToString() 1112 ss << (value.Get<int64_t>(idx)); in ArrayValueToString() 1114 ss << (value.Get<uint64_t>(idx)); in ArrayValueToString() 1116 ss << value.Get<float>(idx); in ArrayValueToString() 1092 ArrayValueToString(const panda_file::ArrayValue &value, const std::string &type, const size_t idx) ArrayValueToString() argument 1509 size_t idx = 0; Serialize() local 1688 auto idx = bcIns.GetId().AsIndex(); IDToString() local 1695 auto idx = bcIns.GetId().AsIndex(); IDToString() local 1710 auto idx = bcIns.GetId().AsIndex(); IDToString() local 1746 size_t idx = GetBytecodeInstructionNumber(BytecodeInstruction(insArr), bcInsDest); TranslateImmToLabel() local 1817 auto idx = bcIns.GetId().AsIndex(); GetInstructions() local [all...] |
| /arkcompiler/runtime_core/assembler/ |
| H A D | assembly-ins.h | 190 for (auto idx : use_idxs) { in Uses() 191 if (idx == INVALID_REG_IDX) { in Uses() 194 ASSERT(static_cast<size_t>(idx) < regs.size()); in Uses() 195 res.emplace_back(regs[idx]); in Uses() 237 std::string IdToString(size_t idx, bool is_first) const; 238 std::string ImmToString(size_t idx, bool is_first) const; 239 std::string RegToString(size_t idx, bool is_first, bool print_args = false, size_t first_arg_idx = 0) const;
|
| /arkcompiler/runtime_core/static_core/assembler/ |
| H A D | assembly-ins.h | 204 for (auto idx : useIdxs) { in Uses() 205 if (idx == INVALID_REG_IDX) { in Uses() 208 ASSERT(static_cast<size_t>(idx) < regs.size()); in Uses() 209 res.emplace_back(regs[idx]); in Uses() 251 std::string IdToString(size_t idx, bool isFirst) const; 252 std::string ImmToString(size_t idx, bool isFirst) const; 253 std::string RegToString(size_t idx, bool isFirst, bool printArgs = false, size_t firstArgIdx = 0) const;
|
| /base/startup/init/ueventd/ |
| H A D | ueventd.c | 146 size_t idx = 0; in HandleRequiredDynamicDeviceNodes() local 152 while (idx < sizeof(DYNAMIC_DEVICES) / sizeof(DYNAMIC_DEVICES[0])) { in HandleRequiredDynamicDeviceNodes() 153 if (strcmp(uevent->deviceName, DYNAMIC_DEVICES[idx].dev + DEV_NODE_PATH_PREFIX_LEN) != 0) { in HandleRequiredDynamicDeviceNodes() 154 idx++; in HandleRequiredDynamicDeviceNodes() 165 if (mknod(DYNAMIC_DEVICES[idx].dev, DYNAMIC_DEVICES[idx].mode, in HandleRequiredDynamicDeviceNodes() 167 INIT_LOGE("Create device node %s failed. %s", DYNAMIC_DEVICES[idx].dev, strerror(errno)); in HandleRequiredDynamicDeviceNodes()
|
| /base/update/updater/test/unittest/utils/json/ |
| H A D | utils_json_test.cpp | 224 int idx = 0; in HWTEST_F() local 225 node["key"][idx++] = intVal; in HWTEST_F() 226 node["key"][idx++] = boolVal; in HWTEST_F() 227 node["key"][idx++] = strVal; in HWTEST_F() 228 EXPECT_EQ(node["key"][--idx], strVal); in HWTEST_F() 229 EXPECT_EQ(node["key"][--idx], boolVal); in HWTEST_F() 230 EXPECT_EQ(node["key"][--idx], intVal); in HWTEST_F()
|
| /base/update/updater/test/fuzztest/updaterutils_fuzzer/ |
| H A D | updater_utils_fuzzer.cpp | 307 int idx = 0; in TestJsonNodeOperation() local 308 node["key"][idx++] = intVal; in TestJsonNodeOperation() 309 node["key"][idx++] = boolVal; in TestJsonNodeOperation() 310 node["key"][idx++] = strVal; in TestJsonNodeOperation() 311 node["key"][--idx]; in TestJsonNodeOperation() 312 node["key"][--idx]; in TestJsonNodeOperation() 313 node["key"][--idx]; in TestJsonNodeOperation()
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| H A D | region-inl.h | 504 for (size_t idx = 0; idx < BitSetNum; idx++) { in Flush() 505 if (bitsets[idx].none()) { in Flush() 508 Consume(idx, updateAddress, static_cast<uint32_t>(bitsets[idx].to_ulong())); in Flush() 513 ARK_INLINE void Region::Updater<kind>::Consume(size_t idx, uintptr_t updateAddress, uint32_t mask) in Consume() argument 515 if (idx == LocalToShareIdx) { in Consume() 519 if (kind == InYoung && idx == NewToEdenIdx) { in Consume() 523 if (kind == InGeneralOld && idx in Consume() [all...] |