src/share/vm/c1/c1_IR.cpp

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 # include "incls/_precompiled.incl"
  26 # include "incls/_c1_IR.cpp.incl"






  27 
  28 
  29 // Implementation of XHandlers
  30 //
  31 // Note: This code could eventually go away if we are
  32 //       just using the ciExceptionHandlerStream.
  33 
  34 XHandlers::XHandlers(ciMethod* method) : _list(method->exception_table_length()) {
  35   ciExceptionHandlerStream s(method);
  36   while (!s.is_done()) {
  37     _list.append(new XHandler(s.handler()));
  38     s.next();
  39   }
  40   assert(s.count() == method->exception_table_length(), "exception table lengths inconsistent");
  41 }
  42 
  43 // deep copy of all XHandler contained in list
  44 XHandlers::XHandlers(XHandlers* other) :
  45   _list(other->length())
  46 {




   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 #include "precompiled.hpp"
  26 #include "c1/c1_Compilation.hpp"
  27 #include "c1/c1_FrameMap.hpp"
  28 #include "c1/c1_GraphBuilder.hpp"
  29 #include "c1/c1_IR.hpp"
  30 #include "c1/c1_InstructionPrinter.hpp"
  31 #include "c1/c1_Optimizer.hpp"
  32 #include "utilities/bitMap.inline.hpp"
  33 
  34 
  35 // Implementation of XHandlers
  36 //
  37 // Note: This code could eventually go away if we are
  38 //       just using the ciExceptionHandlerStream.
  39 
  40 XHandlers::XHandlers(ciMethod* method) : _list(method->exception_table_length()) {
  41   ciExceptionHandlerStream s(method);
  42   while (!s.is_done()) {
  43     _list.append(new XHandler(s.handler()));
  44     s.next();
  45   }
  46   assert(s.count() == method->exception_table_length(), "exception table lengths inconsistent");
  47 }
  48 
  49 // deep copy of all XHandler contained in list
  50 XHandlers::XHandlers(XHandlers* other) :
  51   _list(other->length())
  52 {