Skip to content

Commit

Permalink
some change
Browse files Browse the repository at this point in the history
  • Loading branch information
miura1729 committed Dec 16, 2008
1 parent 4b1c6e5 commit 0a54f2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/yarv2llvm.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ module YARV2LLVM
# * 40 if 64-bit # * 40 if 64-bit
RVALUE_SIZE = 20 RVALUE_SIZE = 20
RUBY_SYMBOL_FLAG = 0xe RUBY_SYMBOL_FLAG = 0xe

PROFILE_RAW_DATA = []
end end


class Object class Object
Expand Down
7 changes: 5 additions & 2 deletions test/test_debug.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
class DebugTests < Test::Unit::TestCase class DebugTests < Test::Unit::TestCase


def test_trace_func def test_trace_func
YARV2LLVM::compile(<<-EOS, {}) YARV2LLVM::compile(<<-EOS, {disasm: true})
module YARV2LLVM module YARV2LLVM
def trace_func(event, line) def trace_func(event, line)
p event
p line p line
p "----"
p self
end end
end end
Expand All @@ -20,6 +23,6 @@ def fib(n)
end end
EOS EOS


p fib(5) p fib(2)
end end
end end

0 comments on commit 0a54f2c

Please sign in to comment.