Skip to content

Instantly share code, notes, and snippets.

@bjfish
Created March 6, 2015 17:00
Show Gist options
  • Save bjfish/f0d7bdbdc7d52150d409 to your computer and use it in GitHub Desktop.
Save bjfish/f0d7bdbdc7d52150d409 to your computer and use it in GitHub Desktop.
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
Copy link
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