@@ -1090,7 +1090,7 @@ void Inline::CloneCallSequence(IR::Instr* callInstr, IR::Instr* clonedCallInstr)
1090
1090
IR::Instr* previousClonedArg = clonedCallInstr;
1091
1091
callInstr->IterateArgInstrs ([&](IR::Instr* argInstr){
1092
1092
IR::Instr* cloneArg = IR::Instr::New (argInstr->m_opcode ,
1093
- IR::SymOpnd::New (callInstr->m_func ->m_symTable ->GetArgSlotSym (argInstr->GetDst ()->GetStackSym ()->GetArgSlotNum ()), 0 , TyMachPtr , callInstr->m_func ),
1093
+ IR::SymOpnd::New (callInstr->m_func ->m_symTable ->GetArgSlotSym (argInstr->GetDst ()->GetStackSym ()->GetArgSlotNum ()), 0 , argInstr-> GetDst ()-> GetType () , callInstr->m_func ),
1094
1094
argInstr->GetSrc1 (), callInstr->m_func );
1095
1095
cloneArg->SetByteCodeOffset (callInstr);
1096
1096
cloneArg->GetDst ()->GetStackSym ()->m_isArgCaptured = true ;
@@ -2580,10 +2580,10 @@ IR::Instr * Inline::InlineApplyWithArgumentsObject(IR::Instr * callInstr, IR::In
2580
2580
callInstr->InsertBefore (startCall);
2581
2581
2582
2582
StackSym *symDst = callInstr->m_func ->m_symTable ->GetArgSlotSym ((uint16)(2 ));
2583
- IR::SymOpnd* linkOpnd1 = IR::SymOpnd::New (symDst, 0 , TyMachPtr , callInstr->m_func );
2583
+ IR::SymOpnd* linkOpnd1 = IR::SymOpnd::New (symDst, 0 , TyVar , callInstr->m_func );
2584
2584
2585
2585
symDst = callInstr->m_func ->m_symTable ->GetArgSlotSym ((uint16)(1 ));
2586
- IR::Opnd *linkOpnd2 = IR::SymOpnd::New (symDst, 0 , TyMachPtr , callInstr->m_func );
2586
+ IR::Opnd *linkOpnd2 = IR::SymOpnd::New (symDst, 0 , TyVar , callInstr->m_func );
2587
2587
2588
2588
// This keeps the stack args alive for bailout to recover
2589
2589
IR::Instr* argout = IR::Instr::New (Js::OpCode::ArgOut_A_FromStackArgs, linkOpnd1, ldHeapArguments->GetDst (), startCall->GetDst (), callInstr->m_func );
@@ -2644,12 +2644,12 @@ IR::Instr * Inline::InlineApplyBuiltInTargetWithArray(IR::Instr * callInstr, con
2644
2644
StackSym * sym;
2645
2645
2646
2646
sym = callInstr->m_func ->m_symTable ->GetArgSlotSym ((uint16)(1 ));
2647
- linkOpnd = IR::SymOpnd::New (sym, 0 , TyMachPtr , callInstr->m_func );
2647
+ linkOpnd = IR::SymOpnd::New (sym, 0 , TyVar , callInstr->m_func );
2648
2648
IR::Instr * argOut = IR::Instr::New (Js::OpCode::ArgOut_A, linkOpnd, explicitThisArgOut->GetSrc1 (), startCall->GetDst (), callInstr->m_func );
2649
2649
callInstr->InsertBefore (argOut);
2650
2650
2651
2651
sym = callInstr->m_func ->m_symTable ->GetArgSlotSym ((uint16)(2 ));
2652
- linkOpnd = IR::SymOpnd::New (sym, 0 , TyMachPtr , callInstr->m_func );
2652
+ linkOpnd = IR::SymOpnd::New (sym, 0 , TyVar , callInstr->m_func );
2653
2653
argOut = IR::Instr::New (Js::OpCode::ArgOut_A, linkOpnd, arrayArgOut->GetSrc1 (), argOut->GetDst (), callInstr->m_func );
2654
2654
callInstr->InsertBefore (argOut);
2655
2655
@@ -2702,7 +2702,7 @@ IR::Instr * Inline::InlineApplyWithoutArrayArgument(IR::Instr *callInstr, const
2702
2702
callInstr->InsertBefore (startCall);
2703
2703
2704
2704
StackSym* symDst = callInstr->m_func ->m_symTable ->GetArgSlotSym ((uint16)(1 ));
2705
- IR::SymOpnd* linkOpnd = IR::SymOpnd::New (symDst, 0 , TyMachPtr , callInstr->m_func );
2705
+ IR::SymOpnd* linkOpnd = IR::SymOpnd::New (symDst, 0 , TyVar , callInstr->m_func );
2706
2706
IR::Instr* thisArgOut = IR::Instr::New (Js::OpCode::ArgOut_A, linkOpnd, explicitThisArgOut->GetSrc1 (), startCall->GetDst (), callInstr->m_func );
2707
2707
callInstr->InsertBefore (thisArgOut);
2708
2708
@@ -3107,7 +3107,7 @@ Inline::InlineCall(IR::Instr *callInstr, const FunctionJITTimeInfo *funcInfo, co
3107
3107
orgArgout->InsertBefore (assignInstr);
3108
3108
3109
3109
StackSym *symDst = callInstr->m_func ->m_symTable ->GetArgSlotSym ((uint16)(i));
3110
- IR::SymOpnd* newLinkOpnd = IR::SymOpnd::New (symDst, 0 , TyMachPtr , func);
3110
+ IR::SymOpnd* newLinkOpnd = IR::SymOpnd::New (symDst, 0 , TyVar , func);
3111
3111
3112
3112
clonedArgout = IR::Instr::New (Js::OpCode::ArgOut_A, newLinkOpnd, tempDst, func);
3113
3113
insertBeforeInstr->SetSrc2 (newLinkOpnd);
0 commit comments