# HG changeset patch # User Chris Seaton # Date 1406029495 -3600 # Node ID a01fe4b301a8984691025717e615c842c25362b2 # Parent adafceb4da4ada57a3b263ff5587fec11508717b Truffle/Instrument: new syntax tags for periodically appearing locations. diff -r adafceb4da4a -r a01fe4b301a8 graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/StandardSyntaxTag.java --- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/StandardSyntaxTag.java Sun Jul 20 17:10:04 2014 +0200 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/StandardSyntaxTag.java Tue Jul 22 12:44:55 2014 +0100 @@ -56,7 +56,24 @@ /** * Marker for a location where ordinary "stepping" should halt. */ - STATEMENT("statement", "basic unit of the language, suitable for \"stepping\" in a debugger"); + STATEMENT("statement", "basic unit of the language, suitable for \"stepping\" in a debugger"), + + /** + * Marker for the start of the body of a method. + */ + START_METHOD("start-method", "start of the body of a method"), + + /** + * Marker for the start of the body of a loop. + */ + START_LOOP("start-loop", "start of the body of a loop"), + + /** + * Marker that is attached to some arbitrary locations that appear often-enough in an AST so + * that a location with this tag is regularly executed. Could be the start of method and loop + * bodies. May be used to implement some kind of safepoint functionality. + */ + PERIODIC("periodic", "arbitrary locations that appear often-enough in an AST so that a location with this tag is regularly executed"); private final String name; private final String description;