public class NodeTransfer extends Object implements NodeVisitor<State>
| Constructor and Description |
|---|
NodeTransfer()
Constructs a new TransferFunctions object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setSolverInterface(GenericSolver.SolverInterface c)
Initializes the connection to the solver.
|
void |
transferExceptionalReturn(BasicBlock block,
State state,
NodeAndContext<CallContext> caller)
Transfer for an exceptional-return statement.
|
Void |
transferReturn(AbstractNode call_node,
Function callee,
CallContext caller_context,
CallContext callee_context)
Transfer ordinary and exceptional return for the given call node and callee function.
|
void |
transferReturn(int valueReg,
BasicBlock block,
State state,
NodeAndContext<CallContext> caller)
Transfer for a return statement.
|
void |
visit(AssumeNode n,
State state)
Assumption.
|
void |
visit(BeginForInNode n,
State state)
12.6.4 begin 'for-in' statement.
|
void |
visit(BinaryOperatorNode n,
State state)
11.13 and 11.5/6/7/8 assignment with binary operator.
|
void |
visit(CallConversionNode n,
State state)
Conversion using ToString or ValueOf.
|
void |
visit(CallNode n,
State state)
11.2.2, 11.2.3, 13.2.1, and 13.2.2 'new' / function call.
|
void |
visit(CatchNode n,
State state)
12.14 'catch' block.
|
void |
visit(ConstantNode n,
State state)
11.13 and 7.8 assignment with literal.
|
void |
visit(DeclareFunctionNode n,
State state)
13 function definition.
|
void |
visit(DeclareVariableNode n,
State state)
12.2 variable declaration.
|
void |
visit(DeletePropertyNode n,
State state)
11.13 and 11.4.1 assignment with 'delete' operator.
|
void |
visit(EndForInNode n,
State state)
12.6.4 end of loop of 'for-in' statement.
|
void |
visit(EnterWithNode n,
State state)
12.10 enter 'with' statement.
|
void |
visit(EventDispatcherNode n,
State state)
Visits an EventDispatcherNode.
|
void |
visit(EventEntryNode n,
State state)
Visits an EventEntryNode.
|
void |
visit(ExceptionalReturnNode n,
State state)
13.2.1 exceptional return.
|
void |
visit(HasNextPropertyNode n,
State state)
12.6.4 check for more properties of 'for-in' statement.
|
void |
visit(IfNode n,
State state)
12.5 and 12.6 'if'/iteration statement.
|
void |
visit(LeaveWithNode n,
State state)
12.10 leave 'with' statement.
|
void |
visit(NewObjectNode n,
State state)
11.1.5 object initializer.
|
void |
visit(NextPropertyNode n,
State state)
12.6.4 get next property of 'for-in' statement.
|
void |
visit(NopNode n,
State state)
12.3 empty statement.
|
void |
visit(ReadPropertyNode n,
State state)
11.2.1 assignment with right-hand-side property accessor.
|
void |
visit(ReadVariableNode n,
State state)
11.1.2 assignment with right-hand-side identifier reference.
|
void |
visit(ReturnNode n,
State state)
12.9 and 13.2.1 'return' statement.
|
void |
visit(ThrowNode n,
State state)
12.13 'throw' statement.
|
void |
visit(TypeofNode n,
State state)
11.13 and 11.4.3 assignment with 'typeof' operator.
|
void |
visit(UnaryOperatorNode n,
State state)
11.13 and 11.4 assignment with unary operator.
|
void |
visit(WritePropertyNode n,
State state)
11.2.1 assignment with left-hand-side property accessor.
|
void |
visit(WriteVariableNode n,
State state)
11.13 and 11.1.2 assignment with left-hand-side identifier reference.
|
public void setSolverInterface(GenericSolver.SolverInterface c)
public void transferExceptionalReturn(BasicBlock block, State state, NodeAndContext<CallContext> caller)
caller - if non-null, only consider this callerpublic Void transferReturn(AbstractNode call_node, Function callee, CallContext caller_context, CallContext callee_context)
public void transferReturn(int valueReg,
BasicBlock block,
State state,
NodeAndContext<CallContext> caller)
caller - if non-null, only consider this callerpublic void visit(AssumeNode n, State state)
visit in interface NodeVisitor<State>public void visit(BeginForInNode n, State state)
visit in interface NodeVisitor<State>public void visit(BinaryOperatorNode n, State state)
visit in interface NodeVisitor<State>public void visit(CallConversionNode n, State state)
visit in interface NodeVisitor<State>public void visit(CallNode n, State state)
visit in interface NodeVisitor<State>public void visit(CatchNode n, State state)
visit in interface NodeVisitor<State>public void visit(ConstantNode n, State state)
visit in interface NodeVisitor<State>public void visit(DeclareFunctionNode n, State state)
visit in interface NodeVisitor<State>public void visit(DeclareVariableNode n, State state)
visit in interface NodeVisitor<State>public void visit(DeletePropertyNode n, State state)
visit in interface NodeVisitor<State>public void visit(EndForInNode n, State state)
visit in interface NodeVisitor<State>public void visit(EnterWithNode n, State state)
visit in interface NodeVisitor<State>public void visit(EventDispatcherNode n, State state)
NodeVisitorvisit in interface NodeVisitor<State>public void visit(EventEntryNode n, State state)
NodeVisitorvisit in interface NodeVisitor<State>public void visit(ExceptionalReturnNode n, State state)
visit in interface NodeVisitor<State>public void visit(HasNextPropertyNode n, State state)
visit in interface NodeVisitor<State>public void visit(IfNode n, State state)
visit in interface NodeVisitor<State>public void visit(LeaveWithNode n, State state)
visit in interface NodeVisitor<State>public void visit(NewObjectNode n, State state)
visit in interface NodeVisitor<State>public void visit(NextPropertyNode n, State state)
visit in interface NodeVisitor<State>public void visit(NopNode n, State state)
visit in interface NodeVisitor<State>public void visit(ReadPropertyNode n, State state)
visit in interface NodeVisitor<State>public void visit(ReadVariableNode n, State state)
visit in interface NodeVisitor<State>public void visit(ReturnNode n, State state)
visit in interface NodeVisitor<State>public void visit(ThrowNode n, State state)
visit in interface NodeVisitor<State>public void visit(TypeofNode n, State state)
visit in interface NodeVisitor<State>public void visit(UnaryOperatorNode n, State state)
visit in interface NodeVisitor<State>public void visit(WritePropertyNode n, State state)
visit in interface NodeVisitor<State>public void visit(WriteVariableNode n, State state)
visit in interface NodeVisitor<State>Copyright © 2012 Aarhus University