start new elf testing category (and minors)
This commit is contained in:
parent
f506f95cbf
commit
5122137a33
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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)
|
||||||
|
@ -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
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 "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"
|
||||||
|
Loading…
Reference in New Issue
Block a user