summaryrefslogtreecommitdiff
path: root/ujit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ujit.rb')
-rw-r--r--ujit.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/ujit.rb b/ujit.rb
index cdfb886795..43be881c05 100644
--- a/ujit.rb
+++ b/ujit.rb
@@ -1,14 +1,11 @@
module UJIT
- def omg
- end
-
def self.disasm(iseq)
blocks = UJIT.blocks_for(iseq)
return if blocks.empty?
str = ""
- cs = UJIT::Disasm.open(UJIT::Disasm::ARCH_X86, UJIT::Disasm::MODE_64)
+ cs = UJIT::Disasm.new
str << iseq.disasm
str << "\n"
@@ -27,5 +24,5 @@ module UJIT
end
end
str
- end
+ end if defined?(Disasm)
end