File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -2467,7 +2467,7 @@ void LinearScan::dumpVarRefPositions(const char* title)
2467
2467
printf (" (Interval %d)\n " , interval->intervalIndex );
2468
2468
for (RefPosition* ref = interval->firstRefPosition ; ref != nullptr ; ref = ref->nextRefPosition )
2469
2469
{
2470
- ref->dump ();
2470
+ ref->dump (this );
2471
2471
}
2472
2472
}
2473
2473
else
@@ -4346,7 +4346,7 @@ void LinearScan::dumpRefPositions(const char* str)
4346
4346
printf (" ------------\n " );
4347
4347
for (RefPosition& refPos : refPositions)
4348
4348
{
4349
- refPos.dump ();
4349
+ refPos.dump (this );
4350
4350
}
4351
4351
}
4352
4352
#endif // DEBUG
@@ -8895,7 +8895,7 @@ const char* LinearScan::getScoreName(RegisterScore score)
8895
8895
}
8896
8896
}
8897
8897
8898
- void RefPosition::dump ()
8898
+ void RefPosition::dump (LinearScan* linearScan )
8899
8899
{
8900
8900
printf (" <RefPosition #%-3u @%-3u" , rpNum, nodeLocation);
8901
8901
@@ -8969,6 +8969,8 @@ void RefPosition::dump()
8969
8969
{
8970
8970
printf (" regOptional" );
8971
8971
}
8972
+
8973
+ printf (" wt=%.2f" , linearScan->getWeight (this ));
8972
8974
printf (" >\n " );
8973
8975
}
8974
8976
Original file line number Diff line number Diff line change
1
+
1
2
// Licensed to the .NET Foundation under one or more agreements.
2
3
// The .NET Foundation licenses this file to you under the MIT license.
3
4
/* ****************************************************************************/
@@ -2444,7 +2445,7 @@ class RefPosition
2444
2445
return *this ;
2445
2446
}
2446
2447
2447
- void dump ();
2448
+ void dump (LinearScan* linearScan );
2448
2449
#endif // DEBUG
2449
2450
};
2450
2451
Original file line number Diff line number Diff line change @@ -525,7 +525,7 @@ RefPosition* LinearScan::newRefPosition(
525
525
(regRecord->lastRefPosition ->refType != theRefType));
526
526
associateRefPosWithInterval (newRP);
527
527
528
- DBEXEC (VERBOSE, newRP->dump ());
528
+ DBEXEC (VERBOSE, newRP->dump (this ));
529
529
return newRP;
530
530
}
531
531
@@ -620,7 +620,7 @@ RefPosition* LinearScan::newRefPosition(Interval* theInterval,
620
620
621
621
associateRefPosWithInterval (newRP);
622
622
623
- DBEXEC (VERBOSE, newRP->dump ());
623
+ DBEXEC (VERBOSE, newRP->dump (this ));
624
624
return newRP;
625
625
}
626
626
@@ -2624,7 +2624,7 @@ void LinearScan::validateIntervals()
2624
2624
printf (" -----------------\n " );
2625
2625
for (RefPosition* ref = interval->firstRefPosition ; ref != nullptr ; ref = ref->nextRefPosition )
2626
2626
{
2627
- ref->dump ();
2627
+ ref->dump (this );
2628
2628
RefType refType = ref->refType ;
2629
2629
if (!defined && RefTypeIsUse (refType))
2630
2630
{
You can’t perform that action at this time.
0 commit comments