< prev index next >

test/compiler/jvmci/jdk.vm.ci.code.test/src/jdk/vm/ci/code/test/TestAssembler.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke


   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   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 
  24 package jdk.vm.ci.code.test;
  25 
  26 import java.nio.ByteBuffer;
  27 import java.nio.ByteOrder;
  28 import java.util.ArrayList;
  29 import java.util.Arrays;
  30 
  31 import jdk.vm.ci.code.CodeCacheProvider;
  32 import jdk.vm.ci.code.DebugInfo;
  33 import jdk.vm.ci.code.Register;
  34 import jdk.vm.ci.code.StackSlot;
  35 import jdk.vm.ci.code.site.Call;
  36 import jdk.vm.ci.code.site.ConstantReference;
  37 import jdk.vm.ci.code.site.DataPatch;
  38 import jdk.vm.ci.code.site.DataSectionReference;
  39 import jdk.vm.ci.code.site.Infopoint;
  40 import jdk.vm.ci.code.site.InfopointReason;
  41 import jdk.vm.ci.code.site.Mark;
  42 import jdk.vm.ci.code.site.Reference;
  43 import jdk.vm.ci.code.site.Site;
  44 import jdk.vm.ci.hotspot.HotSpotCompiledCode;
  45 import jdk.vm.ci.hotspot.HotSpotCompiledCode.Comment;
  46 import jdk.vm.ci.hotspot.HotSpotCompiledNmethod;
  47 import jdk.vm.ci.hotspot.HotSpotConstant;
  48 import jdk.vm.ci.hotspot.HotSpotResolvedJavaMethod;
  49 import jdk.vm.ci.meta.Assumptions.Assumption;
  50 import jdk.vm.ci.meta.InvokeTarget;
  51 import jdk.vm.ci.meta.JavaKind;
  52 import jdk.vm.ci.meta.PlatformKind;
  53 import jdk.vm.ci.meta.ResolvedJavaMethod;
  54 import jdk.vm.ci.meta.ValueKind;
  55 import jdk.vm.ci.meta.VMConstant;

  56 





  57 /**
  58  * Simple assembler used by the code installation tests.
  59  */
  60 public abstract class TestAssembler {
  61 
  62     /**
  63      * Emit the method prologue code (e.g. building the new stack frame).
  64      */
  65     public abstract void emitPrologue();
  66 
  67     /**
  68      * Emit the method epilogue code (e.g. the deopt handler).
  69      */
  70     public abstract void emitEpilogue();
  71 
  72     /**
  73      * Emit code to grow the stack frame.
  74      *
  75      * @param size the size in bytes that the stack should grow
  76      */




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   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 
  24 package jdk.vm.ci.code.test;
  25 





  26 import jdk.vm.ci.code.CodeCacheProvider;
  27 import jdk.vm.ci.code.DebugInfo;
  28 import jdk.vm.ci.code.Register;
  29 import jdk.vm.ci.code.StackSlot;
  30 import jdk.vm.ci.code.site.Call;
  31 import jdk.vm.ci.code.site.ConstantReference;
  32 import jdk.vm.ci.code.site.DataPatch;
  33 import jdk.vm.ci.code.site.DataSectionReference;
  34 import jdk.vm.ci.code.site.Infopoint;
  35 import jdk.vm.ci.code.site.InfopointReason;
  36 import jdk.vm.ci.code.site.Mark;
  37 import jdk.vm.ci.code.site.Reference;
  38 import jdk.vm.ci.code.site.Site;
  39 import jdk.vm.ci.hotspot.HotSpotCompiledCode;
  40 import jdk.vm.ci.hotspot.HotSpotCompiledCode.Comment;
  41 import jdk.vm.ci.hotspot.HotSpotCompiledNmethod;
  42 import jdk.vm.ci.hotspot.HotSpotConstant;
  43 import jdk.vm.ci.hotspot.HotSpotResolvedJavaMethod;
  44 import jdk.vm.ci.meta.Assumptions.Assumption;
  45 import jdk.vm.ci.meta.InvokeTarget;
  46 import jdk.vm.ci.meta.JavaKind;
  47 import jdk.vm.ci.meta.PlatformKind;
  48 import jdk.vm.ci.meta.ResolvedJavaMethod;

  49 import jdk.vm.ci.meta.VMConstant;
  50 import jdk.vm.ci.meta.ValueKind;
  51 
  52 import java.nio.ByteBuffer;
  53 import java.nio.ByteOrder;
  54 import java.util.ArrayList;
  55 import java.util.Arrays;
  56 
  57 /**
  58  * Simple assembler used by the code installation tests.
  59  */
  60 public abstract class TestAssembler {
  61 
  62     /**
  63      * Emit the method prologue code (e.g. building the new stack frame).
  64      */
  65     public abstract void emitPrologue();
  66 
  67     /**
  68      * Emit the method epilogue code (e.g. the deopt handler).
  69      */
  70     public abstract void emitEpilogue();
  71 
  72     /**
  73      * Emit code to grow the stack frame.
  74      *
  75      * @param size the size in bytes that the stack should grow
  76      */


< prev index next >