Package | Description |
---|---|
org.jruby.compiler.ir | |
org.jruby.compiler.ir.instructions | |
org.jruby.compiler.ir.representations |
Modifier and Type | Class and Description |
---|---|
class |
IRClosure |
class |
IRMethod |
Modifier and Type | Field and Description |
---|---|
IRExecutionScope |
IRLoop.container |
Modifier and Type | Method and Description |
---|---|
Operand |
IRBuilder.buildBreak(BreakNode breakNode,
IRExecutionScope s) |
Operand |
IRBuilder.buildFor(ForNode forNode,
IRExecutionScope m) |
Operand |
IRBuilder.buildForIter(ForNode forNode,
IRExecutionScope s) |
Operand |
IRBuilder.buildIter(IterNode iterNode,
IRExecutionScope s) |
Operand |
IRBuilder.buildNext(NextNode nextNode,
IRExecutionScope s) |
Operand |
IRBuilder.buildRedo(Node node,
IRExecutionScope s)
public Operand buildPostExe(Node node, IRScope m) {
final PostExeNode postExeNode = (PostExeNode) node;
// create the closure class and instantiate it
final CompilerCallback closureBody = new CompilerCallback() {
public void call(IRScope m) {
if (postExeNode.getBodyNode() != null) {
build(postExeNode.getBodyNode(), m, true);
} else {
m.loadNil();
}
}
};
m.createNewEndBlock(closureBody);
}
public Operand buildPreExe(Node node, IRScope m) {
final PreExeNode preExeNode = (PreExeNode) node;
// create the closure class and instantiate it
final CompilerCallback closureBody = new CompilerCallback() {
public void call(IRScope m) {
if (preExeNode.getBodyNode() != null) {
build(preExeNode.getBodyNode(), m,true);
} else {
m.loadNil();
}
}
};
m.runBeginBlock(preExeNode.getScope(), closureBody);
}
|
Operand |
IRBuilder.buildUntil(UntilNode untilNode,
IRExecutionScope s) |
Operand |
IRBuilder.buildWhile(WhileNode whileNode,
IRExecutionScope s) |
Constructor and Description |
---|
IRLoop(IRExecutionScope s) |
Constructor and Description |
---|
AllocateBindingInstr(IRExecutionScope scope) |
LoadFromBindingInstr(Variable v,
IRExecutionScope scope,
java.lang.String slotName) |
StoreToBindingInstr(IRExecutionScope scope,
java.lang.String slotName,
Operand value) |
Modifier and Type | Method and Description |
---|---|
IRExecutionScope |
CFG.getScope() |
Constructor and Description |
---|
CFG(IRExecutionScope s) |
Copyright © 2002-2009 JRuby Team. All Rights Reserved.