summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-09-15[ruby/yarp] Error when numbered parameters are writtenKevin Newton
https://github.com/ruby/yarp/commit/65b536ba12
2023-09-15[ruby/yarp] Support parsing numbered parametersKevin Newton
https://github.com/ruby/yarp/commit/ffc8f35e56
2023-09-15[ruby/yarp] Track explicit parameters on blocksKevin Newton
https://github.com/ruby/yarp/commit/99c91931e0
2023-09-15[ruby/yarp] Properly handle missing method namesKevin Newton
https://github.com/ruby/yarp/commit/4a30c69051
2023-09-15[Bug #19882] Reject tokens invalid as symbolsNobuyoshi Nakada
2023-09-15Bump actions/checkout from 3.6.0 to 4.0.0dependabot[bot]
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.6.0 to 4.0.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/f43a0e5ff2bd294095638e18286ca9a3d1956744...3df4ab11eba7bda6032a0b82a6bb43b11571feac) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2023-09-15[Bug #19778] Add `-I` options for opt-dir to `$INCFLAGS`Nobuyoshi Nakada
These options have been separated from `$CFLAGS` already in the other places.
2023-09-15Bump ruby/setup-ruby from 1.152.0 to 1.153.0dependabot[bot]
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.152.0 to 1.153.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/250fcd6a742febb1123a77a841497ccaa8b9e939...5311f05890856149502132d25c4a24985a00d426) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Notes: Merged: https://github.com/ruby/ruby/pull/8447
2023-09-15Fix Thread#native_thread_id being cached across fork (#8418)KJ Tsanaktsidis
The native thread ID can and does change on some operating systems (e.g. Linux) after forking, so it needs to be re-queried. [Bug #19873] Notes: Merged-By: nurse <naruse@airemix.jp>
2023-09-14Don't call malloc with 0Aaron Patterson
It seems not-uncommon for methods to have no IV, ISE, or ICVARC caches. Calling malloc with 0 will actually allocate something, so if there aren't any caches (`ISEQ_IS_SIZE(body) == 0`), then we can avoid allocating memory by not calling malloc. If there are no caches, then theoretically nobody should be reading from the buffer anyway. This saves about 1MB on Lobsters benchmark. Notes: Merged: https://github.com/ruby/ruby/pull/8442
2023-09-14YJIT: Skip Insn::Comment and format! if disasm is disabled (#8441)Takashi Kokubun
* YJIT: Skip Insn::Comment and format! if disasm is disabled Co-authored-by: Alan Wu <alansi.xingwu@shopify.com> * YJIT: Get rid of asm.comment --------- Co-authored-by: Alan Wu <alansi.xingwu@shopify.com> Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2023-09-14YJIT: Remove UTF-8 BOM [ci skip]Alan Wu
/yjit/src/backend/x86_64/mod.rs Is also UTF-8 and it doesn't have the marker. The standard recommends against it, so remove it.
2023-09-14Skip renaming OpenSSL DLLsTakashi Kokubun
to fix CI failures like: https://github.com/ruby/ruby/actions/runs/6190995187/job/16808382442
2023-09-14YJIT: Plug native stack overflowAlan Wu
Previously, TestStack#test_machine_stack_size failed pretty consistently on ARM64 macOS, with Rust code and part of the interpreter used for per-instruction fallback (rb_vm_invokeblock() and friends) touching the stack guard page and crashing with SEGV. I've also seen the same test fail on x64 Linux, though with a different symptom. Notes: Merged: https://github.com/ruby/ruby/pull/8443 Merged-By: XrXr
2023-09-14[rubygems/rubygems] Gemfile ruby file: covers more version formatsMartin Emde
Increase test coverage and be explicit about what is and is not supported. https://github.com/rubygems/rubygems/commit/a096397a00
2023-09-14[ruby/yarp] Simplify multi-target parsingKevin Newton
This simplifies how we handle multi-targets, and also fixes a bug we had where for loops were always getting multi-targets, even when there was only a single target. https://github.com/ruby/yarp/commit/31eb8b7ad5
2023-09-14[ruby/yarp] Introduce MatchWriteNodeKevin Newton
This rarely used node holds information about the local variables that need to get written in the case a regular expression is used on the left-hand side of a =~ operator and it has named capture groups. Note that we already "handled" these nodes by adding locals to the AST, but we didn't actually expose this information, making it difficult to compile. The general idea behind this node is that it maintains the ability for consumers to find all of the call nodes in the tree easily so it's not flattening down. However, it should be okay because you hopefully don't need any information in the call node to determine what to compile because the locals list is on the top level. https://github.com/ruby/yarp/commit/e136e7f9a8
2023-09-14[ruby/yarp] Write names should not underflow size_tKevin Newton
If the read_name is invalid, we shouldn't try to set a write name. https://github.com/ruby/yarp/commit/06881c8ca7
2023-09-14[ruby/yarp] Handle errors when operator writes on a call with a blockKevin Newton
https://github.com/ruby/yarp/commit/93bec2c173
2023-09-14[ruby/yarp] Fix multi target parentheses locationsKevin Newton
https://github.com/ruby/yarp/commit/7f71527522
2023-09-14[ruby/yarp] Remove deprecated aliasesKevin Newton
https://github.com/ruby/yarp/commit/db28e22363
2023-09-14[ruby/yarp] Extract out parse_write_nameKevin Newton
https://github.com/ruby/yarp/commit/0d3e8cdcd7
2023-09-14[ruby/yarp] Reject invalid call-operator-writeKevin Newton
https://github.com/ruby/yarp/commit/d3a852dac2
2023-09-14[ruby/yarp] Use bytes instead of bit fieldsKevin Newton
https://github.com/ruby/yarp/commit/890fa72fdd
2023-09-14[ruby/yarp] Add a frozen string flagKevin Newton
https://github.com/ruby/yarp/commit/09248a1f9e
2023-09-14[ruby/yarp] Introduce a flag for a static literal checkKevin Newton
https://github.com/ruby/yarp/commit/c61658c0fd
2023-09-14[ruby/yarp] Parse frozen string literal commentKevin Newton
https://github.com/ruby/yarp/commit/373898e7cb
2023-09-14[ruby/yarp] Move booleans on the parser to the end so they are more compactKevin Newton
https://github.com/ruby/yarp/commit/21a43034d0
2023-09-14[YARP] Fix up alias and true node (#8423)Kevin Newton
* [YARP] Use ALIAS_METHOD as opposed to ALIAS * [YARP] Use YP_TRUE_NODE instead of YP_NODE_TRUE_NODE Notes: Merged-By: jemmaissroff
2023-09-14YJIT: Initialize Vec with capacity for iterators (#8439)Takashi Kokubun
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2023-09-15[Bug #19877] Fix flip-flop in blockNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8440
2023-09-15[Bug #19877] Named captures should take place from regexps in blockNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8440
2023-09-15[Bug #19877] Literals cannot have singleton methods even in blocksNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8440
2023-09-15Reuse `rb_reg_named_capture_assign_iter_impl`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8440
2023-09-14[ruby/yarp] Remove varargs entirelyKevin Newton
Following up on #1483, this removes our usage of varargs entirely. Under the new approach we make explicit methods for the various signatures. Because we know the type of everything any it's very consistent, this makes it easier for compilers to inline. Also, I renamed the functions to be more consistent with each other so that we'll have some more internal consistency. https://github.com/ruby/yarp/commit/87af9ba29b
2023-09-14YJIT: Initialize Assembler vectors with capacity (#8437)Takashi Kokubun
Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
2023-09-14[ruby/yarp] Fix up unary minus precedenceKevin Newton
https://github.com/ruby/yarp/commit/6be28eeed0
2023-09-14[ruby/yarp] Handle concat character literal and stringKevin Newton
https://github.com/ruby/yarp/commit/fb141b8d07
2023-09-14[ruby/yarp] Extract out heredoc parsing into parse_stringsKevin Newton
https://github.com/ruby/yarp/commit/c5a1094988
2023-09-14[ruby/yarp] Extract out parse_stringsKevin Newton
https://github.com/ruby/yarp/commit/55446f7a43
2023-09-14[DOC] Sort "Core classes updates" sectionNobuyoshi Nakada
Alphabetically by class or module names.
2023-09-14[ruby/yarp] Handle invalid operator write on fcallKevin Newton
https://github.com/ruby/yarp/commit/22c800eab1
2023-09-14[ruby/yarp] get rid of `accept_any_p` and just use regular functionsNathan Froyd
https://github.com/ruby/yarp/commit/4512daf769
2023-09-14[ruby/yarp] don't use varargs for common cases of `match_any_type_p`Nathan Froyd
https://github.com/ruby/yarp/commit/79794b4833
2023-09-14[ruby/yarp] add some `const` qualifiersNathan Froyd
https://github.com/ruby/yarp/commit/e807462c6d
2023-09-14Fix `io_buffer_get_string` default length computation. (#8427)Samuel Williams
* Fix `io_buffer_get_string` default length computation. When an offset bigger than the size is given, the resulting length will be computed incorrectly. Raise an argument error in this case. * Validate all arguments. Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2023-09-14[Bug #19868] Deprecate `Process::Status#&` and `Process::Status#>>`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8392
2023-09-14[Bug #19868] Suggest other Process::Status method for `&` and `>>`Nobuyoshi Nakada
`Process::Status#&` and `Process::Status#>>` are provided only for the backward compatibility with older Ruby than 1.8 where `$?` was a `Fixnum`, and the knowledge about internals of system dependent macros is necessary to use them. Modern programs and libraries should not need these methods. Notes: Merged: https://github.com/ruby/ruby/pull/8392
2023-09-14Negative value to Process::Status method for compatibilityNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8392
2023-09-14[ruby/yarp] make some encoding tables `const`v3_3_0_preview2Nathan Froyd
https://github.com/ruby/yarp/commit/777c376deb