make/launcher/Launcher-jdk.aot.gmk
author iklam
Wed, 14 Feb 2018 06:57:28 -0800
changeset 48972 e9b007212236
parent 47216 71c04702a3d5
child 50104 4ea7917929b9
permissions -rw-r--r--
8197857: fieldDescriptor prints incorrect 32-bit representation of compressed oops Reviewed-by: coleenp
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
42757
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
     1
#
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
     2
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
     4
#
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    10
#
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    15
# accompanied this code).
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    16
#
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    20
#
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    23
# questions.
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    24
#
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    25
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    26
include LauncherCommon.gmk
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    27
44852
82cacb64e969 8177845: Need a mechanism to load Graal
dnsimon
parents: 42757
diff changeset
    28
# The JVMCI exports are needed since JVMCI is normally dynamically exported
82cacb64e969 8177845: Need a mechanism to load Graal
dnsimon
parents: 42757
diff changeset
    29
# (see jdk.vm.ci.services.internal.ReflectionAccessJDK::openJVMCITo).
82cacb64e969 8177845: Need a mechanism to load Graal
dnsimon
parents: 42757
diff changeset
    30
42757
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    31
$(eval $(call SetupBuildLauncher, jaotc, \
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    32
    MAIN_CLASS := jdk.tools.jaotc.Main, \
45463
d9325138bac6 8180334: Unable to build jaotc launcher on windows
ksrini
parents: 44852
diff changeset
    33
    EXTRA_JAVA_ARGS := -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI \
44852
82cacb64e969 8177845: Need a mechanism to load Graal
dnsimon
parents: 42757
diff changeset
    34
        --add-exports=jdk.internal.vm.ci/jdk.vm.ci.aarch64=$(call CommaList, jdk.internal.vm.compiler  jdk.aot) \
82cacb64e969 8177845: Need a mechanism to load Graal
dnsimon
parents: 42757
diff changeset
    35
        --add-exports=jdk.internal.vm.ci/jdk.vm.ci.amd64=$(call CommaList, jdk.internal.vm.compiler  jdk.aot) \
82cacb64e969 8177845: Need a mechanism to load Graal
dnsimon
parents: 42757
diff changeset
    36
        --add-exports=jdk.internal.vm.ci/jdk.vm.ci.code=$(call CommaList, jdk.internal.vm.compiler  jdk.aot) \
82cacb64e969 8177845: Need a mechanism to load Graal
dnsimon
parents: 42757
diff changeset
    37
        --add-exports=jdk.internal.vm.ci/jdk.vm.ci.code.site=$(call CommaList, jdk.internal.vm.compiler  jdk.aot) \
82cacb64e969 8177845: Need a mechanism to load Graal
dnsimon
parents: 42757
diff changeset
    38
        --add-exports=jdk.internal.vm.ci/jdk.vm.ci.code.stack=$(call CommaList, jdk.internal.vm.compiler  jdk.aot) \
82cacb64e969 8177845: Need a mechanism to load Graal
dnsimon
parents: 42757
diff changeset
    39
        --add-exports=jdk.internal.vm.ci/jdk.vm.ci.common=$(call CommaList, jdk.internal.vm.compiler  jdk.aot) \
82cacb64e969 8177845: Need a mechanism to load Graal
dnsimon
parents: 42757
diff changeset
    40
        --add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot=$(call CommaList, jdk.internal.vm.compiler  jdk.aot) \
45463
d9325138bac6 8180334: Unable to build jaotc launcher on windows
ksrini
parents: 44852
diff changeset
    41
    , \
d9325138bac6 8180334: Unable to build jaotc launcher on windows
ksrini
parents: 44852
diff changeset
    42
    JAVA_ARGS := --add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot.aarch64=$(call CommaList, jdk.internal.vm.compiler  jdk.aot) \
44852
82cacb64e969 8177845: Need a mechanism to load Graal
dnsimon
parents: 42757
diff changeset
    43
        --add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot.amd64=$(call CommaList, jdk.internal.vm.compiler  jdk.aot) \
82cacb64e969 8177845: Need a mechanism to load Graal
dnsimon
parents: 42757
diff changeset
    44
        --add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot.sparc=$(call CommaList, jdk.internal.vm.compiler  jdk.aot) \
82cacb64e969 8177845: Need a mechanism to load Graal
dnsimon
parents: 42757
diff changeset
    45
        --add-exports=jdk.internal.vm.ci/jdk.vm.ci.meta=$(call CommaList, jdk.internal.vm.compiler  jdk.aot) \
82cacb64e969 8177845: Need a mechanism to load Graal
dnsimon
parents: 42757
diff changeset
    46
        --add-exports=jdk.internal.vm.ci/jdk.vm.ci.runtime=$(call CommaList, jdk.internal.vm.compiler  jdk.aot) \
45463
d9325138bac6 8180334: Unable to build jaotc launcher on windows
ksrini
parents: 44852
diff changeset
    47
        --add-exports=jdk.internal.vm.ci/jdk.vm.ci.sparc=$(call CommaList, jdk.internal.vm.compiler  jdk.aot)  \
42757
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    48
        -XX:+UseAOT \
46871
98c30b33c936 8181823: [AOT] jaotc doesn't work with Graal
kvn
parents: 44852
diff changeset
    49
        -XX:+CalculateClassFingerprint \
42757
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    50
        -Djvmci.UseProfilingInformation=false \
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    51
        -Dgraal.UseExceptionProbability=false \
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    52
        -Djvmci.Compiler=graal \
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    53
        --add-modules ALL-DEFAULT \
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    54
    , \
b35c88b07b78 8171008: Integrate AOT compiler into JDK
kvn
parents:
diff changeset
    55
))