hotspot/src/cpu/zero/vm/jni_zero.h
author coleenp
Tue, 13 Oct 2015 18:13:34 -0400
changeset 37480 291ee208fb72
parent 22234 da823d78ad65
permissions -rw-r--r--
8132051: Better byte behavior Reviewed-by: bdelsart, roland, kvn, jrose, ahgross Contributed-by: coleen.phillimore@oracle.com, roland.westerlin@oracle.com, vladimir.kozlov@oracle.com, john.r.rose@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
     1
/*
22234
da823d78ad65 8029233: Update copyright year to match last edit in jdk8 hotspot repository for 2013
mikael
parents: 17312
diff changeset
     2
 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
     3
 * Copyright 2009 Red Hat, Inc.
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
     4
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
     5
 *
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
     6
 * This code is free software; you can redistribute it and/or modify it
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
     7
 * under the terms of the GNU General Public License version 2 only, as
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4013
diff changeset
     8
 * published by the Free Software Foundation.  Oracle designates this
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
     9
 * particular file as subject to the "Classpath" exception as provided
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4013
diff changeset
    10
 * by Oracle in the LICENSE file that accompanied this code.
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    11
 *
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    12
 * This code is distributed in the hope that it will be useful, but WITHOUT
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    13
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    14
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    15
 * version 2 for more details (a copy is included in the LICENSE file that
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    16
 * accompanied this code).
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    17
 *
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    18
 * You should have received a copy of the GNU General Public License version
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    19
 * 2 along with this work; if not, write to the Free Software Foundation,
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    20
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    21
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4013
diff changeset
    22
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4013
diff changeset
    23
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4013
diff changeset
    24
 * questions.
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    25
 */
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    26
8106
19106a0203fb 6588413: Use -fvisibility=hidden for gcc compiles
coleenp
parents: 7397
diff changeset
    27
17312
847072c96771 8009729: Refix hotspot jni_<cpu>.h JNIEXPORT and JNIIMPORT definitions to match jdk version
emc
parents: 8921
diff changeset
    28
847072c96771 8009729: Refix hotspot jni_<cpu>.h JNIEXPORT and JNIIMPORT definitions to match jdk version
emc
parents: 8921
diff changeset
    29
// Note: please do not change these without also changing jni_md.h in the JDK
847072c96771 8009729: Refix hotspot jni_<cpu>.h JNIEXPORT and JNIIMPORT definitions to match jdk version
emc
parents: 8921
diff changeset
    30
// repository
847072c96771 8009729: Refix hotspot jni_<cpu>.h JNIEXPORT and JNIIMPORT definitions to match jdk version
emc
parents: 8921
diff changeset
    31
#ifndef __has_attribute
847072c96771 8009729: Refix hotspot jni_<cpu>.h JNIEXPORT and JNIIMPORT definitions to match jdk version
emc
parents: 8921
diff changeset
    32
  #define __has_attribute(x) 0
847072c96771 8009729: Refix hotspot jni_<cpu>.h JNIEXPORT and JNIIMPORT definitions to match jdk version
emc
parents: 8921
diff changeset
    33
#endif
847072c96771 8009729: Refix hotspot jni_<cpu>.h JNIEXPORT and JNIIMPORT definitions to match jdk version
emc
parents: 8921
diff changeset
    34
#if (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2))) || __has_attribute(visibility)
8106
19106a0203fb 6588413: Use -fvisibility=hidden for gcc compiles
coleenp
parents: 7397
diff changeset
    35
  #define JNIEXPORT     __attribute__((visibility("default")))
19106a0203fb 6588413: Use -fvisibility=hidden for gcc compiles
coleenp
parents: 7397
diff changeset
    36
  #define JNIIMPORT     __attribute__((visibility("default")))
19106a0203fb 6588413: Use -fvisibility=hidden for gcc compiles
coleenp
parents: 7397
diff changeset
    37
#else
19106a0203fb 6588413: Use -fvisibility=hidden for gcc compiles
coleenp
parents: 7397
diff changeset
    38
  #define JNIEXPORT
19106a0203fb 6588413: Use -fvisibility=hidden for gcc compiles
coleenp
parents: 7397
diff changeset
    39
  #define JNIIMPORT
19106a0203fb 6588413: Use -fvisibility=hidden for gcc compiles
coleenp
parents: 7397
diff changeset
    40
#endif
4013
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    41
#define JNICALL
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    42
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    43
typedef int jint;
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    44
typedef signed char jbyte;
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    45
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    46
#ifdef _LP64
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    47
typedef long jlong;
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    48
#else
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    49
typedef long long jlong;
b154310845de 6890308: integrate zero assembler hotspot changes
never
parents:
diff changeset
    50
#endif