1 /* src/vm/builtintable.inc - tables of builtin functions
3 Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
4 R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
5 C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
6 Institut f. Computersprachen - TU Wien
8 This file is part of CACAO.
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License as
12 published by the Free Software Foundation; either version 2, or (at
13 your option) any later version.
15 This program is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25 Contact: cacao@complang.tuwien.ac.at
27 Authors: Christian Thalinger
31 $Id: builtintable.inc 4167 2006-01-12 21:55:07Z twisti $
38 #include "vm/builtin.h"
39 #include "vm/jit/jit.h"
42 /* internal and not automatically replaced functions **************************/
44 static builtintable_entry builtintable_internal[] = {
46 #if defined(__ALPHA__) || defined(DISABLE_GC)
77 #if !SUPPORT_DIVISION || defined(DISABLE_GC)
94 #if !(SUPPORT_DIVISION && SUPPORT_LONG && SUPPORT_LONG_DIV) || defined(DISABLE_GC)
127 /* internal functions *****************************************************/
132 "(Ljava/lang/Class;)Ljava/lang/Object;",
139 "(ILjava/lang/Class;)[Ljava/lang/Object;",
145 BUILTIN_newarray_boolean,
152 BUILTIN_newarray_byte,
159 BUILTIN_newarray_char,
166 BUILTIN_newarray_short,
173 BUILTIN_newarray_int,
180 BUILTIN_newarray_long,
187 BUILTIN_newarray_float,
194 BUILTIN_newarray_double,
201 BUILTIN_arraycheckcast,
202 "([Ljava/lang/Object;[Ljava/lang/Object;)[Ljava/lang/Object;",
208 BUILTIN_arrayinstanceof,
209 "([Ljava/lang/Object;[Ljava/lang/Object;)I",
216 "([Ljava/lang/Object;Ljava/lang/Object;)I",
221 #if defined(USE_THREADS)
224 BUILTIN_monitorenter,
225 "(Ljava/lang/Object;)V",
232 "(Ljava/lang/Object;)V",
240 /* automatically replaced functions *******************************************/
242 static builtintable_entry builtintable_automatic[] = {
244 #if !(SUPPORT_LONG && SUPPORT_LONG_CMP)
254 #if !(SUPPORT_LONG && SUPPORT_LONG_LOGICAL)
276 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_LOGICAL) */
278 #if !(SUPPORT_LONG && SUPPORT_LONG_SHIFT)
300 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_SHIFT) */
302 #if !(SUPPORT_LONG && SUPPORT_LONG_ADD)
324 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_ADD) */
326 #if !(SUPPORT_LONG && SUPPORT_LONG_MUL)
336 #if !(SUPPORT_FLOAT && SUPPORT_I2F)
346 #if !(SUPPORT_DOUBLE && SUPPORT_I2D)
356 #if !(SUPPORT_LONG && SUPPORT_FLOAT && SUPPORT_L2F)
366 #if !(SUPPORT_LONG && SUPPORT_DOUBLE && SUPPORT_L2D)
376 #if !(SUPPORT_FLOAT && SUPPORT_F2I)
386 #if !(SUPPORT_FLOAT && SUPPORT_LONG && SUPPORT_F2L)
396 #if !(SUPPORT_DOUBLE && SUPPORT_D2I)
406 #if !(SUPPORT_DOUBLE && SUPPORT_LONG && SUPPORT_D2L)
417 /* float functions ********************************************************/
469 #endif /* !SUPPORT_FLOAT */
472 /* double functions *******************************************************/
524 #endif /* !SUPPORT_DOUBLE */
527 /* float/double functions *************************************************/
529 #if !(SUPPORT_FLOAT && SUPPORT_DOUBLE)
544 #endif /* !(SUPPORT_FLOAT && SUPPORT_DOUBLE) */
547 /* prevent a compiler warning if everything is supported (e.g. i386) */
560 * These are local overrides for various environment variables in Emacs.
561 * Please do not remove this and leave it at the end of the file, where
562 * Emacs will automagically detect them.
563 * ---------------------------------------------------------------------
566 * indent-tabs-mode: t