src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.amd64/src/org/graalvm/compiler/hotspot/amd64/AMD64HotSpotRestoreRbpOp.java
changeset 59095 03fbcd06b4c0
parent 52910 583fd71c47d6
equal deleted inserted replaced
59094:5d4c3724e4c7 59095:03fbcd06b4c0
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 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.
    22  */
    22  */
    23 
    23 
    24 
    24 
    25 package org.graalvm.compiler.hotspot.amd64;
    25 package org.graalvm.compiler.hotspot.amd64;
    26 
    26 
    27 import org.graalvm.compiler.core.common.LIRKind;
       
    28 import org.graalvm.compiler.lir.Variable;
       
    29 
       
    30 import jdk.vm.ci.amd64.AMD64Kind;
       
    31 import jdk.vm.ci.meta.AllocatableValue;
    27 import jdk.vm.ci.meta.AllocatableValue;
    32 
    28 
    33 public interface AMD64HotSpotRestoreRbpOp {
    29 public interface AMD64HotSpotRestoreRbpOp {
    34 
    30 
    35     /**
       
    36      * The type of location (i.e., stack or register) in which RBP is saved is not known until
       
    37      * initial LIR generation is finished. Until then, we use a placeholder variable so that LIR
       
    38      * verification is successful.
       
    39      */
       
    40     Variable PLACEHOLDER = new Variable(LIRKind.value(AMD64Kind.QWORD), Integer.MAX_VALUE);
       
    41 
       
    42     void setSavedRbp(AllocatableValue value);
    31     void setSavedRbp(AllocatableValue value);
    43 }
    32 }