diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Visualizer.java @ 15630:2d63ce48d222

Truffle/Source Attribution: Replace direct creation of SourceSection objects with factory methods on Source; two of these greatly simplify source attribution by automatically computing either the row/column start location from a character offset or vice versa, depending on what?s made available from the parser. Minor API change on Visualizer.
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Tue, 13 May 2014 18:28:33 -0700
parents bb9473723904
children 225ce2657c55
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Visualizer.java	Mon May 12 21:29:29 2014 -0700
+++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Visualizer.java	Tue May 13 18:28:33 2014 -0700
@@ -61,7 +61,7 @@
     /**
      * Converts a value in the guest language to a display string.
      */
-    String displayValue(Object value);
+    String displayValue(ExecutionContext context, Object value);
 
     /**
      * Converts a slot identifier in the guest language to a display string.