renamed method definition to compiled method
This commit is contained in:
@ -52,7 +52,7 @@ module Register
|
||||
end
|
||||
end
|
||||
|
||||
def assemble_MethodDefinition(method)
|
||||
def assemble_CompiledMethod(method)
|
||||
assemble_object(method.name)
|
||||
method.blocks.each do |block|
|
||||
assemble_object(block)
|
||||
|
@ -1,7 +1,7 @@
|
||||
module Register
|
||||
# This implements call logic, which is simply like a c call (not send, that involves lookup and all sorts)
|
||||
#
|
||||
# The only target for a call is a MethodDefinition, so we just need to get the address for the code
|
||||
# The only target for a call is a CompiledMethod, so we just need to get the address for the code
|
||||
# and call it.
|
||||
#
|
||||
# The only slight snag is that we would need to assemble before getting the address, but to assemble
|
||||
|
@ -53,7 +53,7 @@ module Register
|
||||
length + link_Array(clazz.instance_methods , at + length)
|
||||
end
|
||||
|
||||
def link_MethodDefinition(method , at)
|
||||
def link_CompiledMethod(method , at)
|
||||
length = members(2)
|
||||
length += link_object(method.name ,at + length)
|
||||
# NOT an ARRAY, just a bag of bytes
|
||||
|
Reference in New Issue
Block a user