< prev index next >

test/testlibrary/jittester/src/jdk/test/lib/jittester/classes/Klass.java

Print this page

        

*** 68,90 **** ArrayList<TypeKlass> interfaces, String name, int level, IRNode variableDeclarations, IRNode constructorDefinitions, IRNode functionDefinitions, IRNode abstractFunctionRedefinitions, IRNode overridenFunctionRedefitions, IRNode functionDeclarations, IRNode printVariablesBlock) { this.thisKlass = thisKlass; ! klass = thisKlass; this.parentKlass = parent; this.interfaces = interfaces; this.name = name; this.level = level; ! addChild(variableDeclarations); ! addChild(constructorDefinitions); ! addChild(abstractFunctionRedefinitions); ! addChild(overridenFunctionRedefitions); ! addChild(functionDefinitions); ! addChild(functionDeclarations); ! addChild(printVariablesBlock); } @Override public long complexity() { return 0; --- 68,92 ---- ArrayList<TypeKlass> interfaces, String name, int level, IRNode variableDeclarations, IRNode constructorDefinitions, IRNode functionDefinitions, IRNode abstractFunctionRedefinitions, IRNode overridenFunctionRedefitions, IRNode functionDeclarations, IRNode printVariablesBlock) { + super(thisKlass); this.thisKlass = thisKlass; ! owner = thisKlass; this.parentKlass = parent; this.interfaces = interfaces; this.name = name; this.level = level; ! resizeUpChildren(KlassPart.values().length); ! setChild(KlassPart.DATA_MEMBERS.ordinal(), variableDeclarations); ! setChild(KlassPart.CONSTRUCTORS.ordinal(), constructorDefinitions); ! setChild(KlassPart.REDEFINED_FUNCTIONS.ordinal(), abstractFunctionRedefinitions); ! setChild(KlassPart.OVERRIDEN_FUNCTIONS.ordinal(), overridenFunctionRedefitions); ! setChild(KlassPart.MEMBER_FUNCTIONS.ordinal(), functionDefinitions); ! setChild(KlassPart.MEMBER_FUNCTIONS_DECLARATIONS.ordinal(), functionDeclarations); ! setChild(KlassPart.PRINT_VARIABLES.ordinal(), printVariablesBlock); } @Override public long complexity() { return 0;
< prev index next >