src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/extended/ArrayRangeWrite.java
author chegar
Thu, 17 Oct 2019 20:54:25 +0100
branchdatagramsocketimpl-branch
changeset 58679 9c3209ff7550
parent 58678 9cf78a70fa4f
parent 58299 6df94ce3ab2f
permissions -rw-r--r--
datagramsocketimpl-branch: merge with default
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
48861
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
     1
/*
58299
6df94ce3ab2f 8229201: Update Graal
dlong
parents: 55509
diff changeset
     2
 * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
48861
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
     4
 *
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
     7
 * published by the Free Software Foundation.
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
     8
 *
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    13
 * accompanied this code).
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    14
 *
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    18
 *
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    21
 * questions.
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    22
 */
50858
2d3e99a72541 8205824: Update Graal
never
parents: 48861
diff changeset
    23
2d3e99a72541 8205824: Update Graal
never
parents: 48861
diff changeset
    24
48861
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    25
package org.graalvm.compiler.nodes.extended;
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    26
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    27
import org.graalvm.compiler.graph.NodeInterface;
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    28
import org.graalvm.compiler.nodes.ValueNode;
55509
d58442b8abc1 8225497: Update Graal
jwilhelm
parents: 52910
diff changeset
    29
import org.graalvm.compiler.nodes.memory.FixedAccessNode;
48861
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    30
import org.graalvm.compiler.nodes.memory.address.AddressNode;
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    31
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    32
public interface ArrayRangeWrite extends NodeInterface {
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    33
    AddressNode getAddress();
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    34
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    35
    /**
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    36
     * The length of the modified range.
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    37
     */
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    38
    ValueNode getLength();
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    39
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    40
    /**
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    41
     * Return true if the written array is an object array, false if it is a primitive array.
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    42
     */
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    43
    boolean writesObjectArray();
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    44
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    45
    /**
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    46
     * Returns whether this write is the initialization of the written location. If it is true, the
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    47
     * old value of the memory location is either uninitialized or zero. If it is false, the memory
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    48
     * location is guaranteed to contain a valid value or zero.
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    49
     */
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    50
    boolean isInitialization();
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    51
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    52
    int getElementStride();
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    53
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    54
    @Override
55509
d58442b8abc1 8225497: Update Graal
jwilhelm
parents: 52910
diff changeset
    55
    FixedAccessNode asNode();
48861
47f19ff9903c 8194819: Update Graal
iveresov
parents:
diff changeset
    56
}