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
me = process( receiver.to_a.first )
else
raise "revisit"
if @method.class.name == :Integer
me = Virtual::Self.new :int
else

View File

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

View File

@ -16,7 +16,7 @@ module Register
# If you had a c array and index offset
# 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)
def initialize source , array , index , register
super(source)

View File

@ -96,6 +96,7 @@ module Parfait
def internal_object_set(index , value)
raise "failed init for #{self.class}" unless @memory
@memory[index] = value
value
end
def internal_object_grow(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 "elf/test_all"
require_relative "parfait/test_all"
require_relative "fragments/test_all"