Smalltalk/X WebserverDocumentation of class 'CheapBlock': | ||
Class: CheapBlockInheritance:Object | +--ExecutableFunction | +--CompiledCode | +--Block | +--CheapBlock | +--VarArgCheapBlock
Description:CheapBlocks are blocks which do not need their home-context (i.e. blocks that do not access any method arguments or method locals). CheapBlocks are never created explicitely; the only creation is done by the compilers, when some sourceCode is compiled to either machine or byteCode, and the generated block is found to neither access any variables from its homeContext nor does a method-return. CheapBlocks create less overhead to the runtime system, in that they do not keep the creating context from being reclaimed (but, don't expect too much of a difference ;-) Since they have no reference to the home, they must store their creating method explicitely - otherwise, the system had no chance of finding the source-position of the block. [Instance variables:] selfValue <Object> copied self value (if it's a copying block) method <Method> method where block was created NOTICE: layout known by runtime system and compiler - do not change Class protocol:queries
Instance protocol:accessing
|
||
ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Wed, 04 Dec 2024 08:32:29 GMT |