No, let's represent register as just a string to save a translation.
This commit is contained in:
Kartik Agaram 2019-11-14 17:25:47 -08:00
parent 75d5b73cfc
commit a0cc00c0b6

View File

@ -134,14 +134,12 @@
# type: s-expression? Just a type id for now.
# block: int
# stack-offset: int (added to ebp)
# register-index: int
# 0-7 with usual meanings
# 8: any register
# register: string
# either usual register names
# or '*' to indicate any register
# At most one of stack-offset or register-index must be non-zero.
# When both are zero the variable is in eax (no way to refer to return
# address at ebp).
# A register-index of 8 designates a variable _template_. Only legal in
# formal parameters for primitives.
# A register of '*' designates a variable _template_. Only legal in formal
# parameters for primitives.
# == Compiling a single instruction
# Determine the function or primitive being called.