ruby/tool
Luke Gruber d592ddd5e6 Fix compile issue with a short-circuited if/unless condition and `defined?`
This caused an issue when `defined?` was in the `if` condition. Its
instructions weren't appended to the instruction sequence even though it was compiled
if a compile-time known logical short-circuit happened before the `defined?`. The catch table
entry (`defined?` compilation produces a catch table entry) was still on the iseq even though the
instructions weren't there. This caused faulty exception handling in the method.
The solution is to no add the catch table entry for `defined?` after a compile-time known logical
short circuit.

This shouldn't touch much code, it's only for cases like the following,
which can occur during debugging:

    if false && defined?(Some::CONSTANT)
    "more code..."
    end

Fixes [Bug #20501]
2024-10-01 02:12:56 +09:00
..
annocheck CI: Run annocheck for libruby.so 2024-08-07 18:51:20 +02:00
bundler Update test dependencies 2024-09-26 17:07:20 +09:00
lib Fix compile issue with a short-circuited if/unless condition and `defined?` 2024-10-01 02:12:56 +09:00
lrama Remove unnecessary file 2024-09-12 21:06:16 +09:00
m4 Error when --with-shared-gc doesn't specify a directory 2024-07-26 13:20:04 -04:00
releng
rjit Optimized forwarding callers and callees 2024-06-18 09:28:25 -07:00
ruby_vm Optimized forwarding callers and callees 2024-06-18 09:28:25 -07:00
test Accept version range 2024-09-12 23:47:34 +09:00
test_for_warn_bundled_gems Avoid to unintentional Bundler definition by Bundler::Definition.no_lock 2024-09-27 18:39:05 +09:00
asm_parse.rb
bisect.sh
build-transcode
checksum.rb
colors
darwin-ar Include `--no-llvm-bc` option in `NM` macro only if usable 2023-04-08 12:47:27 +09:00
darwin-cc Ignore warnings about currently unsupported .debug_macinfo 2023-11-07 23:19:51 +09:00
disable_ipv6.sh
downloader.rb Ignore errors on prerelease gems 2024-03-27 16:18:14 +09:00
enc-case-folding.rb
enc-emoji-citrus-gen.rb
enc-emoji4unicode.rb
enc-unicode.rb Use the hexdigit character class 2023-10-02 00:49:05 +09:00
eval.rb
expand-config.rb
extlibs.rb
fake.rb [Bug #19967] Ignore library before build 2023-10-21 23:47:29 +09:00
fetch-bundled_gems.rb Highlight messages in fetch-bundled_gems 2024-03-18 23:29:54 +09:00
file2lastrev.rb
format-release Use bundler/inline to download diffy gem 2024-09-04 14:44:34 +09:00
gen-github-release.rb Set prerelease flag if tag includes preview or rc 2024-01-12 15:36:08 +09:00
gen-mailmap.rb
gen_dummy_probes.rb
gen_ruby_tapset.rb
generic_erb.rb Drop support for old ERB 2024-03-03 00:55:45 +09:00
git-refresh
gperf.sed Use gperf 3.1 to generate ANSI-C code 2024-06-24 23:43:45 +09:00
id2token.rb
ifchange
insns2vm.rb
install-sh
intern_ids.rb
leaked-globals Ignore retguard symbols when looking for leaked symbols 2024-06-04 13:04:41 -07:00
ln_sr.rb Fix tool/ln_sr.rb passing 2 arguments to String#chomp! 2023-12-13 07:05:21 -08:00
make-snapshot -l option of 7z is unknown switch with the `ubuntu-latest`. 2024-09-30 12:03:02 +09:00
make_hgraph.rb
mdoc2man.rb
merger.rb merger.rb: Put spaces in between revisions 2024-06-04 11:31:20 -07:00
missing-baseruby.bat [Bug #20687] Check if base ruby provides necessary libraries 2024-08-21 16:56:44 +09:00
mk_builtin_loader.rb Check syntax warnings in built-in scripts 2024-09-25 11:18:41 +09:00
mk_rbbin.rb Fix prelude to use IBF 2024-09-08 23:40:17 +09:00
mkconfig.rb s/MJIT/RJIT/ 2023-03-06 23:44:01 -08:00
mkrunnable.rb Install binary executable files to architecture dependent path 2024-02-18 15:07:42 +09:00
node_name.rb
outdate-bundled-gems.rb Deprecate `--dryrun` options in favor of `--dry-run` 2024-03-15 14:12:08 +09:00
parse.rb
prereq.status
probes_to_wiki.rb
rbinstall.rb `load_relative` is always falsy here 2024-08-23 12:17:07 +09:00
rbs_skip_tests Switch the default parser from parse.y to Prism 2024-09-12 13:43:04 -04:00
rbuninstall.rb Report non-empty directories [ci skip] 2024-03-09 23:08:37 +09:00
rdoc-srcdir Set executable on rdoc-srcdir [ci skip] 2024-04-26 19:22:16 +09:00
redmine-backporter.rb redmine-backporter: Support matching multiple revs 2024-09-02 02:25:29 -07:00
release.sh Revert "Experiment with removing --profile ruby for now" 2024-09-02 23:37:15 -07:00
rmdirs
run-gcov.rb Support LCOV 2.0 2024-06-21 14:48:44 +09:00
run-lcov.rb Support LCOV 2.0 2024-06-21 14:48:44 +09:00
runruby.rb Support RUNRUBY_USE_RR for rr debugger 2023-11-29 17:54:58 -05:00
search-cgvars.rb
strip-rdoc.rb
sync_default_gems.rb [PRISM] Remove snapshot testing from Prism sync 2024-09-16 08:44:19 -04:00
test-annocheck.sh tool/test-annocheck.sh: Refactor with double-quotes. 2024-08-07 18:51:20 +02:00
test-bundled-gems.rb Skip test task for resolv-replace 2024-01-19 17:44:58 +09:00
test-coverage.rb
transcode-tblgen.rb Drop support for old ERB 2024-03-03 00:55:45 +09:00
travis_retry.sh
travis_wait.sh
update-NEWS-gemlist.rb [DOC] "is now bundled" is ambiguous 2023-10-19 16:37:11 -07:00
update-NEWS-refs.rb Support Misc tracker [ci skip] 2024-04-18 08:10:23 +09:00
update-bundled_gems.rb Update newer version gems only 2023-11-04 11:29:42 +09:00
update-deps [PRISM] Update dependencies for prism diagnostics 2024-03-06 21:42:54 -05:00
vtlh.rb
wasm-clangw