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 CompilationResourceObj;
  26 class XHandlers;
  27 class ExceptionInfo;
  28 class DebugInformationRecorder;
  29 class FrameMap;
  30 class IR;
  31 class IRScope;
  32 class Instruction;
  33 class LinearScan;
  34 class OopMap;
  35 class LIR_Emitter;
  36 class LIR_Assembler;
  37 class CodeEmitInfo;
  38 class ciEnv;
  39 class ciMethod;
  40 class ValueStack;
  41 class LIR_OprDesc;
  42 class C1_MacroAssembler;
  43 class CFGPrinter;
  44 typedef LIR_OprDesc* LIR_Opr;


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




   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 CompilationResourceObj;
  33 class XHandlers;
  34 class ExceptionInfo;
  35 class DebugInformationRecorder;
  36 class FrameMap;
  37 class IR;
  38 class IRScope;
  39 class Instruction;
  40 class LinearScan;
  41 class OopMap;
  42 class LIR_Emitter;
  43 class LIR_Assembler;
  44 class CodeEmitInfo;
  45 class ciEnv;
  46 class ciMethod;
  47 class ValueStack;
  48 class LIR_OprDesc;
  49 class C1_MacroAssembler;
  50 class CFGPrinter;
  51 typedef LIR_OprDesc* LIR_Opr;


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