[svn:parrot] r39124 - in trunk/src/jit: amd64 hppa i386 ppc skeleton sun4

petdance at svn.parrot.org petdance at svn.parrot.org
Sun May 24 03:27:01 UTC 2009


Author: petdance
Date: Sun May 24 03:26:54 2009
New Revision: 39124
URL: https://trac.parrot.org/parrot/changeset/39124

Log:
macrofied Parrot_jit_init

Modified:
   trunk/src/jit/amd64/jit_defs.c
   trunk/src/jit/amd64/jit_emit.h
   trunk/src/jit/hppa/jit_emit.h
   trunk/src/jit/i386/jit_defs.c
   trunk/src/jit/i386/jit_emit.h
   trunk/src/jit/ppc/jit_emit.h
   trunk/src/jit/skeleton/jit_emit.h
   trunk/src/jit/sun4/jit_emit.h

Modified: trunk/src/jit/amd64/jit_defs.c
==============================================================================
--- trunk/src/jit/amd64/jit_defs.c	Sun May 24 03:08:38 2009	(r39123)
+++ trunk/src/jit/amd64/jit_defs.c	Sun May 24 03:26:54 2009	(r39124)
@@ -1,5 +1,5 @@
 /*
-Copyright (C) 2008, Parrot Foundation.
+Copyright (C) 2008-2009, Parrot Foundation.
 $Id$
 */
 
@@ -352,7 +352,8 @@
     emit_mov_r_mr(jit_info->native_ptr, dst_reg, base_reg, offs);
 }
 
-
+PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
 const jit_arch_info *
 Parrot_jit_init(SHIM_INTERP)
 {

Modified: trunk/src/jit/amd64/jit_emit.h
==============================================================================
--- trunk/src/jit/amd64/jit_emit.h	Sun May 24 03:08:38 2009	(r39123)
+++ trunk/src/jit/amd64/jit_emit.h	Sun May 24 03:26:54 2009	(r39124)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2008, Parrot Foundation.
+ * Copyright (C) 2007-2009, Parrot Foundation.
  */
 
 /*
@@ -902,6 +902,9 @@
         int dst_reg, int base_reg, INTVAL offs);
 void jit_mov_r_mr(Interp *interp, Parrot_jit_info_t *jit_info,
         int dst_reg, int base_reg, INTVAL offs);
+
+PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
 const jit_arch_info * Parrot_jit_init(Interp *interp);
 
 

Modified: trunk/src/jit/hppa/jit_emit.h
==============================================================================
--- trunk/src/jit/hppa/jit_emit.h	Sun May 24 03:08:38 2009	(r39123)
+++ trunk/src/jit/hppa/jit_emit.h	Sun May 24 03:26:54 2009	(r39124)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2004-2007, Parrot Foundation.
+ * Copyright (C) 2004-2009, Parrot Foundation.
  */
 
 /*
@@ -763,6 +763,9 @@
         }
     }
 };
+
+PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
 const jit_arch_info*
 Parrot_jit_init(PARROT_INTERP)
 {

Modified: trunk/src/jit/i386/jit_defs.c
==============================================================================
--- trunk/src/jit/i386/jit_defs.c	Sun May 24 03:08:38 2009	(r39123)
+++ trunk/src/jit/i386/jit_defs.c	Sun May 24 03:26:54 2009	(r39124)
@@ -1,5 +1,5 @@
 /*
-Copyright (C) 2008, Parrot Foundation.
+Copyright (C) 2008-2009, Parrot Foundation.
 $Id$
 */
 
@@ -2529,6 +2529,8 @@
 };
 
 
+PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
 const jit_arch_info *
 Parrot_jit_init(PARROT_INTERP)
 {

Modified: trunk/src/jit/i386/jit_emit.h
==============================================================================
--- trunk/src/jit/i386/jit_emit.h	Sun May 24 03:08:38 2009	(r39123)
+++ trunk/src/jit/i386/jit_emit.h	Sun May 24 03:26:54 2009	(r39124)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2002-2008, Parrot Foundation.
+ * Copyright (C) 2002-2009, Parrot Foundation.
  */
 
 /*
@@ -1897,6 +1897,8 @@
 
 extern const jit_arch_info arch_info;
 
+PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
 const jit_arch_info * Parrot_jit_init(PARROT_INTERP);
 
 #undef INT_REGISTERS_TO_MAP

Modified: trunk/src/jit/ppc/jit_emit.h
==============================================================================
--- trunk/src/jit/ppc/jit_emit.h	Sun May 24 03:08:38 2009	(r39123)
+++ trunk/src/jit/ppc/jit_emit.h	Sun May 24 03:26:54 2009	(r39124)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2002-2008, Parrot Foundation.
+ * Copyright (C) 2002-2009, Parrot Foundation.
  */
 
 /*
@@ -1386,6 +1386,8 @@
 };
 
 
+PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
 const jit_arch_info *
 Parrot_jit_init(PARROT_INTERP)
 {

Modified: trunk/src/jit/skeleton/jit_emit.h
==============================================================================
--- trunk/src/jit/skeleton/jit_emit.h	Sun May 24 03:08:38 2009	(r39123)
+++ trunk/src/jit/skeleton/jit_emit.h	Sun May 24 03:26:54 2009	(r39124)
@@ -353,6 +353,8 @@
  * and finally you need an interface function to return above structure
  */
 
+PARROT_WARN_UNUSED_RESULT
+PARROT_CANNOT_RETURN_NULL
 const jit_arch_info *
 Parrot_jit_init(PARROT_INTERP)
 {

Modified: trunk/src/jit/sun4/jit_emit.h
==============================================================================
--- trunk/src/jit/sun4/jit_emit.h	Sun May 24 03:08:38 2009	(r39123)
+++ trunk/src/jit/sun4/jit_emit.h	Sun May 24 03:26:54 2009	(r39124)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2002-2008, Parrot Foundation.
+ * Copyright (C) 2002-2009, Parrot Foundation.
  */
 
 /*


More information about the parrot-commits mailing list