Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.ruby.nodes/src/com/oracle/truffle/ruby/nodes/debug/ActiveLineDebugProbe.java @ 13918:22bf5a8ba9eb
Ruby: restore prototype debugger.
author | Chris Seaton <chris.seaton@oracle.com> |
---|---|
date | Mon, 10 Feb 2014 03:39:21 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
13917:f2345d7c52ef | 13918:22bf5a8ba9eb |
---|---|
1 /* | |
2 * Copyright (c) 2013, 2014 Oracle and/or its affiliates. All rights reserved. This | |
3 * code is released under a tri EPL/GPL/LGPL license. You can use it, | |
4 * redistribute it and/or modify it under the terms of the: | |
5 * | |
6 * Eclipse Public License version 1.0 | |
7 * GNU General Public License version 2 | |
8 * GNU Lesser General Public License version 2.1 | |
9 */ | |
10 package com.oracle.truffle.ruby.nodes.debug; | |
11 | |
12 import com.oracle.truffle.api.*; | |
13 import com.oracle.truffle.api.source.*; | |
14 import com.oracle.truffle.ruby.runtime.*; | |
15 import com.oracle.truffle.ruby.runtime.core.*; | |
16 import com.oracle.truffle.ruby.runtime.debug.*; | |
17 | |
18 public class ActiveLineDebugProbe extends ActiveEnterDebugProbe { | |
19 | |
20 private final SourceLineLocation sourceLine; | |
21 | |
22 public ActiveLineDebugProbe(RubyContext context, SourceLineLocation sourceLine, Assumption activeAssumption, RubyProc proc) { | |
23 super(context, activeAssumption, proc); | |
24 this.sourceLine = sourceLine; | |
25 } | |
26 | |
27 @Override | |
28 protected InactiveEnterDebugProbe createInactive() { | |
29 final RubyContext rubyContext = (RubyContext) getContext(); | |
30 final RubyDebugManager manager = rubyContext.getRubyDebugManager(); | |
31 return new InactiveLineDebugProbe(rubyContext, sourceLine, manager.getAssumption(sourceLine)); | |
32 } | |
33 | |
34 } |