< prev index next >

test/compiler/calls/common/CallsBase.java

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

   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 compiler.calls.common;
  25 
  26 import compiler.testlibrary.CompilerUtils;
  27 import java.lang.reflect.Method;
  28 import java.util.Arrays;
  29 import jdk.test.lib.Asserts;
  30 import sun.hotspot.WhiteBox;
  31 



  32 /**
  33  * A common class for Invoke* classes
  34  */
  35 public abstract class CallsBase {
  36     public static final String CALL_ERR_MSG = "Call insuccessfull";
  37     protected final Method calleeMethod;
  38     protected final Method callerMethod;
  39     protected final WhiteBox wb = WhiteBox.getWhiteBox();
  40     protected int compileCallee = -1;
  41     protected int compileCaller = -1;
  42     protected boolean nativeCallee = false;
  43     protected boolean nativeCaller = false;
  44     protected boolean calleeVisited = false;
  45     protected boolean checkCallerCompilationLevel;
  46     protected boolean checkCalleeCompilationLevel;
  47     protected int expectedCallerCompilationLevel;
  48     protected int expectedCalleeCompilationLevel;
  49 
  50     protected CallsBase() {
  51         try {



   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 compiler.calls.common;
  25 
  26 import compiler.testlibrary.CompilerUtils;


  27 import jdk.test.lib.Asserts;
  28 import sun.hotspot.WhiteBox;
  29 
  30 import java.lang.reflect.Method;
  31 import java.util.Arrays;
  32 
  33 /**
  34  * A common class for Invoke* classes
  35  */
  36 public abstract class CallsBase {
  37     public static final String CALL_ERR_MSG = "Call insuccessfull";
  38     protected final Method calleeMethod;
  39     protected final Method callerMethod;
  40     protected final WhiteBox wb = WhiteBox.getWhiteBox();
  41     protected int compileCallee = -1;
  42     protected int compileCaller = -1;
  43     protected boolean nativeCallee = false;
  44     protected boolean nativeCaller = false;
  45     protected boolean calleeVisited = false;
  46     protected boolean checkCallerCompilationLevel;
  47     protected boolean checkCalleeCompilationLevel;
  48     protected int expectedCallerCompilationLevel;
  49     protected int expectedCalleeCompilationLevel;
  50 
  51     protected CallsBase() {
  52         try {


< prev index next >