src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.replacements/src/org/graalvm/compiler/replacements/arraycopy/ArrayCopyNode.java
changeset 58877 aec7bf35d6f5
parent 54084 84f10bbf993f
equal deleted inserted replaced
58876:1a8d65e71a66 58877:aec7bf35d6f5
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 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.
    55             assert elementKind == null;
    55             assert elementKind == null;
    56         }
    56         }
    57     }
    57     }
    58 
    58 
    59     @Override
    59     @Override
    60     public LocationIdentity getLocationIdentity() {
    60     public LocationIdentity getKilledLocationIdentity() {
    61         if (!forceAnyLocation && elementKind == null) {
    61         if (!forceAnyLocation && elementKind == null) {
    62             elementKind = ArrayCopySnippets.Templates.selectComponentKind(this);
    62             elementKind = ArrayCopySnippets.Templates.selectComponentKind(this);
    63         }
    63         }
    64         if (elementKind != null) {
    64         if (elementKind != null) {
    65             return NamedLocationIdentity.getArrayLocation(elementKind);
    65             return NamedLocationIdentity.getArrayLocation(elementKind);