< prev index next >

test/jdk/lib/testlibrary/bytecode/jdk/experimental/bytecode/PoolHelper.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


  41     int putMethodRef(S owner, CharSequence name, T type, boolean isInterface);
  42 
  43     int putUtf8(CharSequence s);
  44 
  45     int putInt(int i);
  46 
  47     int putFloat(float f);
  48 
  49     int putLong(long l);
  50 
  51     int putDouble(double d);
  52 
  53     int putString(String s);
  54 
  55     int putType(T t);
  56 
  57     int putMethodType(T t);
  58 
  59     int putHandle(int refKind, S owner, CharSequence name, T type);
  60 


  61     int putInvokeDynamic(CharSequence invokedName, T invokedType, S bsmClass, CharSequence bsmName, T bsmType, Consumer<StaticArgListBuilder<S, T, E>> staticArgs);
  62 
  63     int putDynamicConstant(CharSequence constName, T constType, S bsmClass, CharSequence bsmName, T bsmType, Consumer<StaticArgListBuilder<S, T, E>> staticArgs);
  64 
  65     int size();
  66 
  67     E entries();
  68 
  69     interface StaticArgListBuilder<S, T, E> {
  70         StaticArgListBuilder<S, T, E> add(int i);
  71         StaticArgListBuilder<S, T, E> add(float f);
  72         StaticArgListBuilder<S, T, E> add(long l);
  73         StaticArgListBuilder<S, T, E> add(double d);
  74         StaticArgListBuilder<S, T, E> add(String s);
  75         StaticArgListBuilder<S, T, E> add(int refKind, S owner, CharSequence name, T type);
  76         <Z> StaticArgListBuilder<S, T, E> add(Z z, ToIntBiFunction<PoolHelper<S, T, E>, Z> poolFunc);
  77         StaticArgListBuilder<S, T, E> add(CharSequence constName, T constType, S bsmClass, CharSequence bsmName, T bsmType, Consumer<StaticArgListBuilder<S, T, E>> staticArgList);
  78     }
  79 }


  41     int putMethodRef(S owner, CharSequence name, T type, boolean isInterface);
  42 
  43     int putUtf8(CharSequence s);
  44 
  45     int putInt(int i);
  46 
  47     int putFloat(float f);
  48 
  49     int putLong(long l);
  50 
  51     int putDouble(double d);
  52 
  53     int putString(String s);
  54 
  55     int putType(T t);
  56 
  57     int putMethodType(T t);
  58 
  59     int putHandle(int refKind, S owner, CharSequence name, T type);
  60 
  61     int putHandle(int refKind, S owner, CharSequence name, T type, boolean isInterface);
  62 
  63     int putInvokeDynamic(CharSequence invokedName, T invokedType, S bsmClass, CharSequence bsmName, T bsmType, Consumer<StaticArgListBuilder<S, T, E>> staticArgs);
  64 
  65     int putDynamicConstant(CharSequence constName, T constType, S bsmClass, CharSequence bsmName, T bsmType, Consumer<StaticArgListBuilder<S, T, E>> staticArgs);
  66 
  67     int size();
  68 
  69     E entries();
  70 
  71     interface StaticArgListBuilder<S, T, E> {
  72         StaticArgListBuilder<S, T, E> add(int i);
  73         StaticArgListBuilder<S, T, E> add(float f);
  74         StaticArgListBuilder<S, T, E> add(long l);
  75         StaticArgListBuilder<S, T, E> add(double d);
  76         StaticArgListBuilder<S, T, E> add(String s);
  77         StaticArgListBuilder<S, T, E> add(int refKind, S owner, CharSequence name, T type);
  78         <Z> StaticArgListBuilder<S, T, E> add(Z z, ToIntBiFunction<PoolHelper<S, T, E>, Z> poolFunc);
  79         StaticArgListBuilder<S, T, E> add(CharSequence constName, T constType, S bsmClass, CharSequence bsmName, T bsmType, Consumer<StaticArgListBuilder<S, T, E>> staticArgList);
  80     }
  81 }
< prev index next >