Changes between Version 12 and Version 13 of SemiTagging
- Timestamp:
- 10/30/06 08:44:38 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SemiTagging
v12 v13 60 60 The benefit is that processors are typically faster at "test-and-jump to known location" than they are at "jump to this pointer". 61 61 62 ''Alexey: add some example HC code here'' 62 Under this scheme, the entry code for the {{{not}}} function would look as follows: 63 {{{ 64 if(R2 & 1 == 1) goto tagged 65 ... stack check omitted ... 66 R1 = R2; 67 I64[Sp + (-8)] = sej_info; 68 Sp = Sp + (-8); 69 jump I64[R1]; 70 tagged: 71 R1 = R2 & ~1; // mask pointer tag out 72 <extract constructor tag from pointer> 73 if(tag==0) goto sej_0_alt 74 goto sej_1_alt 75 }}} 63 76 64 77 == Tagging the LSB of an evaluated closure ==
