comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotCodeCacheProvider.java @ 22782:bf8a5a6861b1

Add CompilerToVM.interpreterFrameSize to support stack banging for deopt
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Wed, 20 Jan 2016 13:56:34 -0800
parents b4ff1a18d19c
children 32d6bceb9adc
comparison
equal deleted inserted replaced
22781:5d06abd6d35b 22782:bf8a5a6861b1
23 package jdk.vm.ci.hotspot; 23 package jdk.vm.ci.hotspot;
24 24
25 import java.lang.reflect.Field; 25 import java.lang.reflect.Field;
26 26
27 import jdk.vm.ci.code.BailoutException; 27 import jdk.vm.ci.code.BailoutException;
28 import jdk.vm.ci.code.BytecodeFrame;
28 import jdk.vm.ci.code.CodeCacheProvider; 29 import jdk.vm.ci.code.CodeCacheProvider;
29 import jdk.vm.ci.code.CompiledCode; 30 import jdk.vm.ci.code.CompiledCode;
30 import jdk.vm.ci.code.InstalledCode; 31 import jdk.vm.ci.code.InstalledCode;
31 import jdk.vm.ci.code.RegisterConfig; 32 import jdk.vm.ci.code.RegisterConfig;
32 import jdk.vm.ci.code.TargetDescription; 33 import jdk.vm.ci.code.TargetDescription;
167 168
168 public boolean shouldDebugNonSafepoints() { 169 public boolean shouldDebugNonSafepoints() {
169 return runtime.getCompilerToVM().shouldDebugNonSafepoints(); 170 return runtime.getCompilerToVM().shouldDebugNonSafepoints();
170 } 171 }
171 172
173 public int interpreterFrameSize(BytecodeFrame pos) {
174 return runtime.getCompilerToVM().interpreterFrameSize(pos);
175 }
176
172 /** 177 /**
173 * Resets all compilation statistics. 178 * Resets all compilation statistics.
174 */ 179 */
175 public void resetCompilationStatistics() { 180 public void resetCompilationStatistics() {
176 runtime.getCompilerToVM().resetCompilationStatistics(); 181 runtime.getCompilerToVM().resetCompilationStatistics();