uk.ac.man.cs.rainbow.compiler.rasm
Class CGEnv
java.lang.Object
|
+--uk.ac.man.cs.rainbow.compiler.CompilerThing
|
+--uk.ac.man.cs.rainbow.compiler.names.Environment
|
+--uk.ac.man.cs.rainbow.compiler.rasm.CGEnv
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- GreenEnv
- public class CGEnv
- extends Environment
- implements Cloneable
Constructor Summary |
CGEnv()
|
CGEnv
public CGEnv()
toString
public String toString()
- Overrides:
toString
in class Environment
cloneCGEnv
public CGEnv cloneCGEnv()
enter_fun
public RASMList enter_fun(String name)
exit_fun
public void exit_fun()
enter_proc
public void enter_proc(String name)
method_start_label
public RASMList method_start_label(String methname)
exit_proc
public void exit_proc()
get_unique_num
public int get_unique_num()
get_number_supply
public int get_number_supply()
set_number_supply
public void set_number_supply(int n)
get_module_name
public String get_module_name()
set_module_name
public void set_module_name(String modl)
get_method_name
public String get_method_name()
set_method_name
public void set_method_name(String meth)
donals_label_prefix
public String donals_label_prefix()
custom_label_and_addr
public String custom_label_and_addr(String info)
anon_temp
public int anon_temp()
add_intermediate
public void add_intermediate()
delete_intermediate
public void delete_intermediate()
add_local
public void add_local(LocalDeclaration decl)
lookup_stack_position
public int lookup_stack_position(String id)
get_next_stack_pos
public int get_next_stack_pos()
set_next_stack_pos
public void set_next_stack_pos(int n)
lookup_defn
public LocalDeclaration lookup_defn(String id)
access
public RASMList access(String id)
update_after_inner_stuff
public void update_after_inner_stuff(CGEnv from_inside)
exit_scope
public RASMList exit_scope(CGEnv from_inside)
make_green_env
public GreenEnv make_green_env()
greenify
public GreenEnv greenify()