minor naming and spaces
This commit is contained in:
parent
776050fa70
commit
4839e0d245
@ -36,16 +36,16 @@ module Mom
|
|||||||
def build_with(builder)
|
def build_with(builder)
|
||||||
case from = method_source
|
case from = method_source
|
||||||
when Parfait::CallableMethod
|
when Parfait::CallableMethod
|
||||||
builder.build { callable_method << from }
|
builder.build { callable << from }
|
||||||
when Parfait::CacheEntry
|
when Parfait::CacheEntry
|
||||||
builder.build do
|
builder.build do
|
||||||
cache_entry << from
|
cache_entry << from
|
||||||
callable_method << cache_entry[:cached_method]
|
callable << cache_entry[:cached_method]
|
||||||
end
|
end
|
||||||
when Integer
|
when Integer
|
||||||
builder.build do
|
builder.build do
|
||||||
arguments << message[:arguments]
|
arguments << message[:arguments]
|
||||||
callable_method << arguments[ from ]
|
callable << arguments[ from ]
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
raise "unknown source #{method_source.class}:#{method_source}"
|
raise "unknown source #{method_source.class}:#{method_source}"
|
||||||
@ -69,15 +69,15 @@ module Mom
|
|||||||
message[:next_message] << next_message
|
message[:next_message] << next_message
|
||||||
next_message[:caller] << message
|
next_message[:caller] << message
|
||||||
|
|
||||||
type << callable_method[:arguments_type]
|
type << callable[:arguments_type]
|
||||||
named_list << next_message[:arguments]
|
named_list << next_message[:arguments]
|
||||||
named_list[:type] << type
|
named_list[:type] << type
|
||||||
|
|
||||||
type << callable_method[:frame_type]
|
type << callable[:frame_type]
|
||||||
named_list << next_message[:frame]
|
named_list << next_message[:frame]
|
||||||
named_list[:type] << type
|
named_list[:type] << type
|
||||||
|
|
||||||
next_message[:method] << callable_method
|
next_message[:method] << callable
|
||||||
|
|
||||||
#store next.next back into space
|
#store next.next back into space
|
||||||
#FIXME in a multithreaded future this should be done soon after getting
|
#FIXME in a multithreaded future this should be done soon after getting
|
||||||
|
@ -32,7 +32,7 @@ module Mom
|
|||||||
end
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
"ReturnSequence in (#{compiler.method.name})"
|
"ReturnSequence"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -42,8 +42,8 @@ module Parfait
|
|||||||
end
|
end
|
||||||
|
|
||||||
def add_block(bl)
|
def add_block(bl)
|
||||||
block = self.blocks
|
was = @blocks
|
||||||
bl.set_next(block) if(block)
|
bl.set_next(was) if(was)
|
||||||
@blocks = bl
|
@blocks = bl
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -15,7 +15,6 @@ module Vool
|
|||||||
at_depth(depth , "#{@name} = #{@value}")
|
at_depth(depth , "#{@name} = #{@value}")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
def chain_assign(assign , compiler)
|
def chain_assign(assign , compiler)
|
||||||
return assign unless @value.is_a?(SendStatement)
|
return assign unless @value.is_a?(SendStatement)
|
||||||
@value.to_mom(compiler) << assign
|
@value.to_mom(compiler) << assign
|
||||||
|
@ -18,7 +18,7 @@ module Arm
|
|||||||
assert_equal :r1 , @codes.left
|
assert_equal :r1 , @codes.left
|
||||||
end
|
end
|
||||||
def test_slot_right
|
def test_slot_right
|
||||||
assert_equal 8 , @codes.right
|
assert_equal 4 , @codes.right
|
||||||
end
|
end
|
||||||
def test_next_from
|
def test_next_from
|
||||||
assert_equal :r1 , @codes.next.from.symbol
|
assert_equal :r1 , @codes.next.from.symbol
|
||||||
|
Loading…
Reference in New Issue
Block a user