From d8e885fcc41c92697f180c2db885d4a41947c3d4 Mon Sep 17 00:00:00 2001 From: inglorion Date: Sat, 24 Nov 2012 00:37:48 -0800 Subject: [PATCH] Removed superfluous debug comments from ARM generator --- lib/voodoo/generators/arm_gas_generator.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/voodoo/generators/arm_gas_generator.rb b/lib/voodoo/generators/arm_gas_generator.rb index 9b64a4b..dac7356 100644 --- a/lib/voodoo/generators/arm_gas_generator.rb +++ b/lib/voodoo/generators/arm_gas_generator.rb @@ -281,8 +281,6 @@ module Voodoo # Start a conditional using the specified branch instruction # after the comparison. def common_if comp, x, y = nil - emit "# #{comp} #{x} #{y}\n" - xreg = load_value x, @TEMPORARY yreg = load_value y, :a4 @@ -345,8 +343,6 @@ module Voodoo # Ends the current block. def end_block - emit "# end block\n" - # If we are returning to top level, restore stack pointer # and saved registers. if @environment.parent == @top_level @@ -377,14 +373,12 @@ module Voodoo raise "Cannot end function when not in a function" end - emit "# function epilogue\n" label @function_end_label destroy_frame true @frame_size = 0 @frame_offset = 0 @saved_registers = [] - emit "# end function\n\n" @environment = @top_level end @@ -552,7 +546,6 @@ module Voodoo # Start the false path of a conditional. def ifelse - emit "# else\n" newlabel = @environment.gensym goto newlabel lbl = @if_labels.pop @@ -780,7 +773,6 @@ module Voodoo # Set the byte at _base_ + _offset_ to _value_ def set_byte base, offset, value - emit "# set-byte #{base} #{offset} #{value}\n" # If base is an integer, but offset isn't, swap them if !integer?(offset) && integer?(base) base, offset = [offset, base] @@ -848,8 +840,6 @@ module Voodoo # Call a function, re-using the current call frame if possible. def tail_call func, *args - emit "# tail-call #{func} #{args.join ' '}\n" - # Compute number of stack arguments nstackargs = number_of_stack_arguments args.length # If we need more stack arguments than we have now, -- 2.11.4.GIT