giving the method to return and save
so they can make decisions like wether to create a frame or not
This commit is contained in:
@ -2,6 +2,11 @@ module Virtual
|
||||
|
||||
# following classes are stubs. currently in brainstorming mode, so anything may change anytime
|
||||
class MethodEnter < Instruction
|
||||
def initialize method
|
||||
@method = method
|
||||
end
|
||||
|
||||
attr_reader :method
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -3,6 +3,12 @@ module Virtual
|
||||
|
||||
# also the return shuffles our objects beck before actually transferring control
|
||||
class MethodReturn < Instruction
|
||||
def initialize method
|
||||
@method = method
|
||||
end
|
||||
|
||||
attr_reader :method
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user