--- a/nashorn/src/jdk/nashorn/internal/ir/FunctionNode.java Thu Jan 10 15:28:05 2013 +0100
+++ b/nashorn/src/jdk/nashorn/internal/ir/FunctionNode.java Fri Jan 11 10:40:51 2013 +0100
@@ -43,7 +43,6 @@
import jdk.nashorn.internal.codegen.MethodEmitter;
import jdk.nashorn.internal.codegen.Namespace;
import jdk.nashorn.internal.codegen.Splitter;
-import jdk.nashorn.internal.codegen.Transform;
import jdk.nashorn.internal.codegen.types.Type;
import jdk.nashorn.internal.ir.annotations.Ignore;
import jdk.nashorn.internal.ir.visitor.NodeVisitor;
@@ -189,14 +188,9 @@
/** Does this function need a scope object? */
private static final int NEEDS_SCOPE = HAS_ALL_VARS_IN_SCOPE | IS_VAR_ARG;
-
/** What is the return type of this function? */
private Type returnType = Type.OBJECT;
- /** Transforms that have been applied to this function, a list as some transforms conceivably can run many times */
- @Ignore
- private final List<Class<? extends Transform>> appliedTransforms;
-
/**
* Used to keep track of a function's parent blocks.
* This is needed when a (finally body) block is cloned than contains inner functions.
@@ -232,7 +226,6 @@
this.labelStack = new Stack<>();
this.controlStack = new Stack<>();
this.declarations = new ArrayList<>();
- this.appliedTransforms = new ArrayList<>();
// my block -> function is this. We added @SuppressWarnings("LeakingThisInConstructor") as NetBeans identifies
// it as such a leak - this is a false positive as we're setting this into a field of the object being
// constructed, so it can't be seen from other threads.
@@ -266,7 +259,6 @@
this.labelStack = new Stack<>();
this.controlStack = new Stack<>();
this.declarations = new ArrayList<>();
- this.appliedTransforms = new ArrayList<>();
for (final VarNode decl : functionNode.getDeclarations()) {
declarations.add((VarNode) cs.existingOrCopy(decl)); //TODO same?
@@ -793,23 +785,6 @@
}
/**
- * Check if a {@link Transform} has been taken place to this method.
- * @param transform to check for
- * @return true if transform has been applied
- */
- public boolean isTransformApplied(final Class<? extends Transform> transform) {
- return appliedTransforms.contains(transform);
- }
-
- /**
- * Tag this function with an applied transform
- * @param transform the transform
- */
- public void registerTransform(final Class<? extends Transform> transform) {
- appliedTransforms.add(transform);
- }
-
- /**
* Checks if this function is a sub-function generated by splitting a larger one
* @see Splitter
*