comparison graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/lir/LIRDebugInfo.java @ 3026:6535766b47f4

Renaming CiBitMap=>BitMap
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Mon, 20 Jun 2011 13:54:37 +0200
parents 224412c24426
children 2423a432fa6b
comparison
equal deleted inserted replaced
3025:94f3ffcc5c2a 3026:6535766b47f4
23 package com.oracle.max.graal.compiler.lir; 23 package com.oracle.max.graal.compiler.lir;
24 24
25 import com.oracle.max.graal.compiler.*; 25 import com.oracle.max.graal.compiler.*;
26 import com.oracle.max.graal.compiler.ir.*; 26 import com.oracle.max.graal.compiler.ir.*;
27 import com.oracle.max.graal.compiler.value.*; 27 import com.oracle.max.graal.compiler.value.*;
28 import com.oracle.max.graal.graph.*;
28 import com.sun.cri.ci.*; 29 import com.sun.cri.ci.*;
29 30
30 /** 31 /**
31 * This class represents debugging and deoptimization information attached to a LIR instruction. 32 * This class represents debugging and deoptimization information attached to a LIR instruction.
32 */ 33 */
60 61
61 public LIRDebugInfo copy() { 62 public LIRDebugInfo copy() {
62 return new LIRDebugInfo(this); 63 return new LIRDebugInfo(this);
63 } 64 }
64 65
65 public void setOop(CiValue location, GraalCompilation compilation, CiBitMap frameRefMap, CiBitMap regRefMap) { 66 public void setOop(CiValue location, GraalCompilation compilation, BitMap frameRefMap, BitMap regRefMap) {
66 CiTarget target = compilation.target; 67 CiTarget target = compilation.target;
67 if (location.isAddress()) { 68 if (location.isAddress()) {
68 CiAddress stackLocation = (CiAddress) location; 69 CiAddress stackLocation = (CiAddress) location;
69 assert stackLocation.index.isIllegal(); 70 assert stackLocation.index.isIllegal();
70 if (stackLocation.base == CiRegister.Frame.asValue()) { 71 if (stackLocation.base == CiRegister.Frame.asValue()) {
95 96
96 public boolean hasDebugInfo() { 97 public boolean hasDebugInfo() {
97 return debugInfo != null; 98 return debugInfo != null;
98 } 99 }
99 100
100 public static void setBit(CiBitMap refMap, int bit) { 101 public static void setBit(BitMap refMap, int bit) {
101 assert !refMap.get(bit) : "Ref map entry " + bit + " is already set."; 102 assert !refMap.get(bit) : "Ref map entry " + bit + " is already set.";
102 refMap.set(bit); 103 refMap.set(bit);
103 } 104 }
104 105
105 @Override 106 @Override