Ejemplo n.º 1
0
 private static MethodType unwrapWithNoPrims(MethodType wt) {
   assert (!wt.hasPrimitives());
   MethodType uwt = wt.wrapAlt;
   if (uwt == null) {
     // fill in lazily
     uwt = MethodTypeForm.canonicalize(wt, MethodTypeForm.UNWRAP, MethodTypeForm.UNWRAP);
     if (uwt == null) uwt = wt; // type has no wrappers or prims at all
     wt.wrapAlt = uwt;
   }
   return uwt;
 }
Ejemplo n.º 2
0
 private static MethodType wrapWithPrims(MethodType pt) {
   assert (pt.hasPrimitives());
   MethodType wt = pt.wrapAlt;
   if (wt == null) {
     // fill in lazily
     wt = MethodTypeForm.canonicalize(pt, MethodTypeForm.WRAP, MethodTypeForm.WRAP);
     assert (wt != null);
     pt.wrapAlt = wt;
   }
   return wt;
 }