Examples of Fixnum


Examples of org.jruby.compiler.ir.operands.Fixnum

    public Operand buildBegin(BeginNode beginNode, IRScope s) {
        return build(beginNode.getBodyNode(), s);
    }

    public Operand buildBignum(BignumNode node, IRScope s) {
        return new Fixnum(node.getValue());
    }
View Full Code Here

Examples of org.jruby.compiler.ir.operands.Fixnum

                throw new NotCompilableException("ERROR: Encountered a method with a non-block, non-blockpass iter node at: " + node);
        }
    }

    public Operand buildFixnum(FixnumNode node, IRScope m) {
        return new Fixnum(node.getValue());
    }
View Full Code Here

Examples of org.jruby.ir.operands.Fixnum

                throw new NotCompilableException("ERROR: Encountered a method with a non-block, non-blockpass iter node at: " + node);
        }
    }

    public Operand buildFixnum(FixnumNode node, IRScope s) {
        return new Fixnum(node.getValue());
    }
View Full Code Here

Examples of org.jruby.ir.operands.Fixnum

         * In IR code below, we are representing the two states as 1 and 2.  Any
         * two values are good enough (even true and false), but 1 and 2 is simple
         * enough and also makes the IR output readable
         * ---------------------------------------------------------------------- */

        Fixnum s1 = new Fixnum((long)1);
        Fixnum s2 = new Fixnum((long)2);

        // Create a variable to hold the flip state
        IRScope nearestNonClosure = s.getNearestFlipVariableScope();
        Variable flipState = nearestNonClosure.getNewFlipStateVariable();
        nearestNonClosure.initFlipStateVariable(flipState, s1);
View Full Code Here

Examples of org.jruby.ir.operands.Fixnum

        return expectedVersion;
    }

    @Override
    public Operand[] getOperands() {
        return new Operand[] { new StringLiteral(module.getName()), new Fixnum(expectedVersion), candidateObj, failurePathLabel };
    }
View Full Code Here

Examples of org.jruby.ir.operands.Fixnum

        this.required = required;
    }

    @Override
    public Operand[] getOperands() {
        return new Operand[] { new Fixnum(required) };
    }
View Full Code Here

Examples of org.jruby.ir.operands.Fixnum

        return (isDead() ? "[DEAD]" : "") + (hasUnusedResult() ? "[DEAD-RESULT]" : "") + getResult() + " = " + getOperation() + "(" + required + ", " + argIndex + ")";
    }

    @Override
    public Operand[] getOperands() {
        return new Operand[] { new Fixnum(required), new Fixnum(argIndex) };
    }
View Full Code Here

Examples of org.jruby.ir.operands.Fixnum

        return minArgsLength;
    }

    @Override
    public Operand[] getOperands() {
        return new Operand[] { getArrayArg(), new Fixnum(getIndex()), new Fixnum(minArgsLength) };
    }
View Full Code Here

Examples of org.jruby.ir.operands.Fixnum

    public int getPreArgsCount() { return preArgsCount; }
    public int getPostArgsCount() { return postArgsCount; }

    @Override
    public Operand[] getOperands() {
        return new Operand[] { array, new Fixnum(preArgsCount), new Fixnum(postArgsCount), new Fixnum(index) };
    }
View Full Code Here

Examples of org.jruby.ir.operands.Fixnum

        this.index = index;
    }

    @Override
    public Operand[] getOperands() {
        return new Operand[]{array, new Fixnum(index) };
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.