* Added a T tag in the fasl file format denoting a thunk.
* T is followed by a code object.
This commit is contained in:
parent
6b2e48efb7
commit
bdcfd8beb0
|
@ -358,6 +358,16 @@ static ikp do_read(ikpcb* pcb, fasl_port* p){
|
|||
}
|
||||
return rtd;
|
||||
}
|
||||
else if(c == 'T'){ /* thunk */
|
||||
fprintf(stderr, "THUNK\n");
|
||||
ikp proc = ik_alloc(pcb, align(disp_closure_data)) + closure_tag;
|
||||
if(put_mark_index){
|
||||
p->marks[put_mark_index] = proc;
|
||||
}
|
||||
ikp code = do_read(pcb, p);
|
||||
ref(proc, -closure_tag) = code + off_code_data;
|
||||
return proc;
|
||||
}
|
||||
else if(c == '<'){
|
||||
int idx;
|
||||
fasl_read_buf(p, &idx, sizeof(int));
|
||||
|
|
Loading…
Reference in New Issue