Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/util/Util.java @ 2651:f9ae687657e8
Removed unused FatalNonUnimplemented flag and methods.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 11 May 2011 14:45:05 +0200 |
parents | 16b9a8b5ad39 |
children | 43ffa0e47a46 |
comparison
equal
deleted
inserted
replaced
2650:ccab1d5f345e | 2651:f9ae687657e8 |
---|---|
302 result[i + j] = signature.argumentKindAt(j); | 302 result[i + j] = signature.argumentKindAt(j); |
303 } | 303 } |
304 return result; | 304 return result; |
305 } | 305 } |
306 | 306 |
307 public static <T> T nonFatalUnimplemented(T val) { | |
308 if (C1XOptions.FatalUnimplemented) { | |
309 throw new Error("unimplemented"); | |
310 } | |
311 return val; | |
312 } | |
313 | |
314 public static void nonFatalUnimplemented() { | |
315 if (C1XOptions.FatalUnimplemented) { | |
316 throw new Error("unimplemented"); | |
317 } | |
318 } | |
319 | |
320 public static boolean isShiftCount(int x) { | 307 public static boolean isShiftCount(int x) { |
321 return 0 <= x && x < 32; | 308 return 0 <= x && x < 32; |
322 } | 309 } |
323 | 310 |
324 /** | 311 /** |