Skip to content

Commit

Permalink
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tool/jt.rb
Original file line number Diff line number Diff line change
@@ -262,6 +262,7 @@ def help
puts ' --server run an instrumentation server on port 8080'
puts ' --igv make sure IGV is running and dump Graal graphs after partial escape (implies --graal)'
puts ' --full show all phases, not just up to the Truffle partial escape'
puts ' --bips run with benchmark-ips on the load path (implies --graal)'
puts ' --jdebug run a JDWP debug server on #{JDEBUG_PORT}'
puts ' --jexception[s] print java exceptions'
puts 'jt e 14 + 2 evaluate an expression'
@@ -346,7 +347,11 @@ def run(*args)
'-Xtruffle.graal.warn_unless=false'
]

{ '--asm' => '--graal', '--igv' => '--graal' }.each_pair do |arg, dep|
{
'--asm' => '--graal',
'--igv' => '--graal',
'--bips' => '--graal'
}.each_pair do |arg, dep|
args.unshift dep if args.include?(arg)
end

@@ -364,6 +369,13 @@ def run(*args)
jruby_args += %w[-J-XX:+UnlockDiagnosticVMOptions -J-XX:CompileCommand=print,*::callRoot]
end

if args.delete('--bips')
bips_version = '2.6.1'
bips = "lib/ruby/gems/shared/gems/benchmark-ips-#{bips_version}/lib"

This comment has been minimized.

Copy link
@eregon

eregon Apr 15, 2016

Member

Could you prefix with JRUBY_DIR so it can be run outside the root of the checkout?

This comment has been minimized.

Copy link
@eregon

eregon Apr 15, 2016

Member

Fixed in 8c9ed22.

sh 'bin/jruby', 'bin/gem', 'install', 'benchmark-ips', '-v', bips_version unless Dir.exist?(bips)
jruby_args << "-I#{bips}"
end

if args.delete('--jdebug')
jruby_args << JDEBUG
end

1 comment on commit 6d95105

@chrisseaton
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jruby/truffle

Please sign in to comment.