Project

Profile

Help

Revision f5c65917

Added by Michael Kay over 3 years ago

Fix for bug #3936

View differences:

latest9.9/hej/net/sf/saxon/expr/parser/Optimizer.java
448 448
        return null;
449 449
    }
450 450

  
451
    /**
452
     * Insert a ByteCodeCandidate into the expression tree. A ByteCodeCandidate monitors how many
453
     * times it is executed, and after reaching a certain threshold, generates bytecode for faster
454
     * evaluation of its target expression
455
     *
456
     * @param owner                   the owning construct in the expression tree
457
     * @param expr                    the child (target) expression
458
     * @param objectName              name to be used in forming the name of the bytecode class
459
     * @param requiredEvaluationModes the evaluation modes for which code should be generated
460
     * @return a new ByteCodeCandidate if the expression is suitable for bytecode generation,
461
     * or the supplied target expression otherwise.
462
     */
463

  
464

  
451 465
    public Expression makeByteCodeCandidate(ExpressionOwner owner, Expression expr, String objectName, int requiredEvaluationModes) {
452
        return null;
466
        return expr;
453 467
    }
454 468

  
455 469
    public void injectByteCodeCandidates(Expression exp) throws XPathException {

Also available in: Unified diff