renamed method definition to compiled method

This commit is contained in:
Torsten Ruger
2014-08-28 08:10:33 +03:00
parent e09d3c2f65
commit 7d35732923
15 changed files with 31 additions and 31 deletions

View File

@ -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)

View File

@ -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

View File

@ -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