start new elf testing category (and minors)
This commit is contained in:
parent
f506f95cbf
commit
5122137a33
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
1
test/elf/test_all.rb
Normal file
@ -0,0 +1 @@
|
||||
require_relative "test_hello"
|
@ -1,5 +1,7 @@
|
||||
require_relative "compiler/test_all"
|
||||
|
||||
require_relative "elf/test_all"
|
||||
|
||||
require_relative "parfait/test_all"
|
||||
|
||||
require_relative "fragments/test_all"
|
||||
|
Loading…
Reference in New Issue
Block a user