comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/intrinsics/TruffleIntrinsics.java @ 7530:5e3d1a68664e

applied mx eclipseformat to all Java files
author Doug Simon <doug.simon@oracle.com>
date Wed, 23 Jan 2013 16:34:57 +0100
parents a4b84ba6dc2e
children 07f8d136a05e
comparison
equal deleted inserted replaced
7529:4a11124a3563 7530:5e3d1a68664e
26 * Predefined Truffle intrinsics that allow direct influence of the generated machine code. 26 * Predefined Truffle intrinsics that allow direct influence of the generated machine code.
27 */ 27 */
28 public final class TruffleIntrinsics { 28 public final class TruffleIntrinsics {
29 29
30 /** 30 /**
31 * Specifies that the compiler should put a deoptimization point at this position that will continue execution in the interpreter. 31 * Specifies that the compiler should put a deoptimization point at this position that will
32 * Should be used to cut off cold paths that should not be part of the compiled machine code. 32 * continue execution in the interpreter. Should be used to cut off cold paths that should not
33 * be part of the compiled machine code.
33 */ 34 */
34 public static void deoptimize() { 35 public static void deoptimize() {
35 } 36 }
36 37
37 /** 38 /**
38 * Checks whether the Thread has been interrupted in the interpreter in order to avoid endless loops. The compiled code may choose a more efficient implementation. 39 * Checks whether the Thread has been interrupted in the interpreter in order to avoid endless
40 * loops. The compiled code may choose a more efficient implementation.
39 */ 41 */
40 public static void checkThreadInterrupted() { 42 public static void checkThreadInterrupted() {
41 if (Thread.currentThread().isInterrupted()) { 43 if (Thread.currentThread().isInterrupted()) {
42 throw new RuntimeException("Timeout"); 44 throw new RuntimeException("Timeout");
43 } 45 }