|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Token | |
---|---|
orc.lib.str | |
orc.lib.time | |
orc.lib.util | |
orc.runtime | Runtime for Orc interpreter. |
orc.runtime.nodes | Runtime execution DAG. |
orc.runtime.regions | Regions are used to track when some (sub-)computation terminates. |
orc.runtime.sites | Abstract base classes for Orc sites plus fundamental sites. |
orc.runtime.sites.core | Fundamental sites. |
orc.runtime.sites.java | Wrappers which enable using Java objects and classes as Orc sites. |
orc.runtime.transaction | |
orc.runtime.values | Representations for Orc types which don't have direct analogues in the host language (Java). |
Uses of Token in orc.lib.str |
---|
Methods in orc.lib.str with parameters of type Token | |
---|---|
void |
Print.callSite(Args args,
Token caller)
|
void |
Println.callSite(Args args,
Token caller)
|
Uses of Token in orc.lib.time |
---|
Methods in orc.lib.time with parameters of type Token | |
---|---|
void |
PushLtimer.callSite(Args args,
Token caller)
|
void |
Rtimer.callSite(Args args,
Token returnToken)
|
void |
Ltimer.callSite(Args args,
Token caller)
|
void |
PopLtimer.callSite(Args args,
Token caller)
|
Uses of Token in orc.lib.util |
---|
Methods in orc.lib.util with parameters of type Token | |
---|---|
void |
Apply.callSite(Args args,
Token caller)
|
void |
Apply.createCall(Token caller,
java.util.List<java.lang.Object> args,
Node nextNode)
|
Uses of Token in orc.runtime |
---|
Methods in orc.runtime that return Token | |
---|---|
Token |
Token.bind(java.lang.Object f)
Push a new future onto the environment stack |
Token |
Token.enterClosure(Closure closure,
Node next)
Enter a closure by moving to a new node and environment, and setting the continuation for leaveClosure() . |
Token |
Token.fork()
Fork a token. |
Token |
Token.fork(Group group,
Region region)
Fork a token with a specified group and region. |
Token |
Token.leaveClosure()
Leave a closure by returning to the continuation set by #enterClosure(Node, Env, Node) . |
Token |
Token.move(Node node)
Move to a node node |
Token |
TokenPool.newToken()
Create and return a new, uninitialized token. |
Token |
Token.setGroup(Group group)
|
Token |
Token.setRegion(Region region)
Migrate the token from one region to another. |
Token |
Token.setResult(java.lang.Object result)
|
Token |
Token.setTransaction(Transaction trans)
|
Token |
Token.unwind(int width)
Pop values off of the environment stack. |
Methods in orc.runtime with parameters of type Token | ||
---|---|---|
void |
OrcEngine.activate(Token t)
Activate a token by adding it to the queue of active tokens |
|
void |
TokenPool.freeToken(Token token)
Free a token |
|
void |
OrcEngine.resume(Token t)
Activate a token by adding it to the queue of returning tokens |
|
static void |
Kilim.runPausable(Token caller,
Kilim.PausableCallable<? extends java.lang.Object> thunk)
Utility method to run a pausable computation which generates a value for a token. |
|
static
|
Kilim.runThreaded(Token caller,
java.util.concurrent.Callable<V> thunk)
Spawn a thread to compute a value for a token. |
Uses of Token in orc.runtime.nodes |
---|
Methods in orc.runtime.nodes with parameters of type Token | |
---|---|
void |
WithLocation.process(Token t)
|
void |
Unisolate.process(Token t)
|
void |
Store.process(Token t)
Gets the group of the token and sets its value to be the result of the input token. |
void |
Semi.process(Token t)
The token is forked. |
void |
Subgoal.process(Token t)
Executing a subgoal node creates a new group within the current group. |
void |
Pub.process(Token t)
|
void |
Silent.process(Token t)
|
void |
Fork.process(Token t)
|
void |
Isolate.process(Token t)
|
void |
Leave.process(Token t)
When executed, relocate this token from its current region to that region's parent. |
void |
Return.process(Token t)
|
void |
Assign.process(Token t)
When executed, extends the environment with a new binding. |
void |
Call.process(Token t)
Looks up the function to be called, then creates a call token using the argument expressions. |
void |
Defs.process(Token t)
Creates closures encapsulating the definitions and the defining environment. |
void |
Unwind.process(Token t)
When executed, pops the env stack to remove the most recent binding. |
abstract void |
Node.process(Token t)
The process method is the fundamental operation in the execution engine. |
void |
Let.process(Token t)
|
Uses of Token in orc.runtime.regions |
---|
Methods in orc.runtime.regions with parameters of type Token | |
---|---|
void |
Region.add(Token t)
|
void |
Region.remove(Token closer)
|
Method parameters in orc.runtime.regions with type arguments of type Token | |
---|---|
void |
Region.putContainedTokens(java.util.Set<Token> acc)
|
Constructors in orc.runtime.regions with parameters of type Token | |
---|---|
SemiRegion(Region parent,
Token t)
|
Uses of Token in orc.runtime.sites |
---|
Methods in orc.runtime.sites with parameters of type Token | |
---|---|
void |
ThreadedPartialSite.callSite(Args args,
Token caller)
|
void |
PartialSite.callSite(Args args,
Token caller)
|
void |
KilimSite.callSite(Args args,
Token caller)
|
void |
ThreadedSite.callSite(Args args,
Token caller)
|
abstract void |
Site.callSite(Args args,
Token caller)
Must be implemented by subclasses to implement the site behavior |
void |
EvalSite.callSite(Args args,
Token caller)
|
void |
DotSite.callSite(Args args,
Token t)
|
void |
Site.createCall(Token callToken,
java.util.List<java.lang.Object> args,
Node nextNode)
Invoked by a Call to invoke a site. |
protected void |
DotSite.defaultTo(Args args,
Token token)
|
Uses of Token in orc.runtime.sites.core |
---|
Methods in orc.runtime.sites.core with parameters of type Token | |
---|---|
void |
TryNil.callSite(Args args,
Token caller)
|
void |
Error.callSite(Args args,
Token caller)
|
void |
Some.callSite(Args args,
Token caller)
|
void |
IsSome.callSite(Args args,
Token caller)
|
void |
TryCons.callSite(Args args,
Token caller)
|
void |
Let.callSite(Args args,
Token caller)
Outputs a single value or creates a tuple. |
void |
None.callSite(Args args,
Token caller)
|
void |
IsNone.callSite(Args args,
Token caller)
|
protected void |
Datasite.defaultTo(Args args,
Token token)
|
Uses of Token in orc.runtime.sites.java |
---|
Methods in orc.runtime.sites.java with parameters of type Token | |
---|---|
void |
ThreadedObjectProxy.callSite(Args args,
Token caller)
|
void |
ObjectProxy.callSite(Args args,
Token caller)
|
void |
MethodProxy.callSite(Args args,
Token caller)
|
void |
ClassProxy.callSite(Args args,
Token caller)
|
java.lang.reflect.Field |
ClassProxy.getField(Token token,
java.lang.String name)
Look up a field by name. |
java.lang.Object |
ClassProxy.getMember(Token token,
java.lang.Object self,
java.lang.String name)
Get the value of an object member (method or field). |
MethodHandle |
ClassProxy.getMethod(Token token,
java.lang.String methodName)
Look up a method by name. |
Uses of Token in orc.runtime.transaction |
---|
Methods in orc.runtime.transaction with parameters of type Token | |
---|---|
void |
Cohort.confirm(Token t,
Transaction trans)
|
void |
Atomic.process(Token t)
|
void |
Cohort.ready(Token t,
Transaction trans)
|
void |
Cohort.rollback(Token t,
Transaction trans)
|
Constructors in orc.runtime.transaction with parameters of type Token | |
---|---|
Transaction(Token initial,
Node next,
GroupCell cell)
|
Uses of Token in orc.runtime.values |
---|
Methods in orc.runtime.values with parameters of type Token | |
---|---|
void |
Closure.createCall(Token t,
java.util.List<java.lang.Object> args,
Node nextNode)
|
void |
Callable.createCall(Token caller,
java.util.List<java.lang.Object> args,
Node nextNode)
Create a call to a callable value |
protected void |
TupleValue.defaultTo(Args args,
Token token)
|
static java.lang.Object |
Value.forceArg(java.lang.Object f,
Token t)
Force a value (which may be a future) in argument position. |
java.lang.Object |
Future.forceArg(Token t)
|
java.lang.Object |
Closure.forceArg(Token t)
|
java.lang.Object |
GroupCell.forceArg(Token t)
|
static Callable |
Value.forceCall(java.lang.Object f,
Token t)
Force a value (which may be a future) in call position. |
Callable |
Future.forceCall(Token t)
|
Callable |
Closure.forceCall(Token t)
|
Callable |
GroupCell.forceCall(Token t)
|
void |
GroupCell.setValue(Token token)
This call defines the fundamental behavior of groups: When the value is bound, all subgroups are killed and all waiting tokens are activated. |
void |
NilValue.uncons(Token caller)
|
abstract void |
ListValue.uncons(Token caller)
|
void |
ListLike.uncons(Token caller)
Return the head and tail of a cons-like data structure to a token, or die. |
void |
ConsValue.uncons(Token caller)
|
void |
NilValue.unnil(Token caller)
|
abstract void |
ListValue.unnil(Token caller)
|
void |
ListLike.unnil(Token caller)
Signal a token if this value is equivalent to nil, or die. |
void |
ConsValue.unnil(Token caller)
|
void |
GroupCell.waitForValue(Token t)
Add a token to the waiting queue of this group |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |