Format code.

This commit is contained in:
Danila Fedorin 2018-07-27 23:27:13 -07:00
parent c04997ad17
commit 5e93fa1963
6 changed files with 180 additions and 180 deletions

View File

@ -144,7 +144,7 @@ module Chalk
end end
class ReturnInstruction < Instruction class ReturnInstruction < Instruction
def initialize() def initialize
end end
def to_s(io) def to_s(io)

View File

@ -16,7 +16,7 @@ module Chalk
end end
private def optimize! private def optimize!
block_boundaries = [ @instructions.size ] block_boundaries = [@instructions.size]
@instructions.each_with_index do |inst, i| @instructions.each_with_index do |inst, i|
if inst.is_a?(JumpRelativeInstruction) if inst.is_a?(JumpRelativeInstruction)
block_boundaries << (inst.offset + i) block_boundaries << (inst.offset + i)