Add several new compiled-code entry points with return addresses.
authorChris Hanson <org/chris-hanson/cph>
Sun, 31 May 1987 16:37:51 +0000 (16:37 +0000)
committerChris Hanson <org/chris-hanson/cph>
Sun, 31 May 1987 16:37:51 +0000 (16:37 +0000)
v7/src/microcode/interp.c
v7/src/microcode/returns.h
v7/src/microcode/storage.c
v7/src/microcode/utabmd.scm
v8/src/microcode/interp.c
v8/src/microcode/returns.h
v8/src/microcode/utabmd.scm

index d1110351976025af268ec6c91a0f5a68060ffdb5..e1c3a56fa9afbd5ef056686d9fd1c61ca3083dad 100644 (file)
@@ -30,7 +30,7 @@ Technology nor of any adaptation thereof in any advertising,
 promotional, or sales literature without prior written consent from
 MIT in each case. */
 
-/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/interp.c,v 9.25 1987/05/29 02:23:02 jinx Exp $
+/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/interp.c,v 9.26 1987/05/31 16:36:05 cph Exp $
  *
  * This file contains the heart of the Scheme Scode
  * interpreter
@@ -846,14 +846,15 @@ Pop_Return:
       define_compiler_restart (RC_COMP_REFERENCE_RESTART,
                               comp_reference_restart)
 
-      define_compiler_restart (RC_COMP_ACCESS_RESTART, comp_access_restart)
+      define_compiler_restart (RC_COMP_ACCESS_RESTART,
+                              comp_access_restart)
 
       define_compiler_restart (RC_COMP_UNASSIGNED_P_RESTART,
                               comp_unassigned_p_restart)
 
       define_compiler_restart (RC_COMP_UNBOUND_P_RESTART,
                               comp_unbound_p_restart)
-
+\f
       define_compiler_restart (RC_COMP_ASSIGNMENT_RESTART,
                               comp_assignment_restart)
 
@@ -872,10 +873,20 @@ Pop_Return:
       define_compiler_restart (RC_COMP_ASSIGNMENT_TRAP_RESTART,
                               comp_assignment_trap_restart)
 
-      define_compiler_restart (RC_COMP_UUO_LINK_RESTART, comp_uuo_link_restart)
+      define_compiler_restart (RC_COMP_UUO_LINK_RESTART,
+                              comp_uuo_link_restart)
 
       define_compiler_restart (RC_COMP_UUO_LINK_TRAP_RESTART,
                               comp_uuo_link_trap_restart)
+
+      define_compiler_restart (RC_COMP_CACHE_REFERENCE_APPLY_RESTART,
+                              comp_cache_reference_apply_restart)
+
+      define_compiler_restart (RC_COMP_SAFE_REFERENCE_TRAP_RESTART,
+                              comp_safe_reference_trap_restart)
+
+      define_compiler_restart (RC_COMP_UNASSIGNED_P_TRAP_RESTART,
+                              comp_unassigned_p_trap_restart)
 \f
     case RC_REENTER_COMPILED_CODE:
       compiled_code_restart();
index 20aba1bf7ba342e22a64cfaca9aa29ff3d4534bf..3733428a12ffde7e453fb3e773b760b204fc0374 100644 (file)
@@ -30,7 +30,7 @@ Technology nor of any adaptation thereof in any advertising,
 promotional, or sales literature without prior written consent from
 MIT in each case. */
 
-/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/returns.h,v 9.24 1987/05/28 16:07:35 cph Exp $
+/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/returns.h,v 9.25 1987/05/31 16:37:34 cph Exp $
  *
  * Return codes.  These are placed in Return when an
  * interpreter operation needs to operate in several
@@ -118,7 +118,10 @@ MIT in each case. */
 #define RC_COMP_ASSIGNMENT_TRAP_RESTART 0x54
 #define RC_COMP_UUO_LINK_RESTART        0x55
 #define RC_COMP_UUO_LINK_TRAP_RESTART   0x56
+#define RC_COMP_CACHE_REFERENCE_APPLY_RESTART 0x57
+#define RC_COMP_SAFE_REFERENCE_TRAP_RESTART 0x58
+#define RC_COMP_UNASSIGNED_P_TRAP_RESTART 0x59
 
