summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSwaroop Sridhar <Swaroop.Sridhar@microsoft.com>2015-10-15 13:44:32 -0700
committerSwaroop Sridhar <Swaroop.Sridhar@microsoft.com>2015-10-15 13:46:11 -0700
commit72f940d5a54685aab0b4b3f558288bc3175bc1a3 (patch)
treecbf969eaa6d771df27e8f2eb076426b93c72afc7
parent1f6172fe2ac167253615f998f42e41167b6f12e8 (diff)
downloadcoreclr-72f940d5a54685aab0b4b3f558288bc3175bc1a3.tar.gz
coreclr-72f940d5a54685aab0b4b3f558288bc3175bc1a3.tar.bz2
coreclr-72f940d5a54685aab0b4b3f558288bc3175bc1a3.zip
Fix a comment in GcInfoEncoder.h
Fix a stale comment about stack-slot-base in the GcInfo Encoder interface.
-rw-r--r--src/inc/gcinfoencoder.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/inc/gcinfoencoder.h b/src/inc/gcinfoencoder.h
index b14587cdb2..70e8c0ea66 100644
--- a/src/inc/gcinfoencoder.h
+++ b/src/inc/gcinfoencoder.h
@@ -729,13 +729,13 @@ public:
//------------------------------------------------------------------------
//
- // spOffset are always relative to the SP of the caller (same as SP at the method entry and exit)
- // Negative offsets describe GC refs in the local and outgoing areas.
- // Positive offsets describe GC refs in the scratch area
+ // If spOffset is relative to the current SP, spOffset must be non-negative.
+ // If spOffset is relative to the SP of the caller (same as SP at the method entry and exit)
+ // Negative offsets describe GC refs in the local and outgoing areas.
+ // Positive offsets describe GC refs in the scratch area
// Note that if the dynamic allocation area is resized, the outgoing area will not be valid anymore
// Old slots must be declared dead and new ones can be defined.
// It's up to the JIT to do the right thing. We don't enforce this.
- //
GcSlotId GetRegisterSlotId( UINT32 regNum, GcSlotFlags flags );
GcSlotId GetStackSlotId( INT32 spOffset, GcSlotFlags flags, GcStackSlotBase spBase = GC_CALLER_SP_REL );