Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Unique IDs in Graal Output
Add this method to RubyNode -
public static void notDesignedForCompilation(String message) {
CompilerAsserts.neverPartOfCompilation(message);
}
Add Unique ID to notDesignedForCompilation method in All Methods -
@Specialization(guards = {"!isRubyModule", "!isRubyBignum"})
public Object alias(RubyBasicObject object) {
notDesignedForCompilation("5c0619014d0a4e0f9880499ff32473e1");
Graal Output
[truffle] opt fail parse_string:json_test.rb:1068 |Reason com.oracle.graal.nodes.util.GraphUtil$2: This code path should never be part of a compilation. [14342|Const(50ccd29854f84c51ab8b57d2c17deb1e)]
[truffle] opt fail parse_object:json_test.rb:1168 |Reason com.oracle.graal.nodes.util.GraphUtil$2: This code path should never be part of a compilation. [29103|Const(f5e9acd064e245d5b35a193003490752)]
@bjfish

This comment has been minimized.

Copy link
Owner Author

bjfish commented Mar 6, 2015

GraalOutput scroll all the way to the right too see unique id:
This code path should never be part of a compilation. [14342|Const(50ccd29854f84c51ab8b57d2c17deb1e)]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.