-#define MAX_RETURN_CODE                        0x56
+#define MAX_RETURN_CODE                        0x59
 
 /* When adding return codes, don't forget to update storage.c too. */
index 69df3ad33dd08d9e2ce9de7f215e1dc426c46f51..781b1d4ccb1540bdd5c5a1fabc4bda07924e4676 100644 (file)
@@ -30,7 +30,7 @@ Technology nor of any adaptation thereof in any advertising,
 promotional, or sales literature without prior written consent from
 MIT in each case. */
 
-/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/storage.c,v 9.32 1987/05/29 02:24:33 jinx Exp $
+/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/storage.c,v 9.33 1987/05/31 16:37:51 cph Exp $
 
 This file defines the storage for global variables for
 the Scheme Interpreter. */
@@ -236,10 +236,13 @@ char *Return_Names[] = {
 /* 0x53 */             "COMPILER_REFERENCE_TRAP_RESTART",
 /* 0x54 */             "COMPILER_ASSIGNMENT_TRAP_RESTART",
 /* 0x55 */             "COMPILER_UUO_LINK_RESTART",
-/* 0x56 */             "COMPILER_UUO_LINK_TRAP_RESTART"
+/* 0x56 */             "COMPILER_UUO_LINK_TRAP_RESTART",
+/* 0x57 */             "COMPILER_CACHE_REFERENCE_APPLY_RESTART",
+/* 0x58 */             "COMPILER_SAFE_REFERENCE_TRAP_RESTART",
+/* 0x59 */             "COMPILER_UNASSIGNED_P_TRAP_RESTART"
 };
 
-#if (MAX_RETURN_CODE != 0x56)
+#if (MAX_RETURN_CODE != 0x59)
 /* Cause an error */
 #include "Returns.h and storage.c are inconsistent -- Names Table"
 #endif
index b0fb66f5209217b78b50c2289e65b84bf0e85436..e9df1f14951f34a233719e597c628116626688d5 100644 (file)
@@ -37,7 +37,7 @@
 
 ;;;; Machine Dependent Type Tables
 
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/utabmd.scm,v 9.30 1987/05/29 17:06:51 cph Exp $
+;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/utabmd.scm,v 9.31 1987/05/31 16:35:22 cph Exp $
 
 (declare (usual-integrations))
 
               COMPILER-ASSIGNMENT-TRAP-RESTART         ;54
               COMPILER-UUO-LINK-RESTART                ;55
               COMPILER-UUO-LINK-TRAP-RESTART           ;56
+              COMPILER-CACHE-REFERENCE-APPLY-RESTART   ;57
+              COMPILER-SAFE-REFERENCE-TRAP-RESTART     ;58
+              COMPILER-UNASSIGNED?-TRAP-RESTART        ;59
               ))
 \f
 ;;; [] Primitives
 
 ;;; This identification string is saved by the system.
 
-"$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/utabmd.scm,v 9.30 1987/05/29 17:06:51 cph Exp $"
+"$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/utabmd.scm,v 9.31 1987/05/31 16:35:22 cph Exp $"
index 2bea20e6befc84de3da8c8ec6fb57d66eb91032a..3e53348bd617dfb533b42a328a6923bd67201702 100644 (file)
@@ -30,7 +30,7 @@ Technology nor of any adaptation thereof in any advertising,
 promotional, or sales literature without prior written consent from
 MIT in each case. */
 
-/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/interp.c,v 9.25 1987/05/29 02:23:02 jinx Exp $
+/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/interp.c,v 9.26 1987/05/31 16:36:05 cph Exp $
  *
  * This file contains the heart of the Scheme Scode
  * interpreter
@@ -846,14 +846,15 @@ Pop_Return:
       define_compiler_restart (RC_COMP_REFERENCE_RESTART,
                               comp_reference_restart)
 
