diff graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLContext.java @ 13455:69d2e4baa215

Truffle: new infrastructure related to instrumentation, and in particular debugging: support for managing Source objects; framework for generalized "instrumentation proxy nodes" (to be inserted into ASTs with no runtime cost when inactive), and "probes" (which can be attached to proxy nodes to receive event notification); a rudimentary interface and abstract implementation for a "debug manager" (mostly a placeholder at this point); and the beginning of a language-agnostic ExecutionContext interface.
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Tue, 17 Dec 2013 20:22:45 -0800
parents 71991b7a0f14
children 7c418666c6c9
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLContext.java	Thu Dec 12 14:56:52 2013 -0800
+++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLContext.java	Tue Dec 17 20:22:45 2013 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -24,17 +24,20 @@
 
 import java.io.*;
 
+import com.oracle.truffle.api.source.*;
 import com.oracle.truffle.sl.builtins.*;
 
 public final class SLContext {
 
     private final PrintStream printOutput;
     private final SLFunctionRegistry functionRegistry;
+    private final SourceManager sourceManager;
 
     public SLContext(PrintStream print) {
         this.printOutput = print;
         this.functionRegistry = new SLFunctionRegistry();
         DefaultBuiltins.install(this);
+        this.sourceManager = new SourceManager();
     }
 
     public PrintStream getPrintOutput() {
@@ -45,4 +48,8 @@
         return functionRegistry;
     }
 
+    public SourceManager getSourceManager() {
+        return sourceManager;
+    }
+
 }