Add support for stack integers (#135)

* add support for stack integers

* update documentation

* revise value type stack variables
This commit is contained in:
water111
2020-11-22 12:22:19 -05:00
committed by GitHub
parent 66c9f40e13
commit 460ec874bb
19 changed files with 288 additions and 41 deletions
+2 -1
View File
@@ -160,7 +160,8 @@ AllocationResult allocate_registers(const AllocationInput& input) {
// prepare the result
result.ok = true;
result.needs_aligned_stack_for_spills = cache.used_stack;
result.stack_slots = cache.current_stack_slot;
result.stack_slots_for_spills = cache.current_stack_slot;
result.stack_slots_for_vars = input.stack_slots_for_stack_vars;
// copy over the assignment result
result.assignment.resize(cache.max_var);