comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/instrument/InstrumentationTest.java @ 19876:1d6a7ea5de59

Truffle/Instrumentation: remove support for "probe-lite", an optimization for a particular use case that no longer seems worth the complexity.
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Mon, 16 Mar 2015 15:59:57 -0700
parents 907128d02b31
children 2e3cc2a27711
comparison
equal deleted inserted replaced
19865:1cbbdc29ab45 19876:1d6a7ea5de59
378 this.probeNode = newProbeNode; 378 this.probeNode = newProbeNode;
379 } 379 }
380 380
381 @Override 381 @Override
382 public Probe getProbe() { 382 public Probe getProbe() {
383 try { 383 return probeNode.getProbe();
384 return probeNode.getProbe();
385 } catch (IllegalStateException e) {
386 throw new IllegalStateException("Cannot call getProbe() on a wrapper that has no probe");
387 }
388 } 384 }
389 385
390 @Override 386 @Override
391 public Node getChild() { 387 public Node getChild() {
392 return child; 388 return child;