src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/nodes/StubForeignCallNode.java
changeset 58877 aec7bf35d6f5
parent 52910 583fd71c47d6
equal deleted inserted replaced
58876:1a8d65e71a66 58877:aec7bf35d6f5
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    70     public ForeignCallDescriptor getDescriptor() {
    70     public ForeignCallDescriptor getDescriptor() {
    71         return descriptor;
    71         return descriptor;
    72     }
    72     }
    73 
    73 
    74     @Override
    74     @Override
    75     public LocationIdentity[] getLocationIdentities() {
    75     public LocationIdentity[] getKilledLocationIdentities() {
    76         LocationIdentity[] killedLocations = foreignCalls.getKilledLocations(descriptor);
    76         LocationIdentity[] killedLocations = foreignCalls.getKilledLocations(descriptor);
    77         killedLocations = Arrays.copyOf(killedLocations, killedLocations.length + 1);
    77         killedLocations = Arrays.copyOf(killedLocations, killedLocations.length + 1);
    78         killedLocations[killedLocations.length - 1] = HotSpotReplacementsUtil.PENDING_EXCEPTION_LOCATION;
    78         killedLocations[killedLocations.length - 1] = HotSpotReplacementsUtil.PENDING_EXCEPTION_LOCATION;
    79         return killedLocations;
    79         return killedLocations;
    80     }
    80     }