equal
deleted
inserted
replaced
34 ! |
34 ! |
35 |
35 |
36 documentation |
36 documentation |
37 " |
37 " |
38 CheapBlocks are blocks which do not need their home-context |
38 CheapBlocks are blocks which do not need their home-context |
39 (i.e. blocks that do not access any method arguments or method locals). |
39 (i.e. blocks that do not access any method arguments |
|
40 or method locals). |
|
41 |
|
42 CheapBlocks are never created explicitely; the only creation |
|
43 is done by the compilers, when some sourceCode is compiled to either |
|
44 machine or byteCode. |
|
45 |
40 Since they have no reference to the home, they must store their |
46 Since they have no reference to the home, they must store their |
41 creating method explicitely - otherwise, the system had no chance of |
47 creating method explicitely - otherwise, the system had no |
42 finding the source-position of the block. |
48 chance of finding the source-position of the block. |
43 |
49 |
44 Instance variables: |
50 Instance variables: |
45 |
51 |
46 selfValue <Object> value to use for self if its a copying block |
52 selfValue <Object> copied self value |
|
53 (if its a copying block) |
47 |
54 |
48 method <Method> method where block was created |
55 method <Method> method where block was created |
49 |
56 |
50 NOTICE: layout known by runtime system and compiler - do not change |
57 NOTICE: layout known by runtime system and compiler - do not change |
51 " |
58 " |
109 ! ! |
116 ! ! |
110 |
117 |
111 !CheapBlock class methodsFor:'documentation'! |
118 !CheapBlock class methodsFor:'documentation'! |
112 |
119 |
113 version |
120 version |
114 ^ '$Header: /cvs/stx/stx/libbasic/CheapBlock.st,v 1.11 1996-04-16 09:27:45 cg Exp $' |
121 ^ '$Header: /cvs/stx/stx/libbasic/CheapBlock.st,v 1.12 1996-04-22 14:38:21 cg Exp $' |
115 ! ! |
122 ! ! |