/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | g1_analytics_test.cpp | 80 const uint64_t delta = 200'000; in FillAnalyticsUndefinedBehaviorTest() local 81 analytics.ReportScanDirtyCardsStart(now + delta); in FillAnalyticsUndefinedBehaviorTest() 84 const uint64_t delta = 250'000; in FillAnalyticsUndefinedBehaviorTest() local 86 analytics.ReportScanDirtyCardsEnd(now + delta, dirtyCardsCount); in FillAnalyticsUndefinedBehaviorTest() 89 const uint64_t delta = 1'000'000; in FillAnalyticsUndefinedBehaviorTest() local 90 analytics.ReportMarkingStart(now + delta); in FillAnalyticsUndefinedBehaviorTest() 93 const uint64_t delta = 2'000'000; in FillAnalyticsUndefinedBehaviorTest() local 95 analytics.ReportMarkingEnd(now + delta, remsetRefsCount); in FillAnalyticsUndefinedBehaviorTest() 98 const uint64_t delta = 3'000'000; in FillAnalyticsUndefinedBehaviorTest() local 99 analytics.ReportEvacuationStart(now + delta); in FillAnalyticsUndefinedBehaviorTest() 102 const uint64_t delta = 6'000'000; FillAnalyticsUndefinedBehaviorTest() local 107 const uint64_t delta = 7'000'000; FillAnalyticsUndefinedBehaviorTest() local 111 const uint64_t delta = 10'000'000; FillAnalyticsUndefinedBehaviorTest() local 142 const uint64_t delta = 200'000; TEST_F() local 146 const uint64_t delta = 250'000; global() local 151 const uint64_t delta = 1'000'000; global() local 155 const uint64_t delta = 2'000'000; global() local 160 const uint64_t delta = 3'000'000; global() local 164 const uint64_t delta = 6'000'000; global() local 169 const uint64_t delta = 7'000'000; global() local 176 const uint64_t delta = 10'000'000; global() local 195 const uint64_t delta = 200'000; FillAnalyticsPause1AllPromotedUndefinedBehaviorTest() local 199 const uint64_t delta = 250'000; global() local 204 const uint64_t delta = 1'000'000; global() local 208 const uint64_t delta = 2'000'000; global() local 213 const uint64_t delta = 3'000'000; global() local 217 const uint64_t delta = 6'000'000; global() local 222 const uint64_t delta = 7'000'000; global() local 226 const uint64_t delta = 10'000'000; global() local 267 const uint64_t delta = 200'000; FillAnalyticsPause0PredictionTest() local 271 const uint64_t delta = 250'000; global() local 276 const uint64_t delta = 1'000'000; global() local 280 const uint64_t delta = 2'000'000; global() local 285 const uint64_t delta = 3'000'000; global() local 289 const uint64_t delta = 6'000'000; global() local 297 const uint64_t delta = 6'000'000; global() local 301 const uint64_t delta = 7'000'000; global() local 305 const uint64_t delta = 10'000'000; global() local 320 const uint64_t delta = 900'000; FillAnalyticsPause1PredictionTest() local 324 const uint64_t delta = 950'000; global() local 329 const uint64_t delta = 1'000'000; global() local 333 const uint64_t delta = 2'500'000; global() local 338 const uint64_t delta = 3'000'000; global() local 342 const uint64_t delta = 6'500'000; global() local 352 const uint64_t delta = 6'000'000; global() local 356 const uint64_t delta = 7'500'000; global() local 359 const uint64_t delta = 10'000'000; global() local 372 const uint64_t delta = 900'000; FillAnalyticsPause2PredictionTest() local 376 const uint64_t delta = 950'000; global() local 381 const uint64_t delta = 1'000'000; global() local 385 const uint64_t delta = 3'000'000; global() local 390 const uint64_t delta = 3'000'000; global() local 394 const uint64_t delta = 7'000'000; global() local 403 const uint64_t delta = 7'000'000; global() local 407 const uint64_t delta = 8'500'000; global() local 410 const uint64_t delta = 11'000'000; global() local [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/gc/ |
H A D | gc_trigger.cpp | 108 size_t delta = (heapSize / PERCENT_100) * percentThreshold_; in ComputeTarget() local 112 delta = std::min(delta, maxExtraSize_); in ComputeTarget() 115 delta = std::max(delta, (heapSizeBeforeGc - heapSize) / 2); in ComputeTarget() 117 return heapSize + std::max(delta, minExtraSize_); in ComputeTarget() 151 auto delta = static_cast<size_t>(static_cast<double>(heapSize) / PERCENT_100_D * percentThreshold_); in ComputeTarget() local 159 delta = std::max(delta, adaptiveMultiplier_ * maxExtraSize_); in ComputeTarget() 160 delta in ComputeTarget() 421 size_t delta = (heapSize / PERCENT_100) * percentThreshold_; ComputeTarget() local [all...] |
H A D | gc_queue.cpp | 44 auto delta = task->GetTargetTime() - currentTime; in GetTask() local 45 uint64_t ms = delta / NANOSECONDS_PER_MILLISEC; in GetTask() 46 uint64_t ns = delta % NANOSECONDS_PER_MILLISEC; in GetTask()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/ |
H A D | fast_divisor.h | 51 uint64_t delta = 0U; in FastConstSignedDivisor() local 67 delta = ad - r2; in FastConstSignedDivisor() 68 } while (q1 < delta || (q1 == delta && r1 == 0)); in FastConstSignedDivisor() 111 uint64_t delta = 0U; in FastConstUnsignedDivisor() local 136 delta = divisor - 1U - r2; in FastConstUnsignedDivisor() 137 } while ((p < 2L * static_cast<int64_t>(bitWidth)) && (q1 < delta || (q1 == delta && r1 == 0U))); in FastConstUnsignedDivisor()
|
/arkcompiler/runtime_core/bytecode_optimizer/ |
H A D | reg_encoder.cpp | 107 auto delta = static_cast<compiler::Register>(num_temps_ - max_num_temps); in RunImpl() local 108 range_temps_start_ += delta; in RunImpl() 110 RenumberRegs(MIN_REGISTER_NUMBER, delta); in RunImpl() 149 static panda::compiler::Register RenumberReg(const panda::compiler::Register r, const panda::compiler::Register delta) in RenumberReg() argument 154 return r + delta; in RenumberReg() 158 const panda::compiler::Register delta) in RenumberSpillFillRegs() 162 sf.SetSrc(compiler::Location::MakeRegister(RenumberReg(sf.SrcValue(), delta))); in RenumberSpillFillRegs() 165 sf.SetDst(compiler::Location::MakeRegister(RenumberReg(sf.DstValue(), delta))); in RenumberSpillFillRegs() 170 void RegEncoder::RenumberRegs(const compiler::Register min_reg, const compiler::Register delta) in RenumberRegs() argument 172 // Renumbering always advances register number `delta` position in RenumberRegs() 157 RenumberSpillFillRegs(panda::compiler::SpillFillInst *inst, const panda::compiler::Register min_reg, const panda::compiler::Register delta) RenumberSpillFillRegs() argument 272 auto delta = static_cast<compiler::Register>(num_locals + num_temps + num_max_range_input_ - num_non_args); RenumberArgRegs() local [all...] |
H A D | reg_encoder.h | 137 void RenumberRegs(const compiler::Register min_reg, const compiler::Register delta);
|
/arkcompiler/runtime_core/static_core/compiler/tests/ |
H A D | codegen_runner_test.cpp | 330 [[maybe_unused]] auto delta = bit_cast<uintptr_t>(fp) - bit_cast<uintptr_t>(&tmp); in Callback() local 331 ASSERT(delta < HOOK_OFFSET); in Callback() 332 delta = std::distance(tmp.begin(), tmp.end()) * sizeof(uint64_t); in Callback() 333 ASSERT(delta == CORRUPT_SIZE * sizeof(uint64_t)); in Callback()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | mutator_lock.h | 67 void Increment(int32_t delta) in Increment() argument 69 PassCount(delta); in Increment() 74 void PassCount(int32_t delta);
|
H A D | mutator_lock.cpp | 95 void SuspendBarrier::PassCount(int32_t delta) in PassCount() argument 101 done = passBarrierCount_.compare_exchange_strong(curCount, curCount + delta); in PassCount()
|
H A D | frames.cpp | 472 int delta = ComputeDelta(method); in GetPrevFrameCallSiteSp() local 473 auto callSiteSp = reinterpret_cast<uintptr_t>(current_) + delta; in GetPrevFrameCallSiteSp() 664 int delta = it.ComputeDelta(method); in ComputePrevFrameSp() local 665 ASSERT((delta > 0) && (delta % sizeof(uintptr_t) == 0)); in ComputePrevFrameSp() 666 uintptr_t *preFrameSp = reinterpret_cast<uintptr_t *>(const_cast<JSTaggedType *>(sp)) + delta / sizeof(uintptr_t); in ComputePrevFrameSp() 728 int delta = it.ComputeDelta(); in ComputePrevFrameSp() local 729 ASSERT((delta > 0) && (delta % sizeof(uintptr_t) == 0)); in ComputePrevFrameSp() 730 uintptr_t *preFrameSp = reinterpret_cast<uintptr_t *>(const_cast<JSTaggedType *>(sp)) + delta / sizeo in ComputePrevFrameSp() [all...] |
H A D | method.h | 293 uint64_t SetFpDelta(uint64_t extraLitearalInfo, int32_t delta) in SetFpDelta() argument 295 return FpDeltaBits::Update(extraLitearalInfo, delta); in SetFpDelta() 386 void SetFpDelta(int32_t delta) in SetFpDelta() argument 389 uint64_t newValue = SetFpDelta(extraLiteralInfo, delta); in SetFpDelta()
|
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
H A D | aot_file_info.cpp | 34 int delta = 0; in CalCallSiteInfo() local 51 ret = std::make_tuple(textStart, stackmapAddr, delta, calleeRegInfo); in CalCallSiteInfo() 57 delta = it.fpDeltaPrevFrameSp_; in CalCallSiteInfo() 59 ret = std::make_tuple(textStart, stackmapAddr, delta, calleeRegInfo); in CalCallSiteInfo() 64 ret = std::make_tuple(textStart, stackmapAddr, delta, calleeRegInfo); in CalCallSiteInfo()
|
H A D | aot_file_info.h | 73 uint32_t fileIndex, uint32_t moduleIndex, int delta, uint32_t size, CalleeRegAndOffsetVec info = {}) in AddEntry() 87 des.fpDeltaPrevFrameSp_ = delta; 72 AddEntry(CallSignature::TargetKind kind, bool isMainFunc, bool isFastCall, int indexInKind, uint64_t offset, uint32_t fileIndex, uint32_t moduleIndex, int delta, uint32_t size, CalleeRegAndOffsetVec info = {}) AddEntry() argument
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
H A D | proepilog.h | 48 int64 AddtoOffsetFromCFA(int64 delta) in AddtoOffsetFromCFA() argument 50 offsetFromCfa += delta; in AddtoOffsetFromCFA()
|
H A D | cfi_generator.h | 45 int64 AddtoOffsetFromCFA(int64 delta) in AddtoOffsetFromCFA() argument 47 offsetFromCfa += delta; in AddtoOffsetFromCFA()
|
/arkcompiler/runtime_core/static_core/bytecode_optimizer/ |
H A D | reg_encoder.cpp | 134 auto delta = static_cast<compiler::Register>(numTemps_ - maxNumTemps); in RunImpl() local 135 rangeTempsStart_ += delta; in RunImpl() 137 RenumberRegs(MIN_REGISTER_NUMBER, delta); in RunImpl() 180 static ark::compiler::Register RenumberReg(const ark::compiler::Register r, const ark::compiler::Register delta) in RenumberReg() argument 185 return r + delta; in RenumberReg() 189 const ark::compiler::Register delta) in RenumberSpillFillRegs() 193 sf.SetSrc(compiler::Location::MakeRegister(RenumberReg(sf.SrcValue(), delta))); in RenumberSpillFillRegs() 196 sf.SetDst(compiler::Location::MakeRegister(RenumberReg(sf.DstValue(), delta))); in RenumberSpillFillRegs() 201 static void RenumberRegsForInst(compiler::Inst *inst, const compiler::Register minReg, const compiler::Register delta) in RenumberRegsForInst() argument 205 inst->SetDstReg(RenumberReg(inst->GetDstReg(), delta)); in RenumberRegsForInst() 188 RenumberSpillFillRegs(ark::compiler::SpillFillInst *inst, const ark::compiler::Register minReg, const ark::compiler::Register delta) RenumberSpillFillRegs() argument 226 RenumberRegs(const compiler::Register minReg, const compiler::Register delta) RenumberRegs() argument 317 auto delta = static_cast<compiler::Register>(numLocals + numTemps + numMaxRangeInput_ - numNonArgs); RenumberArgRegs() local [all...] |
H A D | reg_encoder.h | 158 void RenumberRegs(compiler::Register minReg, compiler::Register delta);
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/helpers/ |
H A D | ets_intrinsics_helpers.h | 245 PandaString DecimalsToString(FpType *numberInteger, FpType fraction, int radix, FpType delta) in DecimalsToString() argument 248 while (fraction >= delta) { in DecimalsToString() 250 delta *= radix; in DecimalsToString() 254 if (fraction > HALF && fraction + delta > 1) { in DecimalsToString() 370 float delta = static_cast<FpType>(HALF) * (bit_cast<FpType>(value) - number); in FpDelta() local 371 return delta == 0 ? number : delta; in FpDelta() 405 float delta = FpDelta(number); in FpToString() member 408 if (fractional != 0 && fractional >= delta) { in FpToString() 409 PandaString fraction(DecimalsToString<FpType>(&integral, fractional, radix, delta)); in FpToString() [all...] |
H A D | dtoa_helper.h | 181 void GrisuRound(uint64_t delta, uint64_t rest, uint64_t tenKappa, uint64_t distance); 184 void DigitGen(const DiyFp &w, const DiyFp &mp, uint64_t delta);
|
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | dtoa_helper.cpp | 66 void DtoaHelper::GrisuRound(char *buffer, int len, uint64_t delta, uint64_t rest, uint64_t tenKappa, uint64_t distance) in GrisuRound() argument 68 while (rest < distance && delta - rest >= tenKappa && in GrisuRound() 98 void DtoaHelper::DigitGen(const DiyFp &W, const DiyFp &Mp, uint64_t delta, char *buffer, int *len, int *K) in DigitGen() argument 153 if (tmp <= delta) { in DigitGen() 155 GrisuRound(buffer, localLen, delta, tmp, POW10[kappa] << -one.e, distance.f); in DigitGen() 164 delta *= TEN; in DigitGen() 172 if (p2 < delta) { in DigitGen() 176 GrisuRound(buffer, localLen, delta, p2, one.f, distance.f * POW10[index]); in DigitGen()
|
H A D | number_helper.cpp | 192 double delta = HALF * (bit_cast<double>(value) - number); 193 delta = std::max(delta, bit_cast<double>(static_cast<uint64_t>(1))); // 1 : The binary of the smallest double is 1 194 if (fraction != 0 && fraction >= delta) { 196 while (fraction >= delta) { 198 delta *= radix; 202 bool needCarry = (fraction > HALF) && (fraction + delta > 1);
|
H A D | dtoa_helper.h | 279 static void GrisuRound(char* buffer, int len, uint64_t delta, uint64_t rest, uint64_t tenKappa, uint64_t distance); 281 static void DigitGen(const DiyFp& W, const DiyFp& Mp, uint64_t delta, char* buffer, int* len, int* K);
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | file_generators.cpp | 124 int delta = assembler->GetFpDeltaPrevFramSp(func, log); in CollectFuncEntryInfo() local 125 ASSERT(delta >= 0 && (delta % sizeof(uintptr_t) == 0)); in CollectFuncEntryInfo() 134 AOTFileManager::STUB_FILE_INDEX, moduleIndex, delta, funcSize, info); in CollectFuncEntryInfo() 151 std::vector<std::tuple<uint64_t, size_t, int, bool>> funcInfo; // entry idx delta in CollectFuncEntryInfo() 152 std::vector<kungfu::CalleeRegAndOffsetVec> calleeSaveRegisters; // entry idx delta in CollectFuncEntryInfo() 161 int delta = assembler->GetFpDeltaPrevFramSp(func, log); in CollectFuncEntryInfo() 162 ASSERT(delta >= 0 && (delta % sizeof(uintptr_t) == 0)); in CollectFuncEntryInfo() 163 funcInfo.emplace_back(std::tuple(funcEntry, idx, delta, isFastCal in CollectFuncEntryInfo() 189 int delta; CollectFuncEntryInfo() local 253 int delta; CollectFuncEntryInfoByLiteCG() local [all...] |
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | machine_code.cpp | 233 int delta = GetFpDeltaPrevFrameSp(); in CalCallSiteInfo() local 243 auto ret = std::make_tuple(textStart, stackmapAddr, delta, calleeRegInfo); in CalCallSiteInfo()
|
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/tests/ |
H A D | test_gc_ark_reporter.py | 127 delta = events[0].timestamp 131 self.assertEqual(events[i].timestamp - delta, p[0])
|