src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/HotSpotGraalServices.java
author dlong
Thu, 25 Jul 2019 17:35:58 -0400
changeset 57537 ecc6e394475f
parent 55509 d58442b8abc1
child 58299 6df94ce3ab2f
permissions -rw-r--r--
8226771: Update Graal Reviewed-by: kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
55509
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
     1
/*
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
     2
 * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
     4
 *
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
     7
 * published by the Free Software Foundation.
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
     8
 *
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    13
 * accompanied this code).
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    14
 *
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    18
 *
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    21
 * questions.
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    22
 */
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    23
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    24
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    25
package org.graalvm.compiler.hotspot;
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    26
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    27
import jdk.vm.ci.hotspot.HotSpotMetaData;
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    28
57537
ecc6e394475f 8226771: Update Graal
dlong
parents: 55509
diff changeset
    29
/**
ecc6e394475f 8226771: Update Graal
dlong
parents: 55509
diff changeset
    30
 * JDK 13 version of {@code HotSpotGraalServices}.
ecc6e394475f 8226771: Update Graal
dlong
parents: 55509
diff changeset
    31
 */
55509
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    32
public class HotSpotGraalServices {
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    33
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    34
    /**
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    35
     * Get the implicit exceptions section of a {@code HotSpotMetaData} if it exists.
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    36
     */
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    37
    @SuppressWarnings("unused")
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    38
    public static byte[] getImplicitExceptionBytes(HotSpotMetaData metaData) {
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    39
        return metaData.implicitExceptionBytes();
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    40
    }
57537
ecc6e394475f 8226771: Update Graal
dlong
parents: 55509
diff changeset
    41
ecc6e394475f 8226771: Update Graal
dlong
parents: 55509
diff changeset
    42
    public static CompilationContext enterGlobalCompilationContext() {
ecc6e394475f 8226771: Update Graal
dlong
parents: 55509
diff changeset
    43
        return null;
ecc6e394475f 8226771: Update Graal
dlong
parents: 55509
diff changeset
    44
    }
ecc6e394475f 8226771: Update Graal
dlong
parents: 55509
diff changeset
    45
ecc6e394475f 8226771: Update Graal
dlong
parents: 55509
diff changeset
    46
    @SuppressWarnings("unused")
ecc6e394475f 8226771: Update Graal
dlong
parents: 55509
diff changeset
    47
    public static CompilationContext openLocalCompilationContext(Object description) {
ecc6e394475f 8226771: Update Graal
dlong
parents: 55509
diff changeset
    48
        return null;
ecc6e394475f 8226771: Update Graal
dlong
parents: 55509
diff changeset
    49
    }
ecc6e394475f 8226771: Update Graal
dlong
parents: 55509
diff changeset
    50
ecc6e394475f 8226771: Update Graal
dlong
parents: 55509
diff changeset
    51
    public static void exit(int status) {
ecc6e394475f 8226771: Update Graal
dlong
parents: 55509
diff changeset
    52
        System.exit(status);
ecc6e394475f 8226771: Update Graal
dlong
parents: 55509
diff changeset
    53
    }
55509
d58442b8abc1 8225497: Update Graal
jwilhelm
parents:
diff changeset
    54
}