Mercurial > hg > graal-compiler
comparison agent/src/share/classes/sun/jvm/hotspot/code/NMethod.java @ 1748:3e8fbc61cee8
6978355: renaming for 6961697
Summary: This is the renaming part of 6961697 to keep the actual changes small for review.
Reviewed-by: kvn, never
author | twisti |
---|---|
date | Wed, 25 Aug 2010 05:27:54 -0700 |
parents | 2a47bd84841f |
children | 7588156f5cf9 |
comparison
equal
deleted
inserted
replaced
1747:53dbe853fb3a | 1748:3e8fbc61cee8 |
---|---|
132 public boolean isJavaMethod() { return !getMethod().isNative(); } | 132 public boolean isJavaMethod() { return !getMethod().isNative(); } |
133 public boolean isNativeMethod() { return getMethod().isNative(); } | 133 public boolean isNativeMethod() { return getMethod().isNative(); } |
134 public boolean isOSRMethod() { return getEntryBCI() != VM.getVM().getInvocationEntryBCI(); } | 134 public boolean isOSRMethod() { return getEntryBCI() != VM.getVM().getInvocationEntryBCI(); } |
135 | 135 |
136 /** Boundaries for different parts */ | 136 /** Boundaries for different parts */ |
137 public Address constantsBegin() { return instructionsBegin(); } | 137 public Address constantsBegin() { return contentBegin(); } |
138 public Address constantsEnd() { return getEntryPoint(); } | 138 public Address constantsEnd() { return getEntryPoint(); } |
139 public Address codeBegin() { return getEntryPoint(); } | 139 public Address instsBegin() { return codeBegin(); } |
140 public Address codeEnd() { return headerBegin().addOffsetTo(getStubOffset()); } | 140 public Address instsEnd() { return headerBegin().addOffsetTo(getStubOffset()); } |
141 public Address exceptionBegin() { return headerBegin().addOffsetTo(getExceptionOffset()); } | 141 public Address exceptionBegin() { return headerBegin().addOffsetTo(getExceptionOffset()); } |
142 public Address deoptBegin() { return headerBegin().addOffsetTo(getDeoptOffset()); } | 142 public Address deoptBegin() { return headerBegin().addOffsetTo(getDeoptOffset()); } |
143 public Address stubBegin() { return headerBegin().addOffsetTo(getStubOffset()); } | 143 public Address stubBegin() { return headerBegin().addOffsetTo(getStubOffset()); } |
144 public Address stubEnd() { return headerBegin().addOffsetTo(getOopsOffset()); } | 144 public Address stubEnd() { return headerBegin().addOffsetTo(getOopsOffset()); } |
145 public Address oopsBegin() { return headerBegin().addOffsetTo(getOopsOffset()); } | 145 public Address oopsBegin() { return headerBegin().addOffsetTo(getOopsOffset()); } |
154 public Address handlerTableEnd() { return headerBegin().addOffsetTo(getNulChkTableOffset()); } | 154 public Address handlerTableEnd() { return headerBegin().addOffsetTo(getNulChkTableOffset()); } |
155 public Address nulChkTableBegin() { return headerBegin().addOffsetTo(getNulChkTableOffset()); } | 155 public Address nulChkTableBegin() { return headerBegin().addOffsetTo(getNulChkTableOffset()); } |
156 public Address nulChkTableEnd() { return headerBegin().addOffsetTo(getNMethodEndOffset()); } | 156 public Address nulChkTableEnd() { return headerBegin().addOffsetTo(getNMethodEndOffset()); } |
157 | 157 |
158 public int constantsSize() { return (int) constantsEnd() .minus(constantsBegin()); } | 158 public int constantsSize() { return (int) constantsEnd() .minus(constantsBegin()); } |
159 public int codeSize() { return (int) codeEnd() .minus(codeBegin()); } | 159 public int instsSize() { return (int) instsEnd() .minus(instsBegin()); } |
160 public int stubSize() { return (int) stubEnd() .minus(stubBegin()); } | 160 public int stubSize() { return (int) stubEnd() .minus(stubBegin()); } |
161 public int oopsSize() { return (int) oopsEnd() .minus(oopsBegin()); } | 161 public int oopsSize() { return (int) oopsEnd() .minus(oopsBegin()); } |
162 public int scopesDataSize() { return (int) scopesDataEnd() .minus(scopesDataBegin()); } | 162 public int scopesDataSize() { return (int) scopesDataEnd() .minus(scopesDataBegin()); } |
163 public int scopesPCsSize() { return (int) scopesPCsEnd() .minus(scopesPCsBegin()); } | 163 public int scopesPCsSize() { return (int) scopesPCsEnd() .minus(scopesPCsBegin()); } |
164 public int dependenciesSize() { return (int) dependenciesEnd().minus(dependenciesBegin()); } | 164 public int dependenciesSize() { return (int) dependenciesEnd().minus(dependenciesBegin()); } |
167 public int origPCOffset() { return (int) origPCOffsetField.getValue(addr); } | 167 public int origPCOffset() { return (int) origPCOffsetField.getValue(addr); } |
168 | 168 |
169 public int totalSize() { | 169 public int totalSize() { |
170 return | 170 return |
171 constantsSize() + | 171 constantsSize() + |
172 codeSize() + | 172 instsSize() + |
173 stubSize() + | 173 stubSize() + |
174 scopesDataSize() + | 174 scopesDataSize() + |
175 scopesPCsSize() + | 175 scopesPCsSize() + |
176 dependenciesSize() + | 176 dependenciesSize() + |
177 handlerTableSize() + | 177 handlerTableSize() + |
178 nulChkTableSize(); | 178 nulChkTableSize(); |
179 } | 179 } |
180 | 180 |
181 public boolean constantsContains (Address addr) { return constantsBegin() .lessThanOrEqual(addr) && constantsEnd() .greaterThan(addr); } | 181 public boolean constantsContains (Address addr) { return constantsBegin() .lessThanOrEqual(addr) && constantsEnd() .greaterThan(addr); } |
182 public boolean codeContains (Address addr) { return codeBegin() .lessThanOrEqual(addr) && codeEnd() .greaterThan(addr); } | 182 public boolean instsContains (Address addr) { return instsBegin() .lessThanOrEqual(addr) && instsEnd() .greaterThan(addr); } |
183 public boolean stubContains (Address addr) { return stubBegin() .lessThanOrEqual(addr) && stubEnd() .greaterThan(addr); } | 183 public boolean stubContains (Address addr) { return stubBegin() .lessThanOrEqual(addr) && stubEnd() .greaterThan(addr); } |
184 public boolean oopsContains (Address addr) { return oopsBegin() .lessThanOrEqual(addr) && oopsEnd() .greaterThan(addr); } | 184 public boolean oopsContains (Address addr) { return oopsBegin() .lessThanOrEqual(addr) && oopsEnd() .greaterThan(addr); } |
185 public boolean scopesDataContains (Address addr) { return scopesDataBegin() .lessThanOrEqual(addr) && scopesDataEnd() .greaterThan(addr); } | 185 public boolean scopesDataContains (Address addr) { return scopesDataBegin() .lessThanOrEqual(addr) && scopesDataEnd() .greaterThan(addr); } |
186 public boolean scopesPCsContains (Address addr) { return scopesPCsBegin() .lessThanOrEqual(addr) && scopesPCsEnd() .greaterThan(addr); } | 186 public boolean scopesPCsContains (Address addr) { return scopesPCsBegin() .lessThanOrEqual(addr) && scopesPCsEnd() .greaterThan(addr); } |
187 public boolean handlerTableContains(Address addr) { return handlerTableBegin().lessThanOrEqual(addr) && handlerTableEnd().greaterThan(addr); } | 187 public boolean handlerTableContains(Address addr) { return handlerTableBegin().lessThanOrEqual(addr) && handlerTableEnd().greaterThan(addr); } |
351 printOn(System.out); | 351 printOn(System.out); |
352 } | 352 } |
353 | 353 |
354 protected void printComponentsOn(PrintStream tty) { | 354 protected void printComponentsOn(PrintStream tty) { |
355 // FIXME: add relocation information | 355 // FIXME: add relocation information |
356 tty.println(" instructions: [" + instructionsBegin() + ", " + instructionsEnd() + "), " + | 356 tty.println(" content: [" + contentBegin() + ", " + contentEnd() + "), " + |
357 " code: [" + codeBegin() + ", " + codeEnd() + "), " + | |
357 " data: [" + dataBegin() + ", " + dataEnd() + "), " + | 358 " data: [" + dataBegin() + ", " + dataEnd() + "), " + |
358 " oops: [" + oopsBegin() + ", " + oopsEnd() + "), " + | 359 " oops: [" + oopsBegin() + ", " + oopsEnd() + "), " + |
359 " frame size: " + getFrameSize()); | 360 " frame size: " + getFrameSize()); |
360 } | 361 } |
361 | 362 |