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 4130 2006-01-10 21:58:12Z 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",
239 /* assembler code patching functions **************************************/
243 PATCHER_builtin_arraycheckcast,
244 "([Ljava/lang/Class;[Ljava/lang/Class;)[Ljava/lang/Object;",
245 "arraycheckcast (NOT RESOLVED)",
251 /* automatically replaced functions *******************************************/
253 static builtintable_entry builtintable_automatic[] = {
255 #if !(SUPPORT_LONG && SUPPORT_LONG_CMP)
265 #if !(SUPPORT_LONG && SUPPORT_LONG_LOGICAL)
287 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_LOGICAL) */
289 #if !(SUPPORT_LONG && SUPPORT_LONG_SHIFT)
311 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_SHIFT) */
313 #if !(SUPPORT_LONG && SUPPORT_LONG_ADD)
335 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_ADD) */
337 #if !(SUPPORT_LONG && SUPPORT_LONG_MUL)
347 #if !(SUPPORT_FLOAT && SUPPORT_I2F)
357 #if !(SUPPORT_DOUBLE && SUPPORT_I2D)
367 #if !(SUPPORT_LONG && SUPPORT_FLOAT && SUPPORT_L2F)
377 #if !(SUPPORT_LONG && SUPPORT_DOUBLE && SUPPORT_L2D)
387 #if !(SUPPORT_FLOAT && SUPPORT_F2I)
397 #if !(SUPPORT_FLOAT && SUPPORT_LONG && SUPPORT_F2L)
407 #if !(SUPPORT_DOUBLE && SUPPORT_D2I)
417 #if !(SUPPORT_DOUBLE && SUPPORT_LONG && SUPPORT_D2L)
428 /* float functions ********************************************************/
480 #endif /* !SUPPORT_FLOAT */
483 /* double functions *******************************************************/
535 #endif /* !SUPPORT_DOUBLE */
538 /* float/double functions *************************************************/
540 #if !(SUPPORT_FLOAT && SUPPORT_DOUBLE)
555 #endif /* !(SUPPORT_FLOAT && SUPPORT_DOUBLE) */
558 /* prevent a compiler warning if everything is supported (e.g. i386) */
571 * These are local overrides for various environment variables in Emacs.
572 * Please do not remove this and leave it at the end of the file, where
573 * Emacs will automagically detect them.
574 * ---------------------------------------------------------------------
577 * indent-tabs-mode: t