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 3001 2005-07-12 16:01:56Z 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__)
94 #if !(SUPPORT_DIVISION && SUPPORT_LONG && SUPPORT_LONG_DIV)
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 **************************************/
244 "(Ljava/lang/Class;)Ljava/lang/Object;",
245 "new (NOT RESOLVED)",
250 PATCHER_builtin_newarray,
251 "(ILjava/lang/Class;)[Ljava/lang/Object;",
252 "newarray (NOT RESOLVED)",
257 PATCHER_builtin_arraycheckcast,
258 "([Ljava/lang/Class;[Ljava/lang/Class;)[Ljava/lang/Object;",
259 "arraycheckcast (NOT RESOLVED)",
264 PATCHER_builtin_arrayinstanceof,
265 "([Ljava/lang/Class;[Ljava/lang/Class;)I",
266 "arrayinstanceof (NOT RESOLVED)",
272 /* automatically replaced functions *******************************************/
274 static builtintable_entry builtintable_automatic[] = {
276 #if !(SUPPORT_LONG && SUPPORT_LONG_CMP)
286 #if !(SUPPORT_LONG && SUPPORT_LONG_LOGICAL)
308 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_LOGICAL) */
310 #if !(SUPPORT_LONG && SUPPORT_LONG_SHIFT)
332 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_SHIFT) */
334 #if !(SUPPORT_LONG && SUPPORT_LONG_ADD)
356 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_ADD) */
358 #if !(SUPPORT_LONG && SUPPORT_LONG_MUL)
368 #if !(SUPPORT_FLOAT && SUPPORT_IFCVT)
378 #if !(SUPPORT_DOUBLE && SUPPORT_IFCVT)
388 #if !(SUPPORT_FLOAT && SUPPORT_FICVT)
398 #if !(SUPPORT_DOUBLE && SUPPORT_FICVT)
408 #if !(SUPPORT_LONG && SUPPORT_FLOAT && SUPPORT_LONG_FCVT)
418 #if !(SUPPORT_LONG && SUPPORT_DOUBLE && SUPPORT_LONG_FCVT)
428 #if !(SUPPORT_FLOAT && SUPPORT_LONG && SUPPORT_LONG_ICVT)
438 #if !(SUPPORT_DOUBLE && SUPPORT_LONG && SUPPORT_LONG_ICVT)
449 /* float functions ********************************************************/
501 #endif /* !SUPPORT_FLOAT */
504 /* double functions *******************************************************/
556 #endif /* !SUPPORT_DOUBLE */
559 /* float/double functions *************************************************/
561 #if !(SUPPORT_FLOAT && SUPPORT_DOUBLE)
576 #endif /* !(SUPPORT_FLOAT && SUPPORT_DOUBLE) */
579 /* prevent a compiler warning if everything is supported (e.g. i386) */
592 * These are local overrides for various environment variables in Emacs.
593 * Please do not remove this and leave it at the end of the file, where
594 * Emacs will automagically detect them.
595 * ---------------------------------------------------------------------
598 * indent-tabs-mode: t