Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/graph/BlockMap.java @ 2519:f6125fb5bfbc
Removed intrinsics.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 27 Apr 2011 16:25:32 +0200 |
parents | 16b9a8b5ad39 |
children | 0c6564c254af |
comparison
equal
deleted
inserted
replaced
2516:a384fac3fd34 | 2519:f6125fb5bfbc |
---|---|
24 | 24 |
25 import static com.sun.cri.bytecode.Bytecodes.*; | 25 import static com.sun.cri.bytecode.Bytecodes.*; |
26 | 26 |
27 import java.util.*; | 27 import java.util.*; |
28 | 28 |
29 import com.sun.c1x.*; | |
30 import com.sun.c1x.ir.*; | 29 import com.sun.c1x.ir.*; |
31 import com.sun.c1x.util.*; | 30 import com.sun.c1x.util.*; |
32 import com.sun.cri.bytecode.*; | 31 import com.sun.cri.bytecode.*; |
33 import com.sun.cri.ci.*; | 32 import com.sun.cri.ci.*; |
34 import com.sun.cri.ri.*; | 33 import com.sun.cri.ri.*; |
136 private final RiExceptionHandler[] allHandlers; | 135 private final RiExceptionHandler[] allHandlers; |
137 private final ArrayMap<HashSet<BlockBegin>> handlerMap; | 136 private final ArrayMap<HashSet<BlockBegin>> handlerMap; |
138 | 137 |
139 ExceptionMap(RiMethod method, byte[] code) { | 138 ExceptionMap(RiMethod method, byte[] code) { |
140 canTrap = new CiBitMap(code.length); | 139 canTrap = new CiBitMap(code.length); |
141 isObjectInit = C1XIntrinsic.getIntrinsic(method) == C1XIntrinsic.java_lang_Object$init; | 140 isObjectInit = (method.isConstructor() && method.holder().superType() == null); |
142 allHandlers = method.exceptionHandlers(); | 141 allHandlers = method.exceptionHandlers(); |
143 handlerMap = new ArrayMap<HashSet<BlockBegin>>(firstBlock, firstBlock + code.length / 5); | 142 handlerMap = new ArrayMap<HashSet<BlockBegin>>(firstBlock, firstBlock + code.length / 5); |
144 } | 143 } |
145 | 144 |
146 void setCanTrap(int bci) { | 145 void setCanTrap(int bci) { |