From 9923eb0b07fcd2abf5c389f29e44070de55f9850 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Thu, 2 Oct 2014 16:11:45 +0300 Subject: [PATCH] move passes to own dir --- lib/register/{ => passes}/call_implementation.rb | 0 lib/register/{ => passes}/enter_implementation.rb | 0 lib/register/{ => passes}/return_implementation.rb | 0 lib/register/{ => passes}/set_implementation.rb | 0 lib/register/register_machine.rb | 8 ++++---- lib/virtual/machine.rb | 6 +++--- lib/virtual/{ => passes}/frame_implementation.rb | 0 lib/virtual/{ => passes}/get_implementation.rb | 0 lib/virtual/{ => passes}/send_implementation.rb | 0 9 files changed, 7 insertions(+), 7 deletions(-) rename lib/register/{ => passes}/call_implementation.rb (100%) rename lib/register/{ => passes}/enter_implementation.rb (100%) rename lib/register/{ => passes}/return_implementation.rb (100%) rename lib/register/{ => passes}/set_implementation.rb (100%) rename lib/virtual/{ => passes}/frame_implementation.rb (100%) rename lib/virtual/{ => passes}/get_implementation.rb (100%) rename lib/virtual/{ => passes}/send_implementation.rb (100%) diff --git a/lib/register/call_implementation.rb b/lib/register/passes/call_implementation.rb similarity index 100% rename from lib/register/call_implementation.rb rename to lib/register/passes/call_implementation.rb diff --git a/lib/register/enter_implementation.rb b/lib/register/passes/enter_implementation.rb similarity index 100% rename from lib/register/enter_implementation.rb rename to lib/register/passes/enter_implementation.rb diff --git a/lib/register/return_implementation.rb b/lib/register/passes/return_implementation.rb similarity index 100% rename from lib/register/return_implementation.rb rename to lib/register/passes/return_implementation.rb diff --git a/lib/register/set_implementation.rb b/lib/register/passes/set_implementation.rb similarity index 100% rename from lib/register/set_implementation.rb rename to lib/register/passes/set_implementation.rb diff --git a/lib/register/register_machine.rb b/lib/register/register_machine.rb index 26e6add7..d71c2585 100644 --- a/lib/register/register_machine.rb +++ b/lib/register/register_machine.rb @@ -148,7 +148,7 @@ require_relative "instruction" require_relative "register_reference" require "arm/arm_machine" require_relative "assembler" -require_relative "set_implementation" -require_relative "call_implementation" -require_relative "enter_implementation" -require_relative "return_implementation" +require_relative "passes/set_implementation" +require_relative "passes/call_implementation" +require_relative "passes/enter_implementation" +require_relative "passes/return_implementation" diff --git a/lib/virtual/machine.rb b/lib/virtual/machine.rb index 1afa78e1..8b6a8083 100644 --- a/lib/virtual/machine.rb +++ b/lib/virtual/machine.rb @@ -84,6 +84,6 @@ require_relative "type" require_relative "object" require_relative "constants" require_relative "boot_space" -require_relative "send_implementation" -require_relative "get_implementation" -require_relative "frame_implementation" +require_relative "passes/send_implementation" +require_relative "passes/get_implementation" +require_relative "passes/frame_implementation" diff --git a/lib/virtual/frame_implementation.rb b/lib/virtual/passes/frame_implementation.rb similarity index 100% rename from lib/virtual/frame_implementation.rb rename to lib/virtual/passes/frame_implementation.rb diff --git a/lib/virtual/get_implementation.rb b/lib/virtual/passes/get_implementation.rb similarity index 100% rename from lib/virtual/get_implementation.rb rename to lib/virtual/passes/get_implementation.rb diff --git a/lib/virtual/send_implementation.rb b/lib/virtual/passes/send_implementation.rb similarity index 100% rename from lib/virtual/send_implementation.rb rename to lib/virtual/passes/send_implementation.rb