Skip to content

Commit 3137131

Browse files
committed
add TruffleBoundary
1 parent 8ddd6ac commit 3137131

File tree

1 file changed

+2
-2
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/complex

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/complex/PComplex.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
import com.oracle.graal.python.builtins.objects.object.PythonBuiltinObject;
2929
import com.oracle.graal.python.builtins.objects.type.PythonClass;
30-
import com.oracle.truffle.api.CompilerAsserts;
30+
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
3131

3232
public final class PComplex extends PythonBuiltinObject {
3333
/* Prime multiplier used in string and various other hashes in CPython. */
@@ -89,8 +89,8 @@ public double getImag() {
8989
}
9090

9191
@Override
92+
@TruffleBoundary
9293
public String toString() {
93-
CompilerAsserts.neverPartOfCompilation();
9494
if (Double.compare(real, 0.0) == 0) {
9595
return toString(imag) + "j";
9696
} else {

0 commit comments

Comments
 (0)