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 2772 2005-06-22 09:24:37Z 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__)
95 #if !(SUPPORT_DIVISION && SUPPORT_LONG && SUPPORT_LONG_DIV)
128 /* internal functions *****************************************************/
133 "(Ljava/lang/Class;)Ljava/lang/Object;",
140 "(ILjava/lang/Class;)[Ljava/lang/Object;",
146 BUILTIN_newarray_boolean,
153 BUILTIN_newarray_byte,
160 BUILTIN_newarray_char,
167 BUILTIN_newarray_short,
174 BUILTIN_newarray_int,
181 BUILTIN_newarray_long,
188 BUILTIN_newarray_float,
195 BUILTIN_newarray_double,
202 BUILTIN_arraycheckcast,
203 "([Ljava/lang/Object;[Ljava/lang/Object;)[Ljava/lang/Object;",
209 BUILTIN_arrayinstanceof,
210 "([Ljava/lang/Object;[Ljava/lang/Object;)I",
217 "([Ljava/lang/Object;ILjava/lang/Object;)V",
222 #if defined(USE_THREADS)
225 BUILTIN_monitorenter,
226 "(Ljava/lang/Object;)V",
233 "(Ljava/lang/Object;)V",
240 /* assembler code patching functions **************************************/
245 "(Ljava/lang/Class;)Ljava/lang/Object;",
246 "new (NOT RESOLVED)",
251 PATCHER_builtin_newarray,
252 "(ILjava/lang/Class;)[Ljava/lang/Object;",
253 "newarray (NOT RESOLVED)",
258 PATCHER_builtin_arraycheckcast,
259 "([Ljava/lang/Class;[Ljava/lang/Class;)[Ljava/lang/Object;",
260 "arraycheckcast (NOT RESOLVED)",
265 PATCHER_builtin_arrayinstanceof,
266 "([Ljava/lang/Class;[Ljava/lang/Class;)I",
267 "arrayinstanceof (NOT RESOLVED)",
273 /* automatically replaced functions *******************************************/
275 static builtintable_entry builtintable_automatic[] = {
277 #if !(SUPPORT_LONG && SUPPORT_LONG_CMP)
287 #if !(SUPPORT_LONG && SUPPORT_LONG_LOGICAL)
309 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_LOGICAL) */
311 #if !(SUPPORT_LONG && SUPPORT_LONG_SHIFT)
333 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_SHIFT) */
335 #if !(SUPPORT_LONG && SUPPORT_LONG_ADD)
357 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_ADD) */
359 #if !(SUPPORT_LONG && SUPPORT_LONG_MUL)
369 #if !(SUPPORT_FLOAT && SUPPORT_IFCVT)
379 #if !(SUPPORT_DOUBLE && SUPPORT_IFCVT)
389 #if !(SUPPORT_FLOAT && SUPPORT_FICVT)
399 #if !(SUPPORT_DOUBLE && SUPPORT_FICVT)
409 #if !(SUPPORT_LONG && SUPPORT_FLOAT && SUPPORT_LONG_FCVT)
419 #if !(SUPPORT_LONG && SUPPORT_DOUBLE && SUPPORT_LONG_FCVT)
429 #if !(SUPPORT_FLOAT && SUPPORT_LONG && SUPPORT_LONG_ICVT)
439 #if !(SUPPORT_DOUBLE && SUPPORT_LONG && SUPPORT_LONG_ICVT)
450 /* float functions ********************************************************/
502 #endif /* !SUPPORT_FLOAT */
505 /* double functions *******************************************************/
557 #endif /* !SUPPORT_DOUBLE */
560 /* float/double functions *************************************************/
562 #if !(SUPPORT_FLOAT && SUPPORT_DOUBLE)
577 #endif /* !(SUPPORT_FLOAT && SUPPORT_DOUBLE) */
580 /* prevent a compiler warning if everything is supported (e.g. i386) */
593 * These are local overrides for various environment variables in Emacs.
594 * Please do not remove this and leave it at the end of the file, where
595 * Emacs will automagically detect them.
596 * ---------------------------------------------------------------------
599 * indent-tabs-mode: t