[project @ 1997-09-03 23:39:12 by sof]
authorsof <unknown>
Wed, 3 Sep 1997 23:39:14 +0000 (23:39 +0000)
committersof <unknown>
Wed, 3 Sep 1997 23:39:14 +0000 (23:39 +0000)
Moved seq vtbl from StgThreads to StgUpdate

ghc/runtime/main/StgThreads.lhc
ghc/runtime/main/StgUpdate.lhc

index 0bff4de..0f9c606 100644 (file)
@@ -505,38 +505,5 @@ vtbl_Underflow[] = {
     (W_) UnderflowVect7
 };
 
-\end{code}
-
-\begin{code}
-
-IFN_(seqDirectReturn) {
-    void *cont;
-
-    FB_
-    RetReg = (StgRetAddr) SpB[BREL(0)];
-    cont = (void *) SpB[BREL(1)];
-    /* SpB += BREL(2); */
-    JMP_(cont);
-    FE_
-}
-
-/*
-   NB: For direct returns to work properly, the name of the routine must be
-   the same as the name of the vector table with vtbl_ removed and DirectReturn
-   appended.  This is all the mangler understands.
- */
-
-const W_
-vtbl_seq[] = {
-    (W_) seqDirectReturn,
-    (W_) seqDirectReturn,
-    (W_) seqDirectReturn,
-    (W_) seqDirectReturn,
-    (W_) seqDirectReturn,
-    (W_) seqDirectReturn,
-    (W_) seqDirectReturn,
-    (W_) seqDirectReturn
-};
-
 #endif /* CONCURRENT */
 \end{code}
index 7d89844..e5c6690 100644 (file)
@@ -293,6 +293,45 @@ vtbl_StdUpdFrame[] = {
 
 %************************************************************************
 %*                                                                     *
+\subsection[seq-update-code]{Update code for seq}
+%*                                                                     *
+%************************************************************************
+
+
+\begin{code}
+
+IFN_(seqDirectReturn) {
+    void *cont;
+
+    FB_
+    RetReg = (StgRetAddr) SpB[BREL(0)];
+    cont = (void *) SpB[BREL(1)];
+    /* SpB += BREL(2); */
+    JMP_(cont);
+    FE_
+}
+
+/*
+   NB: For direct returns to work properly, the name of the routine must be
+   the same as the name of the vector table with vtbl_ removed and DirectReturn
+   appended.  This is all the mangler understands.
+ */
+
+const W_
+vtbl_seq[] = {
+    (W_) seqDirectReturn,
+    (W_) seqDirectReturn,
+    (W_) seqDirectReturn,
+    (W_) seqDirectReturn,
+    (W_) seqDirectReturn,
+    (W_) seqDirectReturn,
+    (W_) seqDirectReturn,
+    (W_) seqDirectReturn
+};
+\end{code}
+
+%************************************************************************
+%*                                                                     *
 \subsection[existing-con-update-code]{Update code for existing constructors}
 %*                                                                     *
 %************************************************************************