Mercurial > hg > Members > kono > jpf-core
comparison src/main/gov/nasa/jpf/jvm/JVMCodeBuilder.java @ 28:7be90179bb3b
Provided support for double colon operator used for lamabda expressions. Fixed a bug related to generating names for funcation object classes (by supporting double colon operator, a new stragety needed to generate unique names for function objects. To achive that the bootstrap ids are incorporated into names). Finally modified the method that retrieves the SAM from functional interfaces.
author | nastaran <nastaran.shafiei@gmail.com> |
---|---|
date | Thu, 25 Jun 2015 13:20:50 -0700 |
parents | 6774e2e08d37 |
children |
comparison
equal
deleted
inserted
replaced
27:8aded593a50f | 28:7be90179bb3b |
---|---|
1169 | 1169 |
1170 @Override public void new_(int cpClassIndex) { | 1170 @Override public void new_(int cpClassIndex) { |
1171 add( insnFactory.new_(cf.classNameAt(cpClassIndex))); | 1171 add( insnFactory.new_(cf.classNameAt(cpClassIndex))); |
1172 pc+=3; | 1172 pc+=3; |
1173 } | 1173 } |
1174 public void new_(String className) { | |
1175 add( insnFactory.new_(className)); | |
1176 pc+=3; | |
1177 } | |
1174 | 1178 |
1175 @Override public void newarray(int typeCode) { | 1179 @Override public void newarray(int typeCode) { |
1176 add( insnFactory.newarray(typeCode)); | 1180 add( insnFactory.newarray(typeCode)); |
1177 pc+=2; | 1181 pc+=2; |
1178 } | 1182 } |