Class IsAllocationSite

java.lang.Object
org.ek9lang.compiler.phase9.IsAllocationSite
All Implemented Interfaces:
Predicate<IRInstr>

public final class IsAllocationSite extends Object implements Predicate<IRInstr>
THE "this instruction makes a new, child-bearing object" test of the IR (NV_PER_SITE_CONFINEMENT.md ยง2.1; N-V V1): a constructor CALL with a result whose receiver is neither this nor super (a delegation makes nothing), a LIST_LITERAL or a DICT_LITERAL. Not a LOAD_LITERAL, a STRING_INTERPOLATION or a STACK_ALLOC (childless values, never on a cycle), not a FUNCTION_INSTANCE (a module-lifetime singleton), not a CREATE_ASPECT_PROXY (an application's, published), not an owned non-constructor call result (an EXISTING object the callee handed back). One rule, three readers: ConfinedSites decides a stamp at exactly these, ConfineVerifier's audit asks it of the instruction before every CONFINE, and the escape census counts sites by it. Stateless: hold one.
  • Constructor Details

    • IsAllocationSite

      public IsAllocationSite()
  • Method Details