comparison graal/com.oracle.truffle.ruby.test/src/com/oracle/truffle/ruby/test/RubyTests.java @ 14094:3f27e57439ed

Truffle/Instrumentation: significant rearrangement (including moved class) and extension of the Truffle Instrumentation Framework. New interfaces include DebugContext (which can be attached to the ExecutionContext), through which access is provided to possibly language-specific (a) node instrumentation, (b) debug services manager, (c) notification when programs halt, (d) display of language values, and (e) display of variable identifiers.
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Mon, 03 Feb 2014 20:58:23 -0800
parents 497fada09efb
children cf16ff2dba69
comparison
equal deleted inserted replaced
13736:64fa70319890 14094:3f27e57439ed
1 /* 1 /*
2 * Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved. This 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, 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: 4 * redistribute it and/or modify it under the terms of the:
5 * 5 *
6 * Eclipse Public License version 1.0 6 * Eclipse Public License version 1.0
7 * GNU General Public License version 2 7 * GNU General Public License version 2
78 } 78 }
79 79
80 }); 80 });
81 81
82 final RubyContext context = new RubyContext(new Configuration(configurationBuilder), new JRubyParser()); 82 final RubyContext context = new RubyContext(new Configuration(configurationBuilder), new JRubyParser());
83 context.setDebugContext(new MinimumRubyDebugContext(context));
83 84
84 CoreMethodNodeManager.addMethods(context.getCoreLibrary().getObjectClass()); 85 CoreMethodNodeManager.addMethods(context.getCoreLibrary().getObjectClass());
85 context.getCoreLibrary().initializeAfterMethodsAdded(); 86 context.getCoreLibrary().initializeAfterMethodsAdded();
86 87
87 for (String arg : args) { 88 for (String arg : args) {