comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/StandardSyntaxTag.java @ 16576:a01fe4b301a8

Truffle/Instrument: new syntax tags for periodically appearing locations.
author Chris Seaton <chris.seaton@oracle.com>
date Tue, 22 Jul 2014 12:44:55 +0100
parents 50d79ad439f1
children e3c95cbbb50c
comparison
equal deleted inserted replaced
16575:adafceb4da4a 16576:a01fe4b301a8
54 THROW("throw", "creator of an exception"), 54 THROW("throw", "creator of an exception"),
55 55
56 /** 56 /**
57 * Marker for a location where ordinary "stepping" should halt. 57 * Marker for a location where ordinary "stepping" should halt.
58 */ 58 */
59 STATEMENT("statement", "basic unit of the language, suitable for \"stepping\" in a debugger"); 59 STATEMENT("statement", "basic unit of the language, suitable for \"stepping\" in a debugger"),
60
61 /**
62 * Marker for the start of the body of a method.
63 */
64 START_METHOD("start-method", "start of the body of a method"),
65
66 /**
67 * Marker for the start of the body of a loop.
68 */
69 START_LOOP("start-loop", "start of the body of a loop"),
70
71 /**
72 * Marker that is attached to some arbitrary locations that appear often-enough in an AST so
73 * that a location with this tag is regularly executed. Could be the start of method and loop
74 * bodies. May be used to implement some kind of safepoint functionality.
75 */
76 PERIODIC("periodic", "arbitrary locations that appear often-enough in an AST so that a location with this tag is regularly executed");
60 77
61 private final String name; 78 private final String name;
62 private final String description; 79 private final String description;
63 80
64 private StandardSyntaxTag(String name, String description) { 81 private StandardSyntaxTag(String name, String description) {