-      define_compiler_restart (RC_COMP_ACCESS_RESTART, comp_access_restart)
+      define_compiler_restart (RC_COMP_ACCESS_RESTART,
+                              comp_access_restart)
 
       define_compiler_restart (RC_COMP_UNASSIGNED_P_RESTART,
                               comp_unassigned_p_restart)
 
       define_compiler_restart (RC_COMP_UNBOUND_P_RESTART,
                               comp_unbound_p_restart)
-
+\f
       define_compiler_restart (RC_COMP_ASSIGNMENT_RESTART,
                               comp_assignment_restart)
 
@@ -872,10 +873,20 @@ Pop_Return:
       define_compiler_restart (RC_COMP_ASSIGNMENT_TRAP_RESTART,
                               comp_assignment_trap_restart)
 
-      define_compiler_restart (RC_COMP_UUO_LINK_RESTART, comp_uuo_link_restart)
+      define_compiler_restart (RC_COMP_UUO_LINK_RESTART,
+                              comp_uuo_link_restart)
 
       define_compiler_restart (RC_COMP_UUO_LINK_TRAP_RESTART,
                               comp_uuo_link_trap_restart)
+
+      define_compiler_restart (RC_COMP_CACHE_REFERENCE_APPLY_RESTART,
+                              comp_cache_reference_apply_restart)
+
+      define_compiler_restart (RC_COMP_SAFE_REFERENCE_TRAP_RESTART,
+                              comp_safe_reference_trap_restart)
+
+      define_compiler_restart (RC_COMP_UNASSIGNED_P_TRAP_RESTART,
+                              comp_unassigned_p_trap_restart)
 \f
     case RC_REENTER_COMPILED_CODE:
       compiled_code_restart();
index 317806b9e8474b6f07c6d7546694da9a343f4082..d90dc88f2a318218fe4eeff674b9abd74ad48098 100644 (file)
@@ -30,7 +30,7 @@ Technology nor of any adaptation thereof in any advertising,
 promotional, or sales literature without prior written consent from
 MIT in each case. */
 
-/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/returns.h,v 9.24 1987/05/28 16:07:35 cph Exp $
+/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/returns.h,v 9.25 1987/05/31 16:37:34 cph Exp $
  *
  * Return codes.  These are placed in Return when an
  * interpreter operation needs to operate in several
@@ -118,7 +118,10 @@ MIT in each case. */
 #define RC_COMP_ASSIGNMENT_TRAP_RESTART 0x54
 #define RC_COMP_UUO_LINK_RESTART        0x55
 #define RC_COMP_UUO_LINK_TRAP_RESTART   0x56
+#define RC_COMP_CACHE_REFERENCE_APPLY_RESTART 0x57
+#define RC_COMP_SAFE_REFERENCE_TRAP_RESTART 0x58
+#define RC_COMP_UNASSIGNED_P_TRAP_RESTART 0x59
 
-#define MAX_RETURN_CODE                        0x56
+#define MAX_RETURN_CODE                        0x59
 
 /* When adding return codes, don't forget to update storage.c too. */
index bdd62ddde3cf51a18eef7cea1b008e913f73f2ab..9563b4e68981afbe478caa1743a54068ca24006a 100644 (file)
@@ -37,7 +37,7 @@
 
 ;;;; Machine Dependent Type Tables
 
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/utabmd.scm,v 9.30 1987/05/29 17:06:51 cph Exp $
+;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/utabmd.scm,v 9.31 1987/05/31 16:35:22 cph Exp $
 
 (declare (usual-integrations))
 
               COMPILER-ASSIGNMENT-TRAP-RESTART         ;54
               COMPILER-UUO-LINK-RESTART                ;55
               COMPILER-UUO-LINK-TRAP-RESTART           ;56
+              COMPILER-CACHE-REFERENCE-APPLY-RESTART   ;57
+              COMPILER-SAFE-REFERENCE-TRAP-RESTART     ;58
+              COMPILER-UNASSIGNED?-TRAP-RESTART        ;59
               ))
 \f
 ;;; [] Primitives
 
 ;;; This identification string is saved by the system.
 
-"$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/utabmd.scm,v 9.30 1987/05/29 17:06:51 cph Exp $"
+"$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/utabmd.scm,v 9.31 1987/05/31 16:35:22 cph Exp $"