3737
3838public class Range {
3939 private final String cachePath ;
40+ private final Range caller ;
4041 private String fileName ;
4142 private Path filePath ;
4243 private String className ;
@@ -48,6 +49,8 @@ public class Range {
4849 private int hi ;
4950 private int line ;
5051 private boolean isDeoptTarget ;
52+ private final boolean isInlined ;
53+ private final boolean withChildren ;
5154 /*
5255 * This is null for a primary range.
5356 */
@@ -58,22 +61,22 @@ public class Range {
5861 */
5962 public Range (String fileName , Path filePath , Path cachePath , String className , String methodName , String paramNames , String returnTypeName , StringTable stringTable , int lo , int hi , int line ,
6063 boolean isDeoptTarget ) {
61- this (fileName , filePath , cachePath , className , methodName , paramNames , returnTypeName , stringTable , lo , hi , line , isDeoptTarget , null );
64+ this (fileName , filePath , cachePath , className , methodName , paramNames , returnTypeName , stringTable , lo , hi , line , isDeoptTarget , false , null , false , null );
6265 }
6366
6467 /*
6568 * Create a secondary range.
6669 */
6770 public Range (String fileName , Path filePath , Path cachePath , String className , String methodName , String paramNames , String returnTypeName , StringTable stringTable , int lo , int hi , int line ,
68- Range primary ) {
69- this (fileName , filePath , cachePath , className , methodName , paramNames , returnTypeName , stringTable , lo , hi , line , false , primary );
71+ boolean isInline , Range primary , boolean withChildren , Range caller ) {
72+ this (fileName , filePath , cachePath , className , methodName , paramNames , returnTypeName , stringTable , lo , hi , line , false , isInline , primary , withChildren , caller );
7073 }
7174
7275 /*
7376 * Create a primary or secondary range.
7477 */
7578 private Range (String fileName , Path filePath , Path cachePath , String className , String methodName , String paramNames , String returnTypeName , StringTable stringTable , int lo , int hi , int line ,
76- boolean isDeoptTarget , Range primary ) {
79+ boolean isDeoptTarget , boolean isInline , Range primary , boolean withChildren , Range caller ) {
7780 /*
7881 * Currently file name and full method name need to go into the debug_str section other
7982 * strings just need to be deduplicated to save space.
@@ -90,7 +93,10 @@ private Range(String fileName, Path filePath, Path cachePath, String className,
9093 this .hi = hi ;
9194 this .line = line ;
9295 this .isDeoptTarget = isDeoptTarget ;
96+ this .isInlined = isInline ;
9397 this .primary = primary ;
98+ this .withChildren = withChildren ;
99+ this .caller = caller ;
94100 }
95101
96102 public boolean contains (Range other ) {
@@ -180,4 +186,16 @@ private String constructClassAndMethodNameWithParams() {
180186 public String getCachePath () {
181187 return cachePath ;
182188 }
189+
190+ public boolean isInlined () {
191+ return isInlined ;
192+ }
193+
194+ public boolean withChildren () {
195+ return withChildren ;
196+ }
197+
198+ public Range getCaller () {
199+ return caller ;
200+ }
183201}
0 commit comments