Skip to content

Commit

Permalink
Fix a comment in GcInfoEncoder.h
Browse files Browse the repository at this point in the history
Fix a stale comment about stack-slot-base
in the GcInfo Encoder interface.
  • Loading branch information
swaroop-sridhar committed Oct 15, 2015
1 parent 1f6172f commit 72f940d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/inc/gcinfoencoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -729,13 +729,13 @@ class GcInfoEncoder
//------------------------------------------------------------------------

//
// 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 );
Expand Down

0 comments on commit 72f940d

Please sign in to comment.