test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.code.test/src/jdk/vm/ci/code/test/TestAssembler.java
changeset 58851 f1e6442241ca
parent 47216 71c04702a3d5
equal deleted inserted replaced
58850:f4290bf1cc21 58851:f1e6442241ca
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2016, 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.
   204     private int stackAlignment;
   204     private int stackAlignment;
   205     private int curStackSlot;
   205     private int curStackSlot;
   206 
   206 
   207     private StackSlot deoptRescue;
   207     private StackSlot deoptRescue;
   208 
   208 
   209     public ValueKindFactory<TestValueKind> valueKindFactory = new ValueKindFactory<TestAssembler.TestValueKind>() {
   209     public ValueKindFactory<TestValueKind> valueKindFactory = new ValueKindFactory<>() {
   210         public TestValueKind getValueKind(JavaKind javaKind) {
   210         public TestValueKind getValueKind(JavaKind javaKind) {
   211             return (TestValueKind) TestAssembler.this.getValueKind(javaKind);
   211             return (TestValueKind) TestAssembler.this.getValueKind(javaKind);
   212         }
   212         }
   213     };
   213     };
   214 
   214 
   387      * primitive types.
   387      * primitive types.
   388      */
   388      */
   389     public abstract void emitLoad(AllocatableValue av, Object prim);
   389     public abstract void emitLoad(AllocatableValue av, Object prim);
   390 
   390 
   391     /**
   391     /**
   392      * Emit a call to a fixed address <code>addr</code>
   392      * Emit a call to a fixed address <code>addr</code>.
   393      */
   393      */
   394     public abstract void emitCall(long addr);
   394     public abstract void emitCall(long addr);
   395 
   395 
   396     /**
   396     /**
   397      * Emit code which is necessary to call a method with {@link CallingConvention} <code>cc</code>
   397      * Emit code which is necessary to call a method with {@link CallingConvention} <code>cc</code>