nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/PropertyMap.java
changeset 27307 62ed492cbe63
parent 26768 751b0f427090
child 27356 2d407b9be8b0
equal deleted inserted replaced
27306:cfb08ee17d57 27307:62ed492cbe63
   510 
   510 
   511         final boolean sameType = oldProperty.getClass() == newProperty.getClass();
   511         final boolean sameType = oldProperty.getClass() == newProperty.getClass();
   512         assert sameType ||
   512         assert sameType ||
   513                 oldProperty instanceof AccessorProperty &&
   513                 oldProperty instanceof AccessorProperty &&
   514                 newProperty instanceof UserAccessorProperty :
   514                 newProperty instanceof UserAccessorProperty :
   515             "arbitrary replaceProperty attempted " + sameType + " oldProperty=" + oldProperty.getClass() + " newProperty=" + newProperty.getClass() + " [" + oldProperty.getCurrentType() + " => " + newProperty.getCurrentType() + "]";
   515             "arbitrary replaceProperty attempted " + sameType + " oldProperty=" + oldProperty.getClass() + " newProperty=" + newProperty.getClass() + " [" + oldProperty.getLocalType() + " => " + newProperty.getLocalType() + "]";
   516 
   516 
   517         newMap.flags = flags;
   517         newMap.flags = flags;
   518 
   518 
   519         /*
   519         /*
   520          * spillLength remains same in case (1) and (2) because of slot reuse. Only for case (3), we need
   520          * spillLength remains same in case (1) and (2) because of slot reuse. Only for case (3), we need