Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

some change

  • Loading branch information...
commit 0a54f2c9010c125b4b01155f8dcf4095df144e66 1 parent 4b1c6e5
@miura1729 authored
Showing with 5 additions and 4 deletions.
  1. +0 −2  lib/yarv2llvm.rb
  2. +5 −2 test/test_debug.rb
View
2  lib/yarv2llvm.rb
@@ -35,8 +35,6 @@ module YARV2LLVM
# * 40 if 64-bit
RVALUE_SIZE = 20
RUBY_SYMBOL_FLAG = 0xe
-
-PROFILE_RAW_DATA = []
end
class Object
View
7 test/test_debug.rb
@@ -4,10 +4,13 @@
class DebugTests < Test::Unit::TestCase
def test_trace_func
- YARV2LLVM::compile(<<-EOS, {})
+ YARV2LLVM::compile(<<-EOS, {disasm: true})
module YARV2LLVM
def trace_func(event, line)
+ p event
p line
+ p "----"
+ p self
end
end
@@ -20,6 +23,6 @@ def fib(n)
end
EOS
- p fib(5)
+ p fib(2)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.