src/share/vm/c1/c1_Compilation.hpp

Print this page




   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  *
  23  */
  24 







  25 class BlockBegin;
  26 class CompilationResourceObj;
  27 class XHandlers;
  28 class ExceptionInfo;
  29 class DebugInformationRecorder;
  30 class FrameMap;
  31 class IR;
  32 class IRScope;
  33 class Instruction;
  34 class LinearScan;
  35 class OopMap;
  36 class LIR_Emitter;
  37 class LIR_Assembler;
  38 class CodeEmitInfo;
  39 class ciEnv;
  40 class ciMethod;
  41 class ValueStack;
  42 class LIR_OprDesc;
  43 class C1_MacroAssembler;
  44 class CFGPrinter;


 273 // Class for aggregating exception handler information.
 274 
 275 // Effectively extends XHandlers class with PC offset of
 276 // potentially exception-throwing instruction.
 277 // This class is used at the end of the compilation to build the
 278 // ExceptionHandlerTable.
 279 class ExceptionInfo: public CompilationResourceObj {
 280  private:
 281   int             _pco;                // PC of potentially exception-throwing instruction
 282   XHandlers*      _exception_handlers; // flat list of exception handlers covering this PC
 283 
 284  public:
 285   ExceptionInfo(int pco, XHandlers* exception_handlers)
 286     : _pco(pco)
 287     , _exception_handlers(exception_handlers)
 288   { }
 289 
 290   int pco()                                      { return _pco; }
 291   XHandlers* exception_handlers()                { return _exception_handlers; }
 292 };




   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  *
  23  */
  24 
  25 #ifndef SHARE_VM_C1_C1_COMPILATION_HPP
  26 #define SHARE_VM_C1_C1_COMPILATION_HPP
  27 
  28 #include "ci/ciEnv.hpp"
  29 #include "code/exceptionHandlerTable.hpp"
  30 #include "memory/resourceArea.hpp"
  31 
  32 class BlockBegin;
  33 class CompilationResourceObj;
  34 class XHandlers;
  35 class ExceptionInfo;
  36 class DebugInformationRecorder;
  37 class FrameMap;
  38 class IR;
  39 class IRScope;
  40 class Instruction;
  41 class LinearScan;
  42 class OopMap;
  43 class LIR_Emitter;
  44 class LIR_Assembler;
  45 class CodeEmitInfo;
  46 class ciEnv;
  47 class ciMethod;
  48 class ValueStack;
  49 class LIR_OprDesc;
  50 class C1_MacroAssembler;
  51 class CFGPrinter;


 280 // Class for aggregating exception handler information.
 281 
 282 // Effectively extends XHandlers class with PC offset of
 283 // potentially exception-throwing instruction.
 284 // This class is used at the end of the compilation to build the
 285 // ExceptionHandlerTable.
 286 class ExceptionInfo: public CompilationResourceObj {
 287  private:
 288   int             _pco;                // PC of potentially exception-throwing instruction
 289   XHandlers*      _exception_handlers; // flat list of exception handlers covering this PC
 290 
 291  public:
 292   ExceptionInfo(int pco, XHandlers* exception_handlers)
 293     : _pco(pco)
 294     , _exception_handlers(exception_handlers)
 295   { }
 296 
 297   int pco()                                      { return _pco; }
 298   XHandlers* exception_handlers()                { return _exception_handlers; }
 299 };
 300 
 301 #endif // SHARE_VM_C1_C1_COMPILATION_HPP