#include <segment.h>
|
|
static SegmentObj * | createSegmentObj (SegmentType type) |
| |
◆ isValidOffset()
| bool Sci::DataStack::isValidOffset |
( |
uint32 |
offset | ) |
const |
|
inlineoverridevirtual |
Check whether the given offset into this memory object is valid, i.e., suitable for passing to dereference.
Implements Sci::SegmentObj.
◆ dereference()
Dereferences a raw memory pointer.
- Parameters
-
| reg | reference to dereference |
- Returns
- the data block referenced
Reimplemented from Sci::SegmentObj.
◆ findCanonicAddress()
Finds the canonic address associated with sub_reg. Used by the garbage collector.
For each valid address a, there exists a canonic address c(a) such that c(a) = c(c(a)). This address "governs" a in the sense that deallocating c(a) will deallocate a.
- Parameters
-
| sub_addr | base address whose canonic address is to be found |
Reimplemented from Sci::SegmentObj.
◆ listAllOutgoingReferences()
Iterates over all references reachable from the specified object. Used by the garbage collector.
- Parameters
-
| object | object (within the current segment) to analyze |
- Returns
- a list of outgoing references within the object
- Note
- This function may also choose to report numbers (segment 0) as adresses
Reimplemented from Sci::SegmentObj.
◆ _capacity
| uint Sci::DataStack::_capacity |
The documentation for this struct was generated from the following file: