comp
Class ArgList

java.lang.Object
  |
  +--comp.Node
        |
        +--comp.ArgList

class ArgList
extends Node

An argument list is a list of expressions that are to be evaluated as actual parameters to a function call.

See Also:
CallNode

Field Summary
 
Fields inherited from class comp.Node
asm, globalScope, labelCount, strings
 
Constructor Summary
(package private) ArgList()
           
 
Method Summary
 void add(ExprNode e)
          Add an expression to end of this arg list.
 void asHTML(java.io.PrintStream out)
          Process each parameter.
 void clearStack()
          Shrink the stack by the right amount after a call.
 java.lang.String codeGen(Scope scope, RegBank bank)
          Generating code is a matter of growing the stack by the right amount, and then storing the values of each argument expression onto it in order.
 java.lang.String toString()
           
 
Methods inherited from class comp.Node
addDefs, addString, getLabel, lvalue, reset, rvalue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArgList

ArgList()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

add

public void add(ExprNode e)
Add an expression to end of this arg list.


codeGen

public java.lang.String codeGen(Scope scope,
                                RegBank bank)
Generating code is a matter of growing the stack by the right amount, and then storing the values of each argument expression onto it in order.

Specified by:
codeGen in class Node

clearStack

public void clearStack()
Shrink the stack by the right amount after a call.


asHTML

public void asHTML(java.io.PrintStream out)
Process each parameter.

Specified by:
asHTML in class Node