< prev index next >

buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/ScriptClassInfoCollector.java

Print this page

        

*** 208,217 **** --- 208,218 ---- private Integer attributes; private Integer arity; private Where where; private boolean isSpecializedConstructor; private boolean isOptimistic; + private boolean convertsNumericArgs; private Type linkLogicClass = MethodGenerator.EMPTY_LINK_LOGIC_TYPE; @Override public void visit(final String annotationName, final Object annotationValue) { switch (annotationName) {
*** 236,245 **** --- 237,250 ---- this.isOptimistic = (Boolean)annotationValue; break; case "linkLogic": this.linkLogicClass = (Type)annotationValue; break; + case "convertsNumericArgs": + assert annoKind == Kind.SPECIALIZED_FUNCTION; + this.convertsNumericArgs = (Boolean)annotationValue; + break; default: break; } super.visit(annotationName, annotationValue);
*** 296,305 **** --- 301,311 ---- } memInfo.setWhere(where); memInfo.setLinkLogicClass(linkLogicClass); memInfo.setIsSpecializedConstructor(isSpecializedConstructor); memInfo.setIsOptimistic(isOptimistic); + memInfo.setConvertsNumericArgs(convertsNumericArgs); } }; } return delegateAV;
< prev index next >