Home
last modified time | relevance | path

Searched refs:safe_cast (Results 1 - 10 of 10) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/
H A Dconstantfold.cpp323 const MIRIntConst *intConst0 = safe_cast<MIRIntConst>(const0.GetConstVal()); in FoldIntConstComparison()
324 const MIRIntConst *intConst1 = safe_cast<MIRIntConst>(const1.GetConstVal()); in FoldIntConstComparison()
410 const MIRIntConst *intConst0 = safe_cast<MIRIntConst>(const0.GetConstVal()); in FoldIntConstBinary()
411 const MIRIntConst *intConst1 = safe_cast<MIRIntConst>(const1.GetConstVal()); in FoldIntConstBinary()
434 doubleConst0 = safe_cast<MIRDoubleConst>(const0.GetConstVal()); in FoldFPConstBinary()
435 doubleConst1 = safe_cast<MIRDoubleConst>(const1.GetConstVal()); in FoldFPConstBinary()
439 floatConst0 = safe_cast<MIRFloatConst>(const0.GetConstVal()); in FoldFPConstBinary()
440 floatConst1 = safe_cast<MIRFloatConst>(const1.GetConstVal()); in FoldFPConstBinary()
608 ComparisonResult(opcode, safe_cast<MIRDoubleConst>(&leftConst), safe_cast<MIRDoubleCons in FoldFPConstComparisonMIRConst()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
H A Dobj_emit.cpp100 MIRAggConst *arrayConst = safe_cast<MIRAggConst>(st.second->GetKonst()); in EmitSwitchTable()
103 MIRLblConst *lblConst = safe_cast<MIRLblConst>(arrayConst->GetConstVecItem(i)); in EmitSwitchTable()
240 MIRIntConst *intConst = safe_cast<MIRIntConst>(st->GetKonst()); in EmitFunctionSymbolTable()
247 MIRFloatConst *floatConst = safe_cast<MIRFloatConst>(st->GetKonst()); in EmitFunctionSymbolTable()
253 MIRDoubleConst *doubleConst = safe_cast<MIRDoubleConst>(st->GetKonst()); in EmitFunctionSymbolTable()
269 MIRStr16Const *mirStr16Const = safe_cast<MIRStr16Const>(str16Symbol.GetKonst()); in EmitStr16Const()
286 MIRStrConst *mirStrConst = safe_cast<MIRStrConst>(strSymbol.GetKonst()); in EmitStrConst()
H A Demit.cpp476 MIRStr16Const *str16Const = safe_cast<MIRStr16Const>(st->GetKonst()); in EmitAsmLabel()
484 MIRStrConst *strConst = safe_cast<MIRStrConst>(st->GetKonst()); in EmitAsmLabel()
493 MIRIntConst *intConst = safe_cast<MIRIntConst>(st->GetKonst()); in EmitAsmLabel()
500 MIRFloatConst *floatConst = safe_cast<MIRFloatConst>(st->GetKonst()); in EmitAsmLabel()
507 MIRDoubleConst *doubleConst = safe_cast<MIRDoubleConst>(st->GetKonst()); in EmitAsmLabel()
1169 MIRAddrofConst *pAddr = safe_cast<MIRAddrofConst>(pAddrConst); in EmitAsmLabel()
1173 MIRAggConst *methodAddrAggConst = safe_cast<MIRAggConst>(symAddrSym->GetKonst()); in EmitAsmLabel()
1175 MIRAggConst *addrAggConst = safe_cast<MIRAggConst>(methodAddrAggConst->GetConstVecItem(0)); in EmitAsmLabel()
1180 innerFuncAddr = safe_cast<MIRAddroffuncConst>(funcAddrConst); in EmitAsmLabel()
1189 MIRIntConst *funcAddrIndexConst = safe_cast<MIRIntCons in EmitAsmLabel()
[all...]
H A Dcgfunc.cpp51 auto *mirIntConst = safe_cast<MIRIntConst>(mirConst); in HandleConstVal()
54 auto *mirFloatConst = safe_cast<MIRFloatConst>(mirConst); in HandleConstVal()
58 auto *mirDoubleConst = safe_cast<MIRDoubleConst>(mirConst); in HandleConstVal()
H A Disel.cpp353 auto *mirIntConst = safe_cast<MIRIntConst>(mirConst); in HandleConstVal()
356 auto *mirDoubleConst = safe_cast<MIRDoubleConst>(mirConst); in HandleConstVal()
359 auto *mirFloatConst = safe_cast<MIRFloatConst>(mirConst); in HandleConstVal()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
H A Dsafe_cast.h74 inline RetT safe_cast(FromT &from) in safe_cast() function
84 inline RetT safe_cast(FromT *from) in safe_cast() function
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
H A Dcgfunc.h696 MIRAggConst *arrayConst = safe_cast<MIRAggConst>(symbol.GetKonst()); in AddEmitSt()
699 MIRLblConst *lblConst = safe_cast<MIRLblConst>(arrayConst->GetConstVecItem(i)); in AddEmitSt()
709 MIRAggConst *arrayConst = safe_cast<MIRAggConst>(symbol.GetKonst()); in DeleteEmitSt()
712 MIRLblConst *lblConst = safe_cast<MIRLblConst>(arrayConst->GetConstVecItem(i)); in DeleteEmitSt()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/
H A Daarch64_emitter.cpp291 MIRAggConst *arrayConst = safe_cast<MIRAggConst>(st->GetKonst()); in Run()
297 MIRLblConst *lblConst = safe_cast<MIRLblConst>(arrayConst->GetConstVecItem(i)); in Run()
H A Daarch64_cgfunc.cpp3980 MIRIntConst *intOfst = safe_cast<MIRIntConst>(constOfstNode->GetConstVal());
4039 MIRIntConst *mirIntConst = safe_cast<MIRIntConst>(constValNode->GetConstVal());
4078 MIRIntConst *intOfst = safe_cast<MIRIntConst>(constOfstNode->GetConstVal());
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/
H A Dx64_emitter.cpp1521 MIRAggConst *arrayConst = safe_cast<MIRAggConst>(st->GetKonst()); in EmitJmpTable()
1526 MIRLblConst *lblConst = safe_cast<MIRLblConst>(arrayConst->GetConstVecItem(i)); in EmitJmpTable()

Completed in 23 milliseconds