src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/framemap/FrameMap.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/framemap

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/framemap/FrameMap.java

Print this page




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 package org.graalvm.compiler.lir.framemap;
  24 
  25 import java.util.ArrayList;
  26 import java.util.BitSet;
  27 import java.util.List;
  28 
  29 import org.graalvm.compiler.asm.NumUtil;
  30 import org.graalvm.compiler.common.PermanentBailoutException;
  31 import org.graalvm.compiler.core.common.LIRKind;
  32 
  33 import jdk.vm.ci.code.Architecture;
  34 import jdk.vm.ci.code.CallingConvention;
  35 import jdk.vm.ci.code.CodeCacheProvider;
  36 import jdk.vm.ci.code.RegisterConfig;
  37 import jdk.vm.ci.code.StackSlot;
  38 import jdk.vm.ci.code.TargetDescription;
  39 import jdk.vm.ci.meta.Value;
  40 import jdk.vm.ci.meta.ValueKind;
  41 
  42 /**
  43  * This class is used to build the stack frame layout for a compiled method. A {@link StackSlot} is
  44  * used to index slots of the frame relative to the stack pointer. The frame size is only fixed
  45  * after register allocation when all spill slots have been allocated. Both the outgoing argument
  46  * area and the spill are can grow until then. Therefore, outgoing arguments are indexed from the
  47  * stack pointer, while spill slots are indexed from the beginning of the frame (and the total frame
  48  * size has to be added to get the actual offset from the stack pointer).
  49  */
  50 public abstract class FrameMap {




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 package org.graalvm.compiler.lir.framemap;
  24 
  25 import java.util.ArrayList;
  26 import java.util.BitSet;
  27 import java.util.List;
  28 
  29 import org.graalvm.compiler.core.common.NumUtil;
  30 import org.graalvm.compiler.core.common.PermanentBailoutException;
  31 import org.graalvm.compiler.core.common.LIRKind;
  32 
  33 import jdk.vm.ci.code.Architecture;
  34 import jdk.vm.ci.code.CallingConvention;
  35 import jdk.vm.ci.code.CodeCacheProvider;
  36 import jdk.vm.ci.code.RegisterConfig;
  37 import jdk.vm.ci.code.StackSlot;
  38 import jdk.vm.ci.code.TargetDescription;
  39 import jdk.vm.ci.meta.Value;
  40 import jdk.vm.ci.meta.ValueKind;
  41 
  42 /**
  43  * This class is used to build the stack frame layout for a compiled method. A {@link StackSlot} is
  44  * used to index slots of the frame relative to the stack pointer. The frame size is only fixed
  45  * after register allocation when all spill slots have been allocated. Both the outgoing argument
  46  * area and the spill are can grow until then. Therefore, outgoing arguments are indexed from the
  47  * stack pointer, while spill slots are indexed from the beginning of the frame (and the total frame
  48  * size has to be added to get the actual offset from the stack pointer).
  49  */
  50 public abstract class FrameMap {


src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/framemap/FrameMap.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File