summaryrefslogtreecommitdiff
path: root/tool
AgeCommit message (Collapse)Author
2024-01-22Use line numbers as builtin-indexNobuyoshi Nakada
The order of iseq may differ from the order of tokens, typically `while`/`until` conditions are put after the body. These orders can match by using line numbers as builtin-indexes, but at the same time, it introduces the restriction that multiple `cexpr!` and `cstmt!` cannot appear in the same line. Another possible idea is to use `RubyVM::AbstractSyntaxTree` and `node_id` instead of ripper, with making BASERUBY 3.1 or later.
2024-01-22Stop sync csv repoHiroshi SHIBATA
2024-01-22Stop sync nkf repoHiroshi SHIBATA
2024-01-22Stop sync drb repoHiroshi SHIBATA
2024-01-19[PRISM] Revisit target nodesKevin Newton
2024-01-19[PRISM] Fix ensure code running twiceeileencodes
Fixes: ruby/prism#2212
2024-01-19Stop sync rinda repoHiroshi SHIBATA
2024-01-19Skip test task for resolv-replaceHiroshi SHIBATA
2024-01-19Removed sync task for resolv-replaceHiroshi SHIBATA
2024-01-19Removed sync task for abbrevHiroshi SHIBATA
2024-01-19Removed sync task for observerHiroshi SHIBATA
2024-01-19Bump uri version used in developmentDavid Rodríguez
2024-01-18Old sh does not allow `:` in function names [ci skip]Nobuyoshi Nakada
2024-01-18Preserve spaces in messages [ci skip]Nobuyoshi Nakada
2024-01-18Print error messages to the stderr [ci skip]Nobuyoshi Nakada
2024-01-18Add baseruby version messageKazuhiro NISHIYAMA
Because `--with-baseruby=/usr/bin/ruby` on macOS is Ruby 2.6, I was confused why `--with-baseruby` was ignored.
2024-01-18Stop sync commits from bigdecimal repoHiroshi SHIBATA
2024-01-17[PRISM] Enable more btestsKevin Newton
2024-01-17Skip checking for symbol leaks in libruby.so linking extensionsNobuyoshi Nakada
The libruby.so linking extension libraries contain symbols exported from extension libraries, and is not subject of test-leaked-globals.
2024-01-16Drop obsoleted BUILTIN_ATTR_NO_GC attributeTakashi Kokubun
The thing that has used this in the past was very buggy, and we've never revisied it. Let's remove it until we need it again.
2024-01-17Inject base64 for basic auth examples of bundlerHiroshi SHIBATA
2024-01-17No longer needed to sync base64Hiroshi SHIBATA
2024-01-16We don't need to sync getoptlongHiroshi SHIBATA
2024-01-16We don't need to sync mutex_mHiroshi SHIBATA
2024-01-13Lrama v0.6.1yui-knk
2024-01-12Only intern constants upon compilation entryAaron Patterson
Before this commit the Prism compiler would try to intern constants every time it re-entered. This pool of constants is "constant" (there is only one pool per parser instance), so we should do it only once: upon the top level entry to the compiler. This change does just that: it populates the interned constants once. Fixes: https://github.com/ruby/prism/issues/2152
2024-01-12Fix splat assigns with no leftiesAaron Patterson
We still need to emit an expand array even if there's no "left side" variables Fixes: https://github.com/ruby/prism/issues/2153
2024-01-12Set prerelease flag if tag includes preview or rcHiroshi SHIBATA
2024-01-12Truncate only prefix. Don't remove v from like preview1Hiroshi SHIBATA
2024-01-11Avoid reading unused lvars in Primitive.cexprJohn Hawthorn
Previously on builds with optimizations disabled, this could result in an out of bounds read. When we had all of: * built with -O0 * Leaf builtin * Primitive.mandatory_only * "no args builtin", called by vm_call_single_noarg_inline_builti * The stack is escaped to the heap via binding or a proc This is because mk_builtin_loader generated reads for all locals regardless of whether they were used and in the case we generated a mandatory_only iseq that would include more variables than were actually available. On optimized builds, the invalid accesses would be optimized away, and this also was often unnoticed as the invalid access would just hit another part of the stack unless it had been escaped to the heap. The fix here is imperfect, as this could have false positives, but since Primitive.cexpr! is only available within the cruby codebase itself that's probably fine as a proper fix would be much more challenging (the only false positives we found were in rjit.rb). Fixes [Bug #20178] Co-authored-by: Adam Hess <HParker@github.com>
2024-01-11Disable to add latest label when running with --no-dry-run optionHiroshi SHIBATA
2024-01-10Add a GitHub workflow for prism btestsKevin Newton
2024-01-10Need newline after changes listHiroshi SHIBATA
2024-01-09outdate-bundled-gems.rb: Make platform and version options optionalNobuyoshi Nakada
2024-01-09outdate-bundled-gems.rb: Remove timestamp files for revisions to testNobuyoshi Nakada
2024-01-09outdate-bundled-gems.rb: Sort outputs in depth orderNobuyoshi Nakada
2024-01-09outdate-bundled-gems.rb: Add `--all` optionNobuyoshi Nakada
Unless this option is given, keep other gems that may be used by `test-bundled-gems`.
2024-01-09outdate-bundled-gems.rb: Add `--only={all,curdir,srcdir}` optionNobuyoshi Nakada
2024-01-09outdate-bundled-gems.rb: Pass platform and version explicitlyNobuyoshi Nakada
For different version baseruby, use the target platform and version instead of the info of baseruby.
2024-01-09outdate-bundled-gems.rb: Do not clean the same directory twiceNobuyoshi Nakada
2024-01-09Introduce NODE_SYM to manage symbol literalyui-knk
`:sym` was managed by `NODE_LIT` with `Symbol` object. This commit introduces `NODE_SYM` so that 1. Symbol literal is detectable from AST Node 2. Reduce dependency on ruby object
2024-01-09Avoid the duplicated entries of GitHub releasesHiroshi SHIBATA
2024-01-07Skip some RBS testS-H-GAMELINKS
2024-01-06[DOC] Load options and parse files from srcdirNobuyoshi Nakada
RDoc options that do not change and can be written in `.rdoc_options` file are moved, so that they match when called without `make`. Get rid of parsing the files in `page_dir` twice (as relative paths and absolute paths).
2024-01-05Support Feature and Bug tickets for release note generatorHiroshi SHIBATA
2024-01-01Don't create T_MATCH object if /regexp/.match(string) doesn't matchLuke Gruber
Fixes [Bug #20104]
2023-12-28Exclude [ci skip] commits from ChangeLogNobuyoshi Nakada
2023-12-28Exclude dependabot from ChangeLog [ci skip]Nobuyoshi Nakada
2023-12-27[Bug #20088] Fix ARCH_FLAG for cross compilingNobuyoshi Nakada
2023-12-27Make sync script work correctly with Windows-style newlinesKJ Tsanaktsidis
I'm almost certain nobody is actually running this script on Windows, but the tests for it do run during `nmake check`, and they fail at least on my git configuration. The $ anchor doesn't match \r\n with git's -E regex matching, so we need to add \r? to gobble the carriage-return up too if needed.