start new elf testing category (and minors)

This commit is contained in:
Torsten Ruger 2015-10-13 17:30:39 +03:00
parent f506f95cbf
commit 5122137a33
7 changed files with 8 additions and 3 deletions

View File

@ -8,6 +8,7 @@ module Phisol
if receiver if receiver
me = process( receiver.to_a.first ) me = process( receiver.to_a.first )
else else
raise "revisit"
if @method.class.name == :Integer if @method.class.name == :Integer
me = Virtual::Self.new :int me = Virtual::Self.new :int
else else

View File

@ -10,8 +10,8 @@ module Phisol
if value if value
value = process( value ) value = process( value )
end end
# field_def is a statement, no return
Virtual::Return.new( type , value ) return nil
end end
end end
end end

View File

@ -16,7 +16,7 @@ module Register
# If you had a c array and index offset # If you had a c array and index offset
# the instruction would do register = array[index] # the instruction would do register = array[index]
# The arguments are in the order that makes sense for the Instruciton name # The arguments are in the order that makes sense for the Instruction name
# So GetSlot means the slot (array and index) moves to the register (last argument) # So GetSlot means the slot (array and index) moves to the register (last argument)
def initialize source , array , index , register def initialize source , array , index , register
super(source) super(source)

View File

@ -96,6 +96,7 @@ module Parfait
def internal_object_set(index , value) def internal_object_set(index , value)
raise "failed init for #{self.class}" unless @memory raise "failed init for #{self.class}" unless @memory
@memory[index] = value @memory[index] = value
value
end end
def internal_object_grow(length) def internal_object_grow(length)
old_length = internal_object_length() old_length = internal_object_length()

1
test/elf/test_all.rb Normal file
View File

@ -0,0 +1 @@
require_relative "test_hello"

View File

@ -1,5 +1,7 @@
require_relative "compiler/test_all" require_relative "compiler/test_all"
require_relative "elf/test_all"
require_relative "parfait/test_all" require_relative "parfait/test_all"
require_relative "fragments/test_all" require_relative "fragments/test_all"