nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/PropertyMap.java
equal
deleted
inserted
replaced
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 |