add register names to allocator

make platform instantiate it
basic plumbing
This commit is contained in:
2020-03-18 15:27:40 +02:00
parent 500df01425
commit 8df1b8126f
5 changed files with 32 additions and 16 deletions

View File

@ -16,6 +16,9 @@ module Risc
def test_empty
assert @allocator.used_regs_empty?
end
def test_reg_names
assert_equal 16 , @allocator.reg_names.length
end
def test_compiler
assert_equal CallableCompiler , @allocator.compiler.class
assert_equal :fake_name , @allocator.compiler.callable.name