split create_binary into two phases
Which gives instructions a chance to check everything and in Arms case check the constant loads/ instruction adding So that during assembly no more change happens (and we don't have to reassemble)
This commit is contained in:
@ -1,4 +1 @@
|
||||
require_relative "../helper"
|
||||
class DevNull
|
||||
def write_unsigned_int_32( _ );end
|
||||
end
|
||||
|
@ -57,7 +57,7 @@ module Risc
|
||||
@machine.object_positions.each do | method , position|
|
||||
next unless method.is_a? Parfait::TypedMethod
|
||||
method.cpu_instructions.each do |ins|
|
||||
ins.assemble(DevNull.new)
|
||||
ins.assemble(Util::DevNull.new)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -33,7 +33,7 @@ module Risc
|
||||
@machine.object_positions.keys.each do |method|
|
||||
next unless method.is_a? Parfait::TypedMethod
|
||||
method.cpu_instructions.each do |ins|
|
||||
ins.assemble(DevNull.new)
|
||||
ins.assemble(Util::DevNull.new)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user