Copy risc compiler stuff to mom
Start to separate the layers. wip, just checkin in to see the following changes better
This commit is contained in:
@ -4,6 +4,12 @@ module Risc
|
||||
#
|
||||
# The code is added to the method_compiler.
|
||||
#
|
||||
# Basically this allows to many Risc instructions with extremely readable code.
|
||||
# example:
|
||||
# space << Parfait.object_space # load constant
|
||||
# message[:receiver] << space #make current message's (r0) receiver the space
|
||||
# See http://ruby-x.org/rubyx/builder.html for details
|
||||
#
|
||||
class Builder
|
||||
|
||||
attr_reader :built , :compiler
|
||||
|
@ -1,8 +1,7 @@
|
||||
module Risc
|
||||
|
||||
# MethodCompiler (old name) is used to generate risc instructions for methods
|
||||
# and to instantiate the methods correctly. Most of the init is typed layer stuff,
|
||||
# but there is some logic too.
|
||||
# MethodCompiler is used to generate risc instructions for methods
|
||||
# and to instantiate the methods correctly.
|
||||
|
||||
class MethodCompiler < CallableCompiler
|
||||
|
||||
|
Reference in New Issue
Block a user