< prev index next >

test/jdk/lib/testlibrary/bytecode/jdk/experimental/bytecode/TypedCodeBuilder.java

Print this page
rev 47761 : 8186209: Tool support for ConstantDynamic
8186046: Minimal ConstantDynamic support
Reviewed-by: acorn
Contributed-by: lois.foltan@oracle.com, john.r.rose@oracle.com, paul.sandoz@oracle.com
* * *
Minor Hotspot code cleanup changes resulting from condy review
Summary: Addressed missing DynamicInError condition, removed unused TraceDynamicConstants
Reviewed-by: acorn, psandoz
rev 47762 : 8187742: Minimal set of bootstrap methods for constant dynamic
Contributed-by: brian.goetz@oracle.com, john.r.rose@oracle.com, paul.sandoz@oracle.com
Reviewed-by: forax


1016             }
1017 
1018             @Override
1019             public int putType(T t) {
1020                 throw new IllegalStateException();
1021             }
1022 
1023             @Override
1024             public int putMethodType(T t) {
1025                 type = typeHelper.type(typeHelper.symbolFrom("java/lang/invoke/MethodType"));
1026                 return poolHelper.putMethodType(t);
1027             }
1028 
1029             @Override
1030             public int putHandle(int refKind, S owner, CharSequence name, T t) {
1031                 type = typeHelper.type(typeHelper.symbolFrom("java/lang/invoke/MethodHandle"));
1032                 return poolHelper.putHandle(refKind, owner, name, t);
1033             }
1034 
1035             @Override






1036             public int putInvokeDynamic(CharSequence invokedName, T invokedType, S bsmClass, CharSequence bsmName, T bsmType, Consumer<StaticArgListBuilder<S, T, E>> staticArgs) {
1037                 throw new IllegalStateException();
1038             }
1039 
1040             @Override
1041             public int size() {
1042                 throw new IllegalStateException();
1043             }
1044 
1045             @Override
1046             public E entries() {
1047                 throw new IllegalStateException();
1048             }
1049     }
1050 
1051     public C load(int index) {
1052         return load(typeHelper.tag(state.locals.get(index)), index);
1053     }
1054 
1055     public C store(int index) {




1016             }
1017 
1018             @Override
1019             public int putType(T t) {
1020                 throw new IllegalStateException();
1021             }
1022 
1023             @Override
1024             public int putMethodType(T t) {
1025                 type = typeHelper.type(typeHelper.symbolFrom("java/lang/invoke/MethodType"));
1026                 return poolHelper.putMethodType(t);
1027             }
1028 
1029             @Override
1030             public int putHandle(int refKind, S owner, CharSequence name, T t) {
1031                 type = typeHelper.type(typeHelper.symbolFrom("java/lang/invoke/MethodHandle"));
1032                 return poolHelper.putHandle(refKind, owner, name, t);
1033             }
1034 
1035             @Override
1036             public int putHandle(int refKind, S owner, CharSequence name, T t, boolean isInterface) {
1037                 type = typeHelper.type(typeHelper.symbolFrom("java/lang/invoke/MethodHandle"));
1038                 return poolHelper.putHandle(refKind, owner, name, t, isInterface);
1039             }
1040 
1041             @Override
1042             public int putInvokeDynamic(CharSequence invokedName, T invokedType, S bsmClass, CharSequence bsmName, T bsmType, Consumer<StaticArgListBuilder<S, T, E>> staticArgs) {
1043                 throw new IllegalStateException();
1044             }
1045 
1046             @Override
1047             public int size() {
1048                 throw new IllegalStateException();
1049             }
1050 
1051             @Override
1052             public E entries() {
1053                 throw new IllegalStateException();
1054             }
1055     }
1056 
1057     public C load(int index) {
1058         return load(typeHelper.tag(state.locals.get(index)), index);
1059     }
1060 
1061     public C store(int index) {


< prev index next >