src/share/vm/c1/c1_IR.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/c1

src/share/vm/c1/c1_IR.cpp

Print this page


   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  *
  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())


   1 /*
   2  * Copyright (c) 1999, 2016, 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  *
  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 "memory/resourceArea.hpp"
  33 #include "utilities/bitMap.inline.hpp"
  34 
  35 
  36 // Implementation of XHandlers
  37 //
  38 // Note: This code could eventually go away if we are
  39 //       just using the ciExceptionHandlerStream.
  40 
  41 XHandlers::XHandlers(ciMethod* method) : _list(method->exception_table_length()) {
  42   ciExceptionHandlerStream s(method);
  43   while (!s.is_done()) {
  44     _list.append(new XHandler(s.handler()));
  45     s.next();
  46   }
  47   assert(s.count() == method->exception_table_length(), "exception table lengths inconsistent");
  48 }
  49 
  50 // deep copy of all XHandler contained in list
  51 XHandlers::XHandlers(XHandlers* other) :
  52   _list(other->length())


src/share/vm/c1/c1_IR.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File