Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java @ 9349:0fccad3ce40d
Introduce CompilerDirectives.Unsafe. Mark Frame.getArguments method as unsafe.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sat, 27 Apr 2013 00:04:11 +0200 |
parents | 1188b7c42196 |
children | ac8b195fd3aa |
comparison
equal
deleted
inserted
replaced
9348:927e0792094b | 9349:0fccad3ce40d |
---|---|
115 */ | 115 */ |
116 @Retention(RetentionPolicy.RUNTIME) | 116 @Retention(RetentionPolicy.RUNTIME) |
117 @Target({ElementType.FIELD}) | 117 @Target({ElementType.FIELD}) |
118 public @interface CompilationFinal { | 118 public @interface CompilationFinal { |
119 } | 119 } |
120 | |
121 /** | |
122 * Marks methods that are considered unsafe. Wrong usage of those methods can lead to unexpected | |
123 * behavior including a crash of the runtime. Therefore, special care should be taken. | |
124 */ | |
125 @Retention(RetentionPolicy.RUNTIME) | |
126 @Target({ElementType.METHOD}) | |
127 public @interface Unsafe { | |
128 } | |
120 } | 129 } |