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 5251 2006-08-18 13:01:00Z 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)
103 #if !SUPPORT_DIVISION || defined(DISABLE_GC)
130 #if !(SUPPORT_DIVISION && SUPPORT_LONG && SUPPORT_LONG_DIV) || defined(DISABLE_GC)
183 /* internal functions *****************************************************/
190 "(Ljava/lang/Class;)Ljava/lang/Object;",
202 "(ILjava/lang/Class;)[Ljava/lang/Object;",
211 BUILTIN_newarray_boolean,
223 BUILTIN_newarray_byte,
235 BUILTIN_newarray_char,
247 BUILTIN_newarray_short,
259 BUILTIN_newarray_int,
271 BUILTIN_newarray_long,
283 BUILTIN_newarray_float,
295 BUILTIN_newarray_double,
307 BUILTIN_arraycheckcast,
310 "([Ljava/lang/Object;[Ljava/lang/Object;)[Ljava/lang/Object;",
319 BUILTIN_arrayinstanceof,
322 "([Ljava/lang/Object;[Ljava/lang/Object;)I",
334 "([Ljava/lang/Object;Ljava/lang/Object;)I",
342 #if defined(ENABLE_THREADS)
348 "(Ljava/lang/Object;)V",
360 "(Ljava/lang/Object;)V",
387 /* automatically replaced functions *******************************************/
389 static builtintable_entry builtintable_automatic[] = {
391 #if !(SUPPORT_LONG && SUPPORT_LONG_CMP)
406 #if !(SUPPORT_LONG && SUPPORT_LONG_LOGICAL)
443 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_LOGICAL) */
445 #if !(SUPPORT_LONG && SUPPORT_LONG_SHIFT)
482 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_SHIFT) */
484 #if !(SUPPORT_LONG && SUPPORT_LONG_ADD)
521 #endif /* !(SUPPORT_LONG && SUPPORT_LONG_ADD) */
523 #if !(SUPPORT_LONG && SUPPORT_LONG_MUL)
538 #if !(SUPPORT_FLOAT && SUPPORT_I2F)
553 #if !(SUPPORT_DOUBLE && SUPPORT_I2D)
568 #if !(SUPPORT_LONG && SUPPORT_FLOAT && SUPPORT_L2F)
583 #if !(SUPPORT_LONG && SUPPORT_DOUBLE && SUPPORT_L2D)
598 #if !(SUPPORT_FLOAT && SUPPORT_F2I)
613 #if !(SUPPORT_FLOAT && SUPPORT_LONG && SUPPORT_F2L)
628 #if !(SUPPORT_DOUBLE && SUPPORT_D2I)
643 #if !(SUPPORT_DOUBLE && SUPPORT_LONG && SUPPORT_D2L)
659 /* float functions ********************************************************/
746 #endif /* !SUPPORT_FLOAT */
749 /* double functions *******************************************************/
836 #endif /* !SUPPORT_DOUBLE */
839 /* float/double functions *************************************************/
841 #if !(SUPPORT_FLOAT && SUPPORT_DOUBLE)
866 #endif /* !(SUPPORT_FLOAT && SUPPORT_DOUBLE) */
869 /* prevent a compiler warning if everything is supported (e.g. i386) */
886 /* automatically replaced functions *******************************************/
888 static builtintable_entry builtintable_function[] = {
890 /* java.lang.VMSystem.arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V STATIC NATIVE */
895 "java/lang/VMSystem",
897 "(Ljava/lang/Object;ILjava/lang/Object;II)V",
905 /* java.lang.System.arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V PUBLIC STATIC */
908 /* We disable this one until we have a fix for the stacktrace
916 "(Ljava/lang/Object;ILjava/lang/Object;II)V",
925 /* java.lang.VMSystem.currentTimeMillis()J PUBLIC STATIC */
929 BUILTIN_currenttimemillis,
930 "java/lang/VMSystem",
940 /* java.lang.System.currentTimeMillis()J PUBLIC STATIC */
944 BUILTIN_currenttimemillis,
973 * These are local overrides for various environment variables in Emacs.
974 * Please do not remove this and leave it at the end of the file, where
975 * Emacs will automagically detect them.
976 * ---------------------------------------------------------------------
979 * indent-tabs-mode: t