changeset 14098:e7f611868ffb

merge
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Wed, 05 Mar 2014 19:54:38 -0800
parents a124cc76cde9
children 34efe38ee8d8
files graal/com.oracle.truffle.ruby.parser/src/com/oracle/truffle/ruby/parser/MinimalRubyDebugContext.java
diffstat 1 files changed, 0 insertions(+), 62 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.truffle.ruby.parser/src/com/oracle/truffle/ruby/parser/MinimalRubyDebugContext.java	Wed Mar 05 19:40:15 2014 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,62 +0,0 @@
-/*
- * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. This
- * code is released under a tri EPL/GPL/LGPL license. You can use it,
- * redistribute it and/or modify it under the terms of the:
- *
- * Eclipse Public License version 1.0
- * GNU General Public License version 2
- * GNU Lesser General Public License version 2.1
- */
-package com.oracle.truffle.ruby.parser;
-
-import com.oracle.truffle.api.debug.*;
-import com.oracle.truffle.api.frame.*;
-import com.oracle.truffle.api.nodes.*;
-import com.oracle.truffle.ruby.nodes.instrument.*;
-import com.oracle.truffle.ruby.runtime.*;
-
-/**
- * Minimum possible debugging support for Ruby implementation. Some facilities are needed to support
- * the Ruby trace mechanism.
- */
-public final class MinimalRubyDebugContext implements DebugContext {
-
-    private final RubyContext executionContext;
-    private final RubyNodeInstrumenter instrumenter;
-    private final DebugManager debugManager;
-
-    public MinimalRubyDebugContext(RubyContext context) {
-        this.executionContext = context;
-        this.instrumenter = new MinimalRubyNodeInstrumenter();
-        this.debugManager = new DefaultDebugManager(context);
-    }
-
-    public RubyContext getContext() {
-        return executionContext;
-    }
-
-    public RubyNodeInstrumenter getNodeInstrumenter() {
-        return instrumenter;
-    }
-
-    public DebugManager getDebugManager() {
-        return debugManager;
-    }
-
-    public ASTPrinter getASTPrinter() {
-        return null;
-    }
-
-    public String displayValue(Object value) {
-        return value.toString();
-    }
-
-    public String displayIdentifier(FrameSlot slot) {
-        return slot.getIdentifier().toString();
-    }
-
-    public void executionHalted(Node node, VirtualFrame frame) {
-        assert false;
-    }
-
-}