< prev index next >

src/share/vm/c1/c1_Compilation.hpp

Print this page
rev 9434 : 8138952: C1: Distinguish between PPC32 and PPC64
Reviewed-by: twisti
   1 /*
   2  * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   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  *


 175   Dependencies* dependency_recorder() const; // = _env->dependencies()
 176   ImplicitExceptionTable* implicit_exception_table()     { return &_implicit_exception_table; }
 177 
 178   Instruction* current_instruction() const       { return _current_instruction; }
 179   Instruction* set_current_instruction(Instruction* instr) {
 180     Instruction* previous = _current_instruction;
 181     _current_instruction = instr;
 182     return previous;
 183   }
 184 
 185 #ifndef PRODUCT
 186   void maybe_print_current_instruction();
 187 #endif // PRODUCT
 188 
 189   // error handling
 190   void bailout(const char* msg);
 191   bool bailed_out() const                        { return _bailout_msg != NULL; }
 192   const char* bailout_msg() const                { return _bailout_msg; }
 193 
 194   static int desired_max_code_buffer_size() {
 195 #ifndef PPC
 196     return (int) NMethodSizeLimit;  // default 256K or 512K
 197 #else
 198     // conditional branches on PPC are restricted to 16 bit signed
 199     return MIN2((unsigned int)NMethodSizeLimit,32*K);
 200 #endif
 201   }
 202   static int desired_max_constant_size() {
 203     return desired_max_code_buffer_size() / 10;
 204   }
 205 
 206   static bool setup_code_buffer(CodeBuffer* cb, int call_stub_estimate);
 207 
 208   // timers
 209   static void print_timers();
 210 
 211 #ifndef PRODUCT
 212   // debugging support.
 213   // produces a file named c1compileonly in the current directory with
 214   // directives to compile only the current method and it's inlines.
 215   // The file can be passed to the command line option -XX:Flags=<filename>


   1 /*
   2  * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   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  *


 175   Dependencies* dependency_recorder() const; // = _env->dependencies()
 176   ImplicitExceptionTable* implicit_exception_table()     { return &_implicit_exception_table; }
 177 
 178   Instruction* current_instruction() const       { return _current_instruction; }
 179   Instruction* set_current_instruction(Instruction* instr) {
 180     Instruction* previous = _current_instruction;
 181     _current_instruction = instr;
 182     return previous;
 183   }
 184 
 185 #ifndef PRODUCT
 186   void maybe_print_current_instruction();
 187 #endif // PRODUCT
 188 
 189   // error handling
 190   void bailout(const char* msg);
 191   bool bailed_out() const                        { return _bailout_msg != NULL; }
 192   const char* bailout_msg() const                { return _bailout_msg; }
 193 
 194   static int desired_max_code_buffer_size() {
 195 #ifndef PPC32
 196     return (int) NMethodSizeLimit;  // default 256K or 512K
 197 #else
 198     // conditional branches on PPC are restricted to 16 bit signed
 199     return MIN2((unsigned int)NMethodSizeLimit,32*K);
 200 #endif
 201   }
 202   static int desired_max_constant_size() {
 203     return desired_max_code_buffer_size() / 10;
 204   }
 205 
 206   static bool setup_code_buffer(CodeBuffer* cb, int call_stub_estimate);
 207 
 208   // timers
 209   static void print_timers();
 210 
 211 #ifndef PRODUCT
 212   // debugging support.
 213   // produces a file named c1compileonly in the current directory with
 214   // directives to compile only the current method and it's inlines.
 215   // The file can be passed to the command line option -XX:Flags=<filename>


< prev index next >