Mercurial > hg > truffle
changeset 18369:966034c24f0e
Truffle: make NodeInterface a pure marker interface
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Thu, 13 Nov 2014 11:57:27 +0100 |
parents | cb3c93857cbb |
children | 6713fef8c859 |
files | CHANGELOG.md graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeInterface.java |
diffstat | 2 files changed, 4 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGELOG.md Thu Nov 13 17:25:08 2014 +0100 +++ b/CHANGELOG.md Thu Nov 13 11:57:27 2014 +0100 @@ -17,6 +17,10 @@ * Added PrimitiveValueProfile. * Added -G:TruffleTimeThreshold=5000 option to defer compilation for call targets * Added RootNode#getExecutionContext to identify nodes with languages +* Removed `FrameTypeConversion` interface and changed the corresponding `FrameDescriptor` constructor to have a default value parameter instead. +* Removed `CompilerDirectives.unsafeFrameCast` (equivalent to a `(MaterializedFrame)` cast). +* Added `TruffleRuntime#getCapability` API method. +* Added `NodeInterface` and allowed child field to be declared with interfaces that extend it. * ... ## Version 0.5 @@ -33,10 +37,6 @@ * Added `NeverValidAssumption` to complement `AlwaysValidAssumption`. * Fixed a bug in `AssumedValue` that may not invalidate correctly. * New option, `-G:+/-TruffleCompilationExceptionsAreThrown`, that will throw an `OptimizationFailedException` for compiler errors. -* Removed `FrameTypeConversion` interface and changed the corresponding `FrameDescriptor` constructor to have a default value parameter instead. -* Removed `CompilerDirectives.unsafeFrameCast` (equivalent to a `(MaterializedFrame)` cast). -* Added `TruffleRuntime#getCapability` API method. -* Added `NodeInterface` and allowed child field to be declared with interfaces that extend it. ## Version 0.4 19-Aug-2014, [Repository Revision](http://hg.openjdk.java.net/graal/graal/shortlog/graal-0.4)
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeInterface.java Thu Nov 13 17:25:08 2014 +0100 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeInterface.java Thu Nov 13 11:57:27 2014 +0100 @@ -24,29 +24,10 @@ */ package com.oracle.truffle.api.nodes; -import com.oracle.truffle.api.source.*; - /** * Common base interface for all Truffle nodes. * * @see Node */ public interface NodeInterface { - SourceSection getSourceSection(); - - SourceSection getEncapsulatingSourceSection(); - - Node copy(); - - <T extends Node> T replace(T newNode, CharSequence reason); - - <T extends Node> T replace(T newNode); - - Node getParent(); - - void accept(NodeVisitor nodeVisitor); - - Iterable<Node> getChildren(); - - RootNode getRootNode(); }