< prev index next >

src/hotspot/share/ci/ciStreams.cpp

Print this page




  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 "ci/ciCallSite.hpp"
  27 #include "ci/ciConstant.hpp"
  28 #include "ci/ciField.hpp"
  29 #include "ci/ciStreams.hpp"
  30 #include "ci/ciUtilities.hpp"

  31 
  32 // ciExceptionHandlerStream
  33 //
  34 // Walk over some selected set of a methods exception handlers.
  35 
  36 // ------------------------------------------------------------------
  37 // ciExceptionHandlerStream::count
  38 //
  39 // How many exception handlers are there in this stream?
  40 //
  41 // Implementation note: Compiler2 needs this functionality, so I had
  42 int ciExceptionHandlerStream::count() {
  43   int save_pos = _pos;
  44   int save_end = _end;
  45 
  46   int count = 0;
  47 
  48   _pos = -1;
  49   _end = _method->_handler_count;
  50 




  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 "ci/ciCallSite.hpp"
  27 #include "ci/ciConstant.hpp"
  28 #include "ci/ciField.hpp"
  29 #include "ci/ciStreams.hpp"
  30 #include "ci/ciUtilities.inline.hpp"
  31 #include "runtime/handles.inline.hpp"
  32 
  33 // ciExceptionHandlerStream
  34 //
  35 // Walk over some selected set of a methods exception handlers.
  36 
  37 // ------------------------------------------------------------------
  38 // ciExceptionHandlerStream::count
  39 //
  40 // How many exception handlers are there in this stream?
  41 //
  42 // Implementation note: Compiler2 needs this functionality, so I had
  43 int ciExceptionHandlerStream::count() {
  44   int save_pos = _pos;
  45   int save_end = _end;
  46 
  47   int count = 0;
  48 
  49   _pos = -1;
  50   _end = _method->_handler_count;
  51 


< prev index next >