mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
f6c346cc76
================================= Rhino: use of Node.get/putIntProperty to store integer values The patch replaces usage like node.putProp(PROPERTY, new Integer(int_value)) ((Integer)node.getProp(PROPERTY)) by node.putIntProp(PROPERTY, int_value) node.getIntProp(PROPERTY, defaultValue) node.getExistingIntProp(PROPERTY) to avoid creation of Integer wrapper objects while storing integer properties in Nodes. Patch also ads Node.removeProp to explicitly remove Node properties ================================= The patch changes the type of the first argument of Interpreter.addByte from byte to int so there is no need to cast int arguments, adds addShort(int value, int iCodeTop), getShort(byte[] iCode, int pc) to pack/unpack short values from pc array, replaces calls to getString(stringTable, byte[] iCode, int pc) by stringTable[getShort(iCode, pc)] and similar for getNumber It makes Interpreter.java easy to follow and slightly shrink its class file. |
||
---|---|---|
.. | ||
benchmarks | ||
js2 | ||
jsd | ||
jsdj | ||
jsj | ||
macbuild | ||
ref | ||
rhino | ||
src | ||
tests | ||
.cvsignore | ||
landbranch.pl | ||
Makefile.in | ||
makefile.win |