-
- Downloads
Patch from Igor:
Currently Rhino source has quite a few places with code like (String)node.getDatum() or ((Number)node.getDatum()).doubleValue(). The patch changes this usage to call node.getString() or node.getDouble(). It also adds new constructors to Node to accept int or double values in addition to Object datum to replace new Node(token, new Integer(x)) by Node(token, x) etc. It may allow in future not to create a wrapper object for int or double datum to speed up parsing.
Showing
- js/rhino/src/org/mozilla/javascript/IRFactory.java 26 additions, 34 deletionsjs/rhino/src/org/mozilla/javascript/IRFactory.java
- js/rhino/src/org/mozilla/javascript/Node.java 19 additions, 0 deletionsjs/rhino/src/org/mozilla/javascript/Node.java
- js/rhino/src/org/mozilla/javascript/NodeTransformer.java 3 additions, 3 deletionsjs/rhino/src/org/mozilla/javascript/NodeTransformer.java
- js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java 62 additions, 62 deletionsjs/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
- js/rhino/src/org/mozilla/javascript/optimizer/Optimizer.java 22 additions, 24 deletionsjs/rhino/src/org/mozilla/javascript/optimizer/Optimizer.java
Loading
Please register or sign in to comment