Home
last modified time | relevance | path

Searched refs:sampleType (Results 1 – 10 of 10) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/compiler/
Dtype_info_accessors.cpp115 const PGOSampleType *sampleType = acc_.TryGetPGOType(gate_).GetPGOSampleType(); in HasNumberType() local
116 if (sampleType->IsNumber()) { in HasNumberType()
118 } else if (convertNumberType_ && sampleType->IsNone() && leftType.IsPrimitiveNumberType() && in HasNumberType()
121 …} else if (!convertNumberType_ && sampleType->IsNone() && leftType.IsNumberType() && rightType.IsN… in HasNumberType()
133 const PGOSampleType *sampleType = acc_.TryGetPGOType(gate_).GetPGOSampleType(); in HasStringType() local
134 if (sampleType->IsString()) { in HasStringType()
136 } else if (sampleType->IsNone() && leftType.IsStringType() && rightType.IsStringType()) { in HasStringType()
150 const PGOSampleType *sampleType = acc_.TryGetPGOType(gate_).GetPGOSampleType(); in ValueIsNumberType() local
151 if (sampleType->IsNumber() || in ValueIsNumberType()
152 (sampleType->IsNone() && ValueIsPrimitiveNumberType())) { in ValueIsNumberType()
[all …]
Dcompiler_log.cpp256 const PGOSampleType *sampleType = acc_.TryGetPGOType(gate).GetPGOSampleType(); in CollectGateTypeLogInfo() local
257 if (sampleType->IsString()) { in CollectGateTypeLogInfo()
259 } else if (sampleType->IsNumber()) { in CollectGateTypeLogInfo()
260 if (sampleType->IsInt()) { in CollectGateTypeLogInfo()
263 if (sampleType->IsIntOverFlow()) { in CollectGateTypeLogInfo()
265 } else if (sampleType->IsDouble()) { in CollectGateTypeLogInfo()
Dnumber_speculative_lowering.cpp296 const PGOSampleType *sampleType = acc_.GetTypedBinaryType(gate).GetPGOSampleType(); in VisitNumberCalculate() local
297 if (sampleType->IsNumber()) { in VisitNumberCalculate()
298 if (sampleType->IsInt()) { in VisitNumberCalculate()
324 const PGOSampleType *sampleType = acc_.GetTypedBinaryType(gate).GetPGOSampleType(); in VisitNumberCompare() local
325 if (sampleType->IsNumber()) { in VisitNumberCompare()
326 if (sampleType->IsInt()) { in VisitNumberCompare()
374 const PGOSampleType *sampleType = acc_.GetTypedBinaryType(gate).GetPGOSampleType(); in VisitNumberDiv() local
375 if (sampleType->IsNumber()) { in VisitNumberDiv()
376 if (sampleType->IsInt()) { in VisitNumberDiv()
401 const PGOSampleType *sampleType = acc_.GetTypedBinaryType(gate).GetPGOSampleType(); in VisitNumberMod() local
[all …]
Dnumber_speculative_retype.cpp463 const PGOSampleType *sampleType = acc_.GetTypedBinaryType(gate).GetPGOSampleType(); in VisitNumberCalculate() local
464 if (sampleType->IsNumber()) { in VisitNumberCalculate()
465 return SetOutputType(gate, *sampleType); in VisitNumberCalculate()
499 const PGOSampleType *sampleType = acc_.GetTypedBinaryType(gate).GetPGOSampleType(); in VisitNumberShiftAndLogical() local
500 if (sampleType->IsNumber()) { in VisitNumberShiftAndLogical()
501 if (sampleType->IsInt()) { in VisitNumberShiftAndLogical()
741 const PGOSampleType *sampleType = acc_.GetTypedBinaryType(gate).GetPGOSampleType(); in ConvertForBinaryOp() local
742 if (sampleType->IsNumber()) { in ConvertForBinaryOp()
743 if (sampleType->IsInt()) { in ConvertForBinaryOp()
750 if (sampleType->IsIntOverFlow()) { in ConvertForBinaryOp()
[all …]
Dgate_accessor.cpp373 auto sampleType = GetTypedBinaryType(gate).GetPGOSampleType(); in HasNumberType() local
374 if (sampleType->IsNumber()) { in HasNumberType()
377 if (sampleType->IsNone()) { in HasNumberType()
391 const PGOSampleType *sampleType = TryGetPGOType(gate).GetPGOSampleType(); in HasStringType() local
392 if (sampleType->IsString()) { in HasStringType()
394 } else if (sampleType->IsNone() && leftType.IsStringType() && rightType.IsStringType()) { in HasStringType()
403 auto sampleType = GetTypedBinaryType(gate).GetPGOSampleType(); in HasPrimitiveNumberType() local
404 if (sampleType->IsNumber()) { in HasPrimitiveNumberType()
407 if (sampleType->IsNone()) { in HasPrimitiveNumberType()
Dtyped_bytecode_lowering.cpp385 const PGOSampleType *sampleType = acc_.TryGetPGOType(gate).GetPGOSampleType(); in SpeculateNumber() local
386 if (sampleType->IsNumber()) { in SpeculateNumber()
387 if (sampleType->IsInt()) { in SpeculateNumber()
389 } else if (sampleType->IsDouble()) { in SpeculateNumber()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/tests/
Dpgo_profiler_test.cpp780 auto sampleType = *reinterpret_cast<const PGOSampleType *>(type); in HWTEST_F_L0() local
781 if (sampleType.IsProfileType()) { in HWTEST_F_L0()
784 if (!decoder.GetHClassTreeDesc(sampleType, &desc)) { in HWTEST_F_L0()
788 auto classId = EntityId(sampleType.GetProfileType().GetId()); in HWTEST_F_L0()
837 auto sampleType = *reinterpret_cast<const PGOSampleType *>(type); in HWTEST_F_L0() local
838 if (sampleType.IsProfileType()) { in HWTEST_F_L0()
842 if (sampleType.GetWeight() > 0) { in HWTEST_F_L0()
843 auto trueWeight = sampleType.GetWeight() >> 10; in HWTEST_F_L0()
844 auto falseWeight = sampleType.GetWeight() & 0x7FF; in HWTEST_F_L0()
845 auto primitiveType = sampleType.GetPrimitiveType(); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/types/
Dpgo_profiler_type.h827 auto sampleType = static_cast<const PGOSampleType*>(type_); in IsValidCallMethodId() local
828 if (sampleType->IsProfileType()) { in IsValidCallMethodId()
829 if (sampleType->GetProfileType().IsMethodId()) { in IsValidCallMethodId()
830 return sampleType->GetProfileType().IsValidCallMethodId(); in IsValidCallMethodId()
838 auto sampleType = static_cast<const PGOSampleType*>(type_); in GetCallMethodId() local
839 return sampleType->GetProfileType().GetCallMethodId(); in GetCallMethodId()
844 auto sampleType = static_cast<const PGOSampleType*>(type_); in GetValue() local
845 return sampleType->GetProfileType().GetRaw(); in GetValue()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
Dheap_profiler.h119 HeapSnapshot *MakeHeapSnapshot(SampleType sampleType, bool isVmMode = true,
Dheap_profiler.cpp311 HeapSnapshot *HeapProfiler::MakeHeapSnapshot(SampleType sampleType, bool isVmMode, bool isPrivate, in MakeHeapSnapshot() argument
320 switch (sampleType) { in MakeHeapSnapshot()