Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.ruby.nodes/src/com/oracle/truffle/ruby/nodes/debug/InactiveLocalDebugProbe.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.ruby.runtime.*; | |
14 import com.oracle.truffle.ruby.runtime.debug.*; | |
15 | |
16 public class InactiveLocalDebugProbe extends InactiveLeaveDebugProbe { | |
17 | |
18 private final MethodLocal methodLocal; | |
19 | |
20 public InactiveLocalDebugProbe(RubyContext context, MethodLocal methodLocal, Assumption inactiveAssumption) { | |
21 super(context, inactiveAssumption); | |
22 this.methodLocal = methodLocal; | |
23 } | |
24 | |
25 @Override | |
26 protected ActiveLeaveDebugProbe createActive() { | |
27 final RubyContext rubyContext = (RubyContext) getContext(); | |
28 final RubyDebugManager manager = rubyContext.getRubyDebugManager(); | |
29 return new ActiveLocalDebugProbe(rubyContext, methodLocal, manager.getAssumption(methodLocal), manager.getBreakpoint(methodLocal)); | |
30 } | |
31 | |
32 } |