< prev index next >

src/jdk/nashorn/internal/runtime/arrays/LengthNotWritableFilter.java

Print this page

        

*** 89,114 **** } return underlying.getIntOptimistic(index, programPoint); } @Override - public long getLong(final int index) { - if (index >= length()) { - return JSType.toLong(get(index)); - } - return underlying.getLong(index); - } - - @Override - public long getLongOptimistic(final int index, final int programPoint) { - if (index >= length()) { - return JSType.toLongOptimistic(get(index), programPoint); - } - return underlying.getLongOptimistic(index, programPoint); - } - - @Override public double getDouble(final int index) { if (index >= length()) { return JSType.toNumber(get(index)); } return underlying.getDouble(index); --- 89,98 ----
*** 144,162 **** if (checkAdd(index, value)) { return this; } underlying = underlying.set(index, value, strict); return this; - } - - @Override - public ArrayData set(final int index, final long value, final boolean strict) { - if (checkAdd(index, value)) { - return this; - } - underlying = underlying.set(index, value, strict); - return this; } @Override public ArrayData set(final int index, final double value, final boolean strict) { if (checkAdd(index, value)) { --- 128,137 ----
< prev index next >