|
From: Brenda L. <asp...@us...> - 2003-05-13 22:13:05
|
Update of /cvsroot/squeak/squeak/platforms/unix/vm
In directory sc8-pr-cvs1:/tmp/cvs-serv15901
Modified Files:
Tag: ian-branch
sqGnu.h
Log Message:
Ian Piumarta's release 3.5-1devel
Index: sqGnu.h
===================================================================
RCS file: /cvsroot/squeak/squeak/platforms/unix/vm/sqGnu.h,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** sqGnu.h 12 May 2003 07:00:36 -0000 1.1.2.1
--- sqGnu.h 13 May 2003 22:13:02 -0000 1.1.2.2
***************
*** 5,8 ****
--- 5,12 ----
* All rights reserved.
*
+ * You are NOT ALLOWED to distribute modified versions of this file
+ * under its original name. If you want to modify it and then make
+ * your modifications available publicly, rename the file first.
+ *
* This file is part of Unix Squeak.
*
***************
*** 13,17 ****
* You may use and/or distribute this file ONLY as part of Squeak, under
* the terms of the Squeak License as described in `LICENSE' in the base of
! * this distribution, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
--- 17,21 ----
* You may use and/or distribute this file ONLY as part of Squeak, under
* the terms of the Squeak License as described in `LICENSE' in the base of
! * this distribution, subject to the following additional restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
***************
*** 21,38 ****
* would be appreciated but is not required.
*
! * 2. This notice must not be removed or altered in any source distribution.
*
* Using (or modifying this file for use) in any context other than Squeak
* changes these copyright conditions. Read the file `COPYING' in the
* directory `platforms/unix/doc' before proceeding with any such use.
- *
- * You are not allowed to distribute a modified version of this file
- * under its original name without explicit permission to do so. If
- * you change it, rename it.
*/
/* Author: Ian...@in...
*
! * Last edited: 2002-07-17 23:13:49 by piumarta on emilia.inria.fr
*
* NOTES:
--- 25,41 ----
* would be appreciated but is not required.
*
! * 2. You must not distribute (or make publicly available by any
! * means) a modified copy of this file unless you first rename it.
! *
! * 3. This notice must not be removed or altered in any source distribution.
*
* Using (or modifying this file for use) in any context other than Squeak
* changes these copyright conditions. Read the file `COPYING' in the
* directory `platforms/unix/doc' before proceeding with any such use.
*/
/* Author: Ian...@in...
*
! * Last edited: 2003-02-11 05:08:36 by piumarta on emilia.inria.fr
*
* NOTES:
***************
*** 42,48 ****
#include "sq.h"
! #define CASE(N) case N: _##N:
! #define BREAK goto *jumpTablePtr[currentBytecode]
#define PRIM_DISPATCH goto *jumpTable[primitiveIndex]
#define JUMP_TABLE \
static void *jumpTable[256]= { \
--- 45,60 ----
#include "sq.h"
! #define CASE(N) case N: _##N:
!
! #if defined(__powerpc__) || defined(PPC) || defined(_POWER) || defined(_IBMR2) || defined(__ppc__)
! # define JUMP_TABLE_PTR ; register void **jumpTableP JP_REG; jumpTableP= &jumpTable[0]
! # define BREAK goto *jumpTableP[currentBytecode]
! #else
! # define JUMP_TABLE_PTR
! # define BREAK goto *jumpTable[currentBytecode]
! #endif
!
#define PRIM_DISPATCH goto *jumpTable[primitiveIndex]
+
#define JUMP_TABLE \
static void *jumpTable[256]= { \
***************
*** 73,77 ****
&&_240, &&_241, &&_242, &&_243, &&_244, &&_245, &&_246, &&_247, &&_248, &&_249, \
&&_250, &&_251, &&_252, &&_253, &&_254, &&_255 \
! }
#define PRIM_TABLE \
--- 85,89 ----
&&_240, &&_241, &&_242, &&_243, &&_244, &&_245, &&_246, &&_247, &&_248, &&_249, \
&&_250, &&_251, &&_252, &&_253, &&_254, &&_255 \
! } JUMP_TABLE_PTR
#define PRIM_TABLE \
***************
*** 179,183 ****
# endif
#endif
! #if defined(__powerpc__) || defined(PPC) || defined(_POWER) || defined(_IBMR2)
# define JP_REG asm("25")
# define IP_REG asm("26")
--- 191,196 ----
# endif
#endif
! #if defined(__powerpc__) || defined(PPC) || defined(_POWER) || defined(_IBMR2) || defined(__ppc__)
! # define GP_REG asm("24")
# define JP_REG asm("25")
# define IP_REG asm("26")
|