vm backtrace improvements
[bpt/guile.git] / src / vm_system.c
CommitLineData
8f5cfc81 1/* Copyright (C) 2001 Free Software Foundation, Inc.
a98cef7e
KN
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2, or (at your option)
6 * any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this software; see the file COPYING. If not, write to
15 * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
16 * Boston, MA 02111-1307 USA
17 *
18 * As a special exception, the Free Software Foundation gives permission
19 * for additional uses of the text contained in its release of GUILE.
20 *
21 * The exception is that, if you link the GUILE library with other files
22 * to produce an executable, this does not by itself cause the
23 * resulting executable to be covered by the GNU General Public License.
24 * Your use of that executable is in no way restricted on account of
25 * linking the GUILE library code into it.
26 *
27 * This exception does not however invalidate any other reasons why
28 * the executable file might be covered by the GNU General Public License.
29 *
30 * This exception applies only to the code released by the
31 * Free Software Foundation under the name GUILE. If you copy
32 * code from other Free Software Foundation releases into a copy of
33 * GUILE, as the General Public License permits, the exception does
34 * not apply to the code that you add in this way. To avoid misleading
35 * anyone as to the status of such modified files, you must delete
36 * this exception notice from them.
37 *
38 * If you write modifications of your own for GUILE, it is your choice
39 * whether to permit this exception to apply to your modifications.
40 * If you do not wish that, delete this exception notice. */
41
42/* This file is included in vm_engine.c */
43
a98cef7e
KN
44\f
45/*
46 * Basic operations
47 */
48
17e90c5e 49/* This must be the first instruction! */
46cd9a34 50VM_DEFINE_INSTRUCTION (nop, "nop", 0, 0, 0)
a98cef7e
KN
51{
52 NEXT;
53}
54
46cd9a34 55VM_DEFINE_INSTRUCTION (halt, "halt", 0, 0, 0)
a98cef7e 56{
a6df585a 57 SCM ret;
3d5ee0cd 58 vp->time += scm_c_get_internal_run_time () - start_time;
17e90c5e 59 HALT_HOOK ();
a6df585a 60 POP (ret);
17e90c5e
KN
61 FREE_FRAME ();
62 SYNC_ALL ();
63 return ret;
a98cef7e
KN
64}
65
7a0d0cee
KN
66VM_DEFINE_INSTRUCTION (break, "break", 0, 0, 0)
67{
68 BREAK_HOOK ();
69 NEXT;
70}
71
499a4c07 72VM_DEFINE_INSTRUCTION (drop, "drop", 0, 0, 0)
a98cef7e 73{
17e90c5e 74 DROP ();
a98cef7e
KN
75 NEXT;
76}
77
cb4cca12
KN
78VM_DEFINE_INSTRUCTION (mark, "mark", 0, 0, 1)
79{
80 PUSH (SCM_UNDEFINED);
81 NEXT;
82}
83
46cd9a34 84VM_DEFINE_INSTRUCTION (dup, "dup", 0, 0, 1)
26403690 85{
f349065e
KN
86 SCM x = *sp;
87 PUSH (x);
26403690
KN
88 NEXT;
89}
90
17e90c5e
KN
91\f
92/*
93 * Object creation
94 */
a98cef7e 95
46cd9a34 96VM_DEFINE_INSTRUCTION (void, "void", 0, 0, 1)
a98cef7e 97{
17e90c5e 98 PUSH (SCM_UNSPECIFIED);
a98cef7e
KN
99 NEXT;
100}
101
46cd9a34 102VM_DEFINE_INSTRUCTION (make_true, "make-true", 0, 0, 1)
a98cef7e 103{
17e90c5e 104 PUSH (SCM_BOOL_T);
a98cef7e
KN
105 NEXT;
106}
107
46cd9a34 108VM_DEFINE_INSTRUCTION (make_false, "make-false", 0, 0, 1)
a98cef7e 109{
17e90c5e 110 PUSH (SCM_BOOL_F);
a98cef7e
KN
111 NEXT;
112}
113
46cd9a34 114VM_DEFINE_INSTRUCTION (make_eol, "make-eol", 0, 0, 1)
a98cef7e 115{
17e90c5e 116 PUSH (SCM_EOL);
a98cef7e
KN
117 NEXT;
118}
119
46cd9a34 120VM_DEFINE_INSTRUCTION (make_int8, "make-int8", 1, 0, 1)
a98cef7e 121{
2d80426a 122 PUSH (SCM_I_MAKINUM ((signed char) FETCH ()));
a98cef7e
KN
123 NEXT;
124}
125
46cd9a34 126VM_DEFINE_INSTRUCTION (make_int8_0, "make-int8:0", 0, 0, 1)
a98cef7e 127{
238e7a11 128 PUSH (SCM_INUM0);
a98cef7e
KN
129 NEXT;
130}
131
46cd9a34 132VM_DEFINE_INSTRUCTION (make_int8_1, "make-int8:1", 0, 0, 1)
a98cef7e 133{
238e7a11 134 PUSH (SCM_I_MAKINUM (1));
a98cef7e
KN
135 NEXT;
136}
137
46cd9a34 138VM_DEFINE_INSTRUCTION (make_int16, "make-int16", 2, 0, 1)
a98cef7e 139{
ea9b4b29
KN
140 int h = FETCH ();
141 int l = FETCH ();
2d80426a 142 PUSH (SCM_I_MAKINUM ((signed short) (h << 8) + l));
a98cef7e
KN
143 NEXT;
144}
145
46cd9a34 146VM_DEFINE_INSTRUCTION (make_char8, "make-char8", 1, 0, 1)
a98cef7e 147{
17e90c5e 148 PUSH (SCM_MAKE_CHAR (FETCH ()));
a98cef7e
KN
149 NEXT;
150}
151
23b587b0 152VM_DEFINE_INSTRUCTION (list, "list", 2, -1, 1)
cb4cca12 153{
23b587b0
LC
154 unsigned h = FETCH ();
155 unsigned l = FETCH ();
156 unsigned len = ((h << 8) + l);
157 POP_LIST (len);
cb4cca12
KN
158 NEXT;
159}
160
23b587b0 161VM_DEFINE_INSTRUCTION (vector, "vector", 2, -1, 1)
cb4cca12 162{
23b587b0
LC
163 unsigned h = FETCH ();
164 unsigned l = FETCH ();
165 unsigned len = ((h << 8) + l);
166 POP_LIST (len);
cb4cca12
KN
167 *sp = scm_vector (*sp);
168 NEXT;
169}
170
171VM_DEFINE_INSTRUCTION (list_mark, "list-mark", 0, 0, 0)
172{
173 POP_LIST_MARK ();
174 NEXT;
175}
176
177VM_DEFINE_INSTRUCTION (vector_mark, "vector-mark", 0, 0, 0)
178{
179 POP_LIST_MARK ();
180 *sp = scm_vector (*sp);
181 NEXT;
182}
183
184VM_DEFINE_INSTRUCTION (list_break, "list-break", 0, 0, 0)
185{
186 SCM l;
187 POP (l);
188 for (; !SCM_NULLP (l); l = SCM_CDR (l))
189 PUSH (SCM_CAR (l));
190 NEXT;
191}
192
a98cef7e
KN
193\f
194/*
17e90c5e 195 * Variable access
a98cef7e
KN
196 */
197
17e90c5e
KN
198#define OBJECT_REF(i) objects[i]
199#define OBJECT_SET(i,o) objects[i] = o
a98cef7e 200
af988bbf
KN
201#define LOCAL_REF(i) SCM_FRAME_VARIABLE (fp, i)
202#define LOCAL_SET(i,o) SCM_FRAME_VARIABLE (fp, i) = o
a98cef7e 203
2d80426a
LC
204/* For the variable operations, we _must_ obviously avoid function calls to
205 `scm_variable_ref ()', `scm_variable_bound_p ()' and friends which do
206 nothing more than the corresponding macros. */
207#define VARIABLE_REF(v) SCM_VARIABLE_REF (v)
208#define VARIABLE_SET(v,o) SCM_VARIABLE_SET (v, o)
209#define VARIABLE_BOUNDP(v) (VARIABLE_REF (v) != SCM_UNDEFINED)
a98cef7e 210
17e90c5e 211/* ref */
a98cef7e 212
46cd9a34 213VM_DEFINE_INSTRUCTION (object_ref, "object-ref", 1, 0, 1)
a98cef7e 214{
a52b2d3d 215 register unsigned objnum = FETCH ();
0b5f0e49
LC
216 CHECK_OBJECT (objnum);
217 PUSH (OBJECT_REF (objnum));
17e90c5e 218 NEXT;
a98cef7e
KN
219}
220
46cd9a34 221VM_DEFINE_INSTRUCTION (local_ref, "local-ref", 1, 0, 1)
a98cef7e 222{
17e90c5e
KN
223 PUSH (LOCAL_REF (FETCH ()));
224 NEXT;
a98cef7e
KN
225}
226
46cd9a34 227VM_DEFINE_INSTRUCTION (external_ref, "external-ref", 1, 0, 1)
a98cef7e 228{
17e90c5e
KN
229 unsigned int i;
230 SCM e = external;
231 for (i = FETCH (); i; i--)
2a63758b
KN
232 {
233 CHECK_EXTERNAL(e);
234 e = SCM_CDR (e);
235 }
236 CHECK_EXTERNAL(e);
17e90c5e 237 PUSH (SCM_CAR (e));
a98cef7e
KN
238 NEXT;
239}
240
46cd9a34 241VM_DEFINE_INSTRUCTION (variable_ref, "variable-ref", 0, 0, 1)
a98cef7e 242{
17e90c5e 243 SCM x = *sp;
238e7a11 244
2d80426a 245 if (!VARIABLE_BOUNDP (x))
17e90c5e 246 {
238e7a11
LC
247 err_args = SCM_LIST1 (x);
248 /* Was: err_args = SCM_LIST1 (SCM_CAR (x)); */
17e90c5e
KN
249 goto vm_error_unbound;
250 }
238e7a11
LC
251 else
252 {
2d80426a 253 SCM o = VARIABLE_REF (x);
238e7a11
LC
254 *sp = o;
255 }
256
a98cef7e
KN
257 NEXT;
258}
259
9cc649b8
AW
260VM_DEFINE_INSTRUCTION (late_variable_ref, "late-variable-ref", 1, 0, 1)
261{
6297d229
AW
262 unsigned objnum = FETCH ();
263 SCM pair_or_var;
9cc649b8 264 CHECK_OBJECT (objnum);
6297d229 265 pair_or_var = OBJECT_REF (objnum);
9cc649b8 266
6297d229 267 if (!SCM_VARIABLEP (pair_or_var))
9cc649b8 268 {
6287726a 269 SYNC_BEFORE_GC ();
6297d229
AW
270 SCM mod = scm_resolve_module (SCM_CAR (pair_or_var));
271 /* module_lookup might longjmp */
272 pair_or_var = scm_module_lookup (mod, SCM_CDR (pair_or_var));
273 OBJECT_SET (objnum, pair_or_var);
274 if (!VARIABLE_BOUNDP (pair_or_var))
9cc649b8 275 {
6297d229 276 err_args = SCM_LIST1 (pair_or_var);
9cc649b8
AW
277 goto vm_error_unbound;
278 }
279 }
280
6297d229 281 PUSH (VARIABLE_REF (pair_or_var));
9cc649b8
AW
282 NEXT;
283}
284
17e90c5e
KN
285/* set */
286
46cd9a34 287VM_DEFINE_INSTRUCTION (local_set, "local-set", 1, 1, 0)
a98cef7e 288{
17e90c5e
KN
289 LOCAL_SET (FETCH (), *sp);
290 DROP ();
a98cef7e
KN
291 NEXT;
292}
293
46cd9a34 294VM_DEFINE_INSTRUCTION (external_set, "external-set", 1, 1, 0)
a98cef7e 295{
17e90c5e
KN
296 unsigned int i;
297 SCM e = external;
298 for (i = FETCH (); i; i--)
ac02b386
KN
299 {
300 CHECK_EXTERNAL(e);
301 e = SCM_CDR (e);
302 }
303 CHECK_EXTERNAL(e);
17e90c5e
KN
304 SCM_SETCAR (e, *sp);
305 DROP ();
a98cef7e
KN
306 NEXT;
307}
308
46cd9a34 309VM_DEFINE_INSTRUCTION (variable_set, "variable-set", 0, 1, 0)
a98cef7e 310{
2d80426a 311 VARIABLE_SET (sp[0], sp[-1]);
3616e9e9
KN
312 scm_set_object_property_x (sp[-1], scm_sym_name, SCM_CAR (sp[0]));
313 sp -= 2;
a98cef7e
KN
314 NEXT;
315}
316
9cc649b8
AW
317VM_DEFINE_INSTRUCTION (late_variable_set, "late-variable-set", 1, 1, 0)
318{
6297d229
AW
319 unsigned objnum = FETCH ();
320 SCM pair_or_var;
9cc649b8 321 CHECK_OBJECT (objnum);
6297d229 322 pair_or_var = OBJECT_REF (objnum);
9cc649b8 323
6297d229 324 if (!SCM_VARIABLEP (pair_or_var))
9cc649b8 325 {
6287726a 326 SYNC_BEFORE_GC ();
6297d229
AW
327 SCM mod = scm_resolve_module (SCM_CAR (pair_or_var));
328 /* module_lookup might longjmp */
329 pair_or_var = scm_module_lookup (mod, SCM_CDR (pair_or_var));
330 OBJECT_SET (objnum, pair_or_var);
9cc649b8
AW
331 }
332
6297d229 333 VARIABLE_SET (pair_or_var, *sp);
9cc649b8
AW
334 DROP ();
335 NEXT;
336}
337
a98cef7e
KN
338\f
339/*
340 * branch and jump
341 */
342
17e90c5e
KN
343#define BR(p) \
344{ \
41f248a8
KN
345 int h = FETCH (); \
346 int l = FETCH (); \
347 signed short offset = (h << 8) + l; \
17e90c5e
KN
348 if (p) \
349 ip += offset; \
350 DROP (); \
351 NEXT; \
352}
353
41f248a8
KN
354VM_DEFINE_INSTRUCTION (br, "br", 2, 0, 0)
355{
356 int h = FETCH ();
357 int l = FETCH ();
358 ip += (signed short) (h << 8) + l;
359 NEXT;
360}
361
362VM_DEFINE_INSTRUCTION (br_if, "br-if", 2, 0, 0)
a98cef7e 363{
17e90c5e 364 BR (!SCM_FALSEP (*sp));
a98cef7e
KN
365}
366
41f248a8 367VM_DEFINE_INSTRUCTION (br_if_not, "br-if-not", 2, 0, 0)
a98cef7e 368{
17e90c5e 369 BR (SCM_FALSEP (*sp));
a98cef7e
KN
370}
371
41f248a8 372VM_DEFINE_INSTRUCTION (br_if_eq, "br-if-eq", 2, 0, 0)
a98cef7e 373{
17e90c5e 374 BR (SCM_EQ_P (sp[0], sp--[1]));
a98cef7e
KN
375}
376
41f248a8 377VM_DEFINE_INSTRUCTION (br_if_not_eq, "br-if-not-eq", 2, 0, 0)
a98cef7e 378{
17e90c5e
KN
379 BR (!SCM_EQ_P (sp[0], sp--[1]));
380}
381
41f248a8 382VM_DEFINE_INSTRUCTION (br_if_null, "br-if-null", 2, 0, 0)
17e90c5e
KN
383{
384 BR (SCM_NULLP (*sp));
385}
386
41f248a8 387VM_DEFINE_INSTRUCTION (br_if_not_null, "br-if-not-null", 2, 0, 0)
17e90c5e
KN
388{
389 BR (!SCM_NULLP (*sp));
a98cef7e
KN
390}
391
a98cef7e
KN
392\f
393/*
394 * Subprogram call
395 */
396
46cd9a34 397VM_DEFINE_INSTRUCTION (make_closure, "make-closure", 0, 1, 1)
a98cef7e 398{
3d5ee0cd
KN
399 SYNC_BEFORE_GC ();
400 *sp = scm_c_make_closure (*sp, external);
17e90c5e 401 NEXT;
a98cef7e
KN
402}
403
46cd9a34 404VM_DEFINE_INSTRUCTION (call, "call", 1, -1, 1)
a98cef7e 405{
3616e9e9 406 SCM x;
17e90c5e 407 nargs = FETCH ();
a98cef7e
KN
408
409 vm_call:
c8b9df71
KN
410 x = sp[-nargs];
411
a98cef7e
KN
412 /*
413 * Subprogram call
414 */
3616e9e9 415 if (SCM_PROGRAM_P (x))
a98cef7e 416 {
3616e9e9 417 program = x;
3d5ee0cd 418 vm_call_program:
499a4c07 419 CACHE_PROGRAM ();
17e90c5e
KN
420 INIT_ARGS ();
421 NEW_FRAME ();
17e90c5e
KN
422 ENTER_HOOK ();
423 APPLY_HOOK ();
a98cef7e
KN
424 NEXT;
425 }
d507b25f
AW
426#ifdef ENABLE_TRAMPOLINE
427 /* Seems to slow down the fibo test, dunno why */
a98cef7e 428 /*
659b4611
AW
429 * Subr call
430 */
431 switch (nargs)
432 {
433 case 0:
434 {
435 scm_t_trampoline_0 call = scm_trampoline_0 (x);
436 if (call)
437 {
438 SYNC_ALL ();
439 *sp = call (x);
440 NEXT;
441 }
442 break;
443 }
444 case 1:
445 {
446 scm_t_trampoline_1 call = scm_trampoline_1 (x);
447 if (call)
448 {
449 SCM arg1;
450 POP (arg1);
451 SYNC_ALL ();
452 *sp = call (x, arg1);
453 NEXT;
454 }
455 break;
456 }
457 case 2:
458 {
459 scm_t_trampoline_2 call = scm_trampoline_2 (x);
460 if (call)
461 {
462 SCM arg1, arg2;
463 POP (arg2);
464 POP (arg1);
465 SYNC_ALL ();
466 *sp = call (x, arg1, arg2);
467 NEXT;
468 }
469 break;
470 }
471 }
d507b25f 472#endif
659b4611
AW
473 /*
474 * Other interpreted or compiled call
a98cef7e 475 */
3616e9e9 476 if (!SCM_FALSEP (scm_procedure_p (x)))
a98cef7e 477 {
f41cb00c
LC
478 /* At this point, the stack contains the procedure and each one of its
479 arguments. */
f21dfea6 480 SCM args;
17e90c5e 481 POP_LIST (nargs);
f21dfea6 482 POP (args);
1865ad56 483 SYNC_REGISTER ();
f21dfea6 484 *sp = scm_apply (x, args, SCM_EOL);
17e90c5e 485 NEXT;
a98cef7e
KN
486 }
487 /*
488 * Continuation call
489 */
3616e9e9 490 if (SCM_VM_CONT_P (x))
a98cef7e
KN
491 {
492 vm_call_cc:
493 /* Check the number of arguments */
382693fe 494 if (nargs != 1)
3616e9e9 495 scm_wrong_num_args (x);
a98cef7e
KN
496
497 /* Reinstate the continuation */
17e90c5e 498 EXIT_HOOK ();
3616e9e9 499 reinstate_vm_cont (vp, x);
3d5ee0cd 500 CACHE_REGISTER ();
af988bbf 501 program = SCM_FRAME_PROGRAM (fp);
3616e9e9 502 CACHE_PROGRAM ();
a98cef7e
KN
503 NEXT;
504 }
505
66292535 506 program = x;
17e90c5e 507 goto vm_error_wrong_type_apply;
a98cef7e
KN
508}
509
46cd9a34 510VM_DEFINE_INSTRUCTION (tail_call, "tail-call", 1, -1, 1)
a98cef7e 511{
f41cb00c 512 register SCM x;
17e90c5e 513 nargs = FETCH ();
3616e9e9 514 x = sp[-nargs];
17e90c5e
KN
515
516 SCM_TICK; /* allow interrupt here */
a98cef7e
KN
517
518 /*
17e90c5e 519 * Tail recursive call
a98cef7e 520 */
17e90c5e 521 if (SCM_EQ_P (x, program))
a98cef7e 522 {
f21dfea6 523 int i;
17e90c5e
KN
524
525 /* Move arguments */
f21dfea6
KN
526 INIT_ARGS ();
527 sp -= bp->nargs - 1;
528 for (i = 0; i < bp->nargs; i++)
529 LOCAL_SET (i, sp[i]);
f41cb00c
LC
530
531 /* Drop the first argument and the program itself. */
532 sp -= 2;
a98cef7e 533
f21dfea6 534 /* Call itself */
17e90c5e 535 ip = bp->base;
17e90c5e 536 APPLY_HOOK ();
a98cef7e
KN
537 NEXT;
538 }
17e90c5e
KN
539 /*
540 * Proper tail call
541 */
3616e9e9 542 if (SCM_PROGRAM_P (x))
17e90c5e 543 {
17e90c5e
KN
544 EXIT_HOOK ();
545 FREE_FRAME ();
3616e9e9 546 program = x;
3d5ee0cd 547 goto vm_call_program;
17e90c5e 548 }
d507b25f
AW
549#ifdef ENABLE_TRAMPOLINE
550 /* This seems to actually slow down the fibo test -- dunno why */
a98cef7e 551 /*
659b4611
AW
552 * Subr call
553 */
554 switch (nargs)
555 {
556 case 0:
557 {
558 scm_t_trampoline_0 call = scm_trampoline_0 (x);
559 if (call)
560 {
561 SYNC_ALL ();
562 *sp = call (x);
563 goto vm_return;
564 }
565 break;
566 }
567 case 1:
568 {
569 scm_t_trampoline_1 call = scm_trampoline_1 (x);
570 if (call)
571 {
572 SCM arg1;
573 POP (arg1);
574 SYNC_ALL ();
575 *sp = call (x, arg1);
576 goto vm_return;
577 }
578 break;
579 }
580 case 2:
581 {
582 scm_t_trampoline_2 call = scm_trampoline_2 (x);
583 if (call)
584 {
585 SCM arg1, arg2;
586 POP (arg2);
587 POP (arg1);
588 SYNC_ALL ();
589 *sp = call (x, arg1, arg2);
590 goto vm_return;
591 }
592 break;
593 }
594 }
d507b25f 595#endif
659b4611
AW
596
597 /*
598 * Other interpreted or compiled call
a98cef7e 599 */
3616e9e9 600 if (!SCM_FALSEP (scm_procedure_p (x)))
a98cef7e 601 {
f21dfea6 602 SCM args;
17e90c5e 603 POP_LIST (nargs);
f21dfea6 604 POP (args);
1865ad56 605 SYNC_REGISTER ();
f21dfea6 606 *sp = scm_apply (x, args, SCM_EOL);
a98cef7e
KN
607 goto vm_return;
608 }
609 /*
610 * Continuation call
611 */
3616e9e9 612 if (SCM_VM_CONT_P (x))
a98cef7e
KN
613 goto vm_call_cc;
614
66292535 615 program = x;
17e90c5e
KN
616 goto vm_error_wrong_type_apply;
617}
618
3616e9e9
KN
619VM_DEFINE_INSTRUCTION (apply, "apply", 1, -1, 1)
620{
c8b9df71
KN
621 int len;
622 SCM ls;
623 POP (ls);
624
625 nargs = FETCH ();
626 if (nargs < 2)
627 goto vm_error_wrong_num_args;
628
629 len = scm_ilength (ls);
630 if (len < 0)
631 goto vm_error_wrong_type_arg;
632
633 for (; !SCM_NULLP (ls); ls = SCM_CDR (ls))
634 PUSH (SCM_CAR (ls));
635
636 nargs += len - 2;
637 goto vm_call;
3616e9e9
KN
638}
639
46cd9a34 640VM_DEFINE_INSTRUCTION (call_cc, "call/cc", 1, 1, 1)
17e90c5e 641{
3d5ee0cd
KN
642 SYNC_BEFORE_GC ();
643 PUSH (capture_vm_cont (vp));
17e90c5e
KN
644 POP (program);
645 nargs = 1;
646 goto vm_call;
a98cef7e
KN
647}
648
46cd9a34 649VM_DEFINE_INSTRUCTION (return, "return", 0, 0, 1)
a98cef7e 650{
a98cef7e 651 vm_return:
17e90c5e
KN
652 EXIT_HOOK ();
653 RETURN_HOOK ();
654 FREE_FRAME ();
655
15df3447 656 /* Restore the last program */
af988bbf 657 program = SCM_FRAME_PROGRAM (fp);
499a4c07 658 CACHE_PROGRAM ();
af988bbf 659 CACHE_EXTERNAL ();
a98cef7e
KN
660 NEXT;
661}
17e90c5e 662
17e90c5e
KN
663/*
664 Local Variables:
665 c-file-style: "gnu"
666 End:
667*/