Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit f706053

Browse files
committed
Port PR #17879 from 3.0
1 parent 5db8cec commit f706053

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/vm/comdelegate.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2448,6 +2448,12 @@ FCIMPL1(PCODE, COMDelegate::GetMulticastInvoke, Object* refThisIn)
24482448
//Label_nextDelegate:
24492449
pCode->EmitLabel(nextDelegate);
24502450

2451+
#ifdef DEBUGGING_SUPPORTED
2452+
pCode->EmitLoadThis();
2453+
pCode->EmitLDLOC(dwLoopCounterNum);
2454+
pCode->EmitCALL(METHOD__STUBHELPERS__MULTICAST_DEBUGGER_TRACE_HELPER, 2, 0);
2455+
#endif // DEBUGGING_SUPPORTED
2456+
24512457
// compare LoopCounter with InvocationCount. If equal then branch to Label_endOfMethod
24522458
pCode->EmitLDLOC(dwLoopCounterNum);
24532459
pCode->EmitLDLOC(dwInvocationCountNum);
@@ -2477,11 +2483,6 @@ FCIMPL1(PCODE, COMDelegate::GetMulticastInvoke, Object* refThisIn)
24772483
pCode->EmitADD();
24782484
pCode->EmitSTLOC(dwLoopCounterNum);
24792485

2480-
#ifdef DEBUGGING_SUPPORTED
2481-
pCode->EmitLoadThis();
2482-
pCode->EmitLDLOC(dwLoopCounterNum);
2483-
pCode->EmitCALL(METHOD__STUBHELPERS__MULTICAST_DEBUGGER_TRACE_HELPER, 2, 0);
2484-
#endif // DEBUGGING_SUPPORTED
24852486

24862487
// branch to next delegate
24872488
pCode->EmitBR(nextDelegate);

0 commit comments

Comments
 (0)