From 72f940d5a54685aab0b4b3f558288bc3175bc1a3 Mon Sep 17 00:00:00 2001 From: Swaroop Sridhar Date: Thu, 15 Oct 2015 13:44:32 -0700 Subject: Fix a comment in GcInfoEncoder.h Fix a stale comment about stack-slot-base in the GcInfo Encoder interface. --- src/inc/gcinfoencoder.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/inc') 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 ); -- cgit v1.2.3