Changes between Version 28 and Version 29 of squirrelfish
- Timestamp:
- Mar 31, 2008, 12:21:25 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
squirrelfish
v28 v29 9 9 ''' 10 10 11 Global code 11 Make global code work, including: 12 13 {{{ 14 global code should only emit "overwrite var with undefined" if the var doesn't exist already. 15 Global code needs to deal with new vars being added. Stupid solution: always allocate a new vector, add new, then copy old. Better solution: provide pre-capacity to the existing vector. Alternative solution: just renumber the vars -- does any code depend on the old numbers? 16 }}} 12 17 13 18 Arguments object … … 136 141 Make const work -- const info has to go in the symbol table, so writes to const vars can turn to no-ops at compile time. 137 142 138 Make global code work, including:139 140 {{{141 global code should only emit "overwrite var with undefined" if the var doesn't exist already.142 Global code needs to deal with new vars being added. Stupid solution: always allocate a new vector, add new, then copy old. Better solution: provide pre-capacity to the existing vector. Alternative solution: just renumber the vars -- does any code depend on the old numbers?143 }}}144 145 143 Function call should store offset of R, not R, since vector may reallocate. This probably solves most problems related to new evaluations in same global object, since they all occur beneath function calls 146 144 -- arguments object also holds a pointer into the register file -- probably needs to be indirect index, instead