Format code.
This commit is contained in:
parent
c04997ad17
commit
5e93fa1963
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user