add traceable dummies

This commit is contained in:
Torsten Ruger 2018-03-14 20:25:21 +05:30
parent 559a797100
commit 2533842204
7 changed files with 24 additions and 5 deletions

View File

@ -23,6 +23,10 @@ module Mom
def initialize( receiver,arguments )
@receiver , @arguments = receiver , arguments
end
def to_risc(context)
Risc::Label.new(self,"ArgumentTransfer")
end
end

View File

@ -19,6 +19,10 @@ module Mom
@cached_type = type
@cached_method = method
end
def to_risc(context)
Risc::Label.new(self,"DynamicCall")
end
end
end

View File

@ -8,6 +8,9 @@ module Mom
def initialize(target)
@target = target
end
def to_risc(context)
Risc::Label.new(self,"Jump")
end
end

View File

@ -18,7 +18,7 @@ module Mom
end
def to_risc(compiler)
Risc::Label.new(self,method.name)
Risc::Label.new(self,"MethodSetup")
end
end

View File

@ -13,7 +13,7 @@ module Mom
@left , @right = left , right
end
def to_risc(compiler)
def to_risc(context)
Risc::Label.new(self,"NotSameCheck")
end
end

View File

@ -19,6 +19,10 @@ module Mom
# set of lower level instructions.
#
class ReturnSequence < Instruction
def to_risc(context)
Risc::Label.new(self,"ReturnSequence")
end
end
end

View File

@ -13,6 +13,10 @@ module Mom
def initialize(method)
@method = method
end
def to_risc(context)
Risc::Label.new(self,"SimpleCall")
end
end
end