src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/visitor/NodeOperatorVisitor.java
changeset 48844 09e128cfff3e
parent 47216 71c04702a3d5
equal deleted inserted replaced
48843:21efc1774302 48844:09e128cfff3e
   141             return enterBIT_OR(binaryNode);
   141             return enterBIT_OR(binaryNode);
   142         case BIT_XOR:
   142         case BIT_XOR:
   143             return enterBIT_XOR(binaryNode);
   143             return enterBIT_XOR(binaryNode);
   144         case COMMARIGHT:
   144         case COMMARIGHT:
   145             return enterCOMMARIGHT(binaryNode);
   145             return enterCOMMARIGHT(binaryNode);
   146         case COMMALEFT:
       
   147             return enterCOMMALEFT(binaryNode);
       
   148         case DIV:
   146         case DIV:
   149             return enterDIV(binaryNode);
   147             return enterDIV(binaryNode);
   150         case EQ:
   148         case EQ:
   151             return enterEQ(binaryNode);
   149             return enterEQ(binaryNode);
   152         case EQ_STRICT:
   150         case EQ_STRICT:
   225             return leaveBIT_OR(binaryNode);
   223             return leaveBIT_OR(binaryNode);
   226         case BIT_XOR:
   224         case BIT_XOR:
   227             return leaveBIT_XOR(binaryNode);
   225             return leaveBIT_XOR(binaryNode);
   228         case COMMARIGHT:
   226         case COMMARIGHT:
   229             return leaveCOMMARIGHT(binaryNode);
   227             return leaveCOMMARIGHT(binaryNode);
   230         case COMMALEFT:
       
   231             return leaveCOMMALEFT(binaryNode);
       
   232         case DIV:
   228         case DIV:
   233             return leaveDIV(binaryNode);
   229             return leaveDIV(binaryNode);
   234         case EQ:
   230         case EQ:
   235             return leaveEQ(binaryNode);
   231             return leaveEQ(binaryNode);
   236         case EQ_STRICT:
   232         case EQ_STRICT:
   813     public Node leaveBIT_XOR(final BinaryNode binaryNode) {
   809     public Node leaveBIT_XOR(final BinaryNode binaryNode) {
   814         return leaveDefault(binaryNode);
   810         return leaveDefault(binaryNode);
   815     }
   811     }
   816 
   812 
   817     /**
   813     /**
   818      * Binary enter - callback for entering comma left operator
       
   819      * (a, b) where the result is a
       
   820      *
       
   821      * @param  binaryNode the node
       
   822      * @return true if traversal should continue and node children be traversed, false otherwise
       
   823      */
       
   824     public boolean enterCOMMALEFT(final BinaryNode binaryNode) {
       
   825         return enterDefault(binaryNode);
       
   826     }
       
   827 
       
   828     /**
       
   829      * Binary leave - callback for leaving a comma left operator
       
   830      * (a, b) where the result is a
       
   831      *
       
   832      * @param  binaryNode the node
       
   833      * @return processed node, which will replace the original one, or the original node
       
   834      */
       
   835     public Node leaveCOMMALEFT(final BinaryNode binaryNode) {
       
   836         return leaveDefault(binaryNode);
       
   837     }
       
   838 
       
   839     /**
       
   840      * Binary enter - callback for entering comma right operator
   814      * Binary enter - callback for entering comma right operator
   841      * (a, b) where the result is b
   815      * (a, b) where the result is b
   842      *
   816      *
   843      * @param  binaryNode the node
   817      * @param  binaryNode the node
   844      * @return true if traversal should continue and node children be traversed, false otherwise
   818      * @return true if traversal should continue and node children be traversed, false otherwise