1 /* src/vm/builtintable.inc - tables of builtin functions
3 Copyright (C) 1996-2005, 2006 R. Grafl, A. Krall, C. Kruegel,
4 C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5 E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6 J. Wenninger, 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., 51 Franklin Street, Fifth Floor, Boston, MA
25 Contact: cacao@cacaojvm.org
27 Authors: Christian Thalinger
31 $Id: builtintable.inc 5123 2006-07-12 21:45:34Z twisti $
40 #if defined(ENABLE_THREADS)
41 # include "threads/native/lock.h"
44 #include "vm/builtin.h"
45 #include "vm/jit/jit.h"
48 /* internal and not automatically replaced functions **************************/
50 static builtintable_entry builtintable_internal[] = {
52 #if defined(__ALPHA__) || defined(DISABLE_GC)
83 #if !SUPPORT_DIVISION || defined(DISABLE_GC)
100 #if !(SUPPORT_DIVISION && SUPPORT_LONG && SUPPORT_LONG_DIV) || defined(DISABLE_GC)
133 /* internal functions *****************************************************/
138 "(Ljava/lang/Class;)Ljava/lang/Object;",
145 "(ILjava/lang/Class;)[Ljava/lang/Object;",
151 BUILTIN_newarray_boolean,
158 BUILTIN_newarray_byte,
165 BUILTIN_newarray_char,
172 BUILTIN_newarray_short,
179 BUILTIN_newarray_int,
186 BUILTIN_newarray_long,
193 BUILTIN_newarray_float,
200 BUILTIN_newarray_double,
207 BUILTIN_arraycheckcast,
208 "([Ljava/lang/Object;[Ljava/lang/Object;)[Ljava/lang/Object;",
214 BUILTIN_arrayinstanceof,
215 "([Ljava/lang/Object;[Ljava/lang/Object;)I",
222 "([Ljava/lang/Object;Ljava/lang/Object;)I",
227 #if defined(ENABLE_THREADS)
231 "(Ljava/lang/Object;)V",
238 "(Ljava/lang/Object;)V",
246 /* automatically replaced functions *******************************************/
248 static builtintable_entry builtintable_automatic[] = {
250 #if !(SUPPORT_LONG && SUPPORT_LONG_CMP)
260 #if !(SUPPORT_LONG && SUPPORT_LONG_LOGICAL)
282 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_LOGICAL) */
284 #if !(SUPPORT_LONG && SUPPORT_LONG_SHIFT)
306 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_SHIFT) */
308 #if !(SUPPORT_LONG && SUPPORT_LONG_ADD)
330 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_ADD) */
332 #if !(SUPPORT_LONG && SUPPORT_LONG_MUL)
342 #if !(SUPPORT_FLOAT && SUPPORT_I2F)
352 #if !(SUPPORT_DOUBLE && SUPPORT_I2D)
362 #if !(SUPPORT_LONG && SUPPORT_FLOAT && SUPPORT_L2F)
372 #if !(SUPPORT_LONG && SUPPORT_DOUBLE && SUPPORT_L2D)
382 #if !(SUPPORT_FLOAT && SUPPORT_F2I)
392 #if !(SUPPORT_FLOAT && SUPPORT_LONG && SUPPORT_F2L)
402 #if !(SUPPORT_DOUBLE && SUPPORT_D2I)
412 #if !(SUPPORT_DOUBLE && SUPPORT_LONG && SUPPORT_D2L)
423 /* float functions ********************************************************/
475 #endif /* !SUPPORT_FLOAT */
478 /* double functions *******************************************************/
530 #endif /* !SUPPORT_DOUBLE */
533 /* float/double functions *************************************************/
535 #if !(SUPPORT_FLOAT && SUPPORT_DOUBLE)
550 #endif /* !(SUPPORT_FLOAT && SUPPORT_DOUBLE) */
553 /* prevent a compiler warning if everything is supported (e.g. i386) */
566 * These are local overrides for various environment variables in Emacs.
567 * Please do not remove this and leave it at the end of the file, where
568 * Emacs will automagically detect them.
569 * ---------------------------------------------------------------------
572 * indent-tabs-mode: t