comparison graal/Runtime/src/com/sun/hotspot/c1x/HotSpotExceptionHandler.java @ 2297:099e697d8934

Renaming c1x4hotspotsrc => graal and HotSpotVM => Runtime
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 22 Apr 2011 15:08:53 +0200
parents
children
comparison
equal deleted inserted replaced
2296:34354e2e40a3 2297:099e697d8934
1 /*
2 * Copyright (c) 2010 Sun Microsystems, Inc. All rights reserved.
3 *
4 * Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product
5 * that is described in this document. In particular, and without limitation, these intellectual property
6 * rights may include one or more of the U.S. patents listed at http://www.sun.com/patents and one or
7 * more additional patents or pending patent applications in the U.S. and in other countries.
8 *
9 * U.S. Government Rights - Commercial software. Government users are subject to the Sun
10 * Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its
11 * supplements.
12 *
13 * Use is subject to license terms. Sun, Sun Microsystems, the Sun logo, Java and Solaris are trademarks or
14 * registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks
15 * are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the
16 * U.S. and other countries.
17 *
18 * UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open
19 * Company, Ltd.
20 */
21 package com.sun.hotspot.c1x;
22
23 import com.sun.cri.ri.*;
24
25
26 public class HotSpotExceptionHandler extends CompilerObject implements RiExceptionHandler {
27 private int startBci;
28 private int endBci;
29 private int handlerBci;
30 private int catchClassIndex;
31 private RiType catchClass;
32
33 public HotSpotExceptionHandler() {
34 super(null);
35 }
36
37 @Override
38 public int startBCI() {
39 return startBci;
40 }
41
42 @Override
43 public int endBCI() {
44 return endBci;
45 }
46
47 @Override
48 public int handlerBCI() {
49 return handlerBci;
50 }
51
52 @Override
53 public int catchTypeCPI() {
54 return catchClassIndex;
55 }
56
57 @Override
58 public boolean isCatchAll() {
59 return catchClassIndex == 0;
60 }
61
62 @Override
63 public RiType catchType() {
64 return catchClass;
65 }
66
67 }