Граф коммитов

78553 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 761662bbea
Revert previous commit [ci skip]
This reverts commit 074bf01e13, "Test
`Comparable#clamp` with inverse arguments as well as a Range".
The test is already in another method.
2023-07-12 13:43:25 +09:00
Nobuyoshi Nakada 074bf01e13
Test `Comparable#clamp` with inverse arguments as well as a Range 2023-07-12 13:31:19 +09:00
Takashi Kokubun dfe782be17 Refactor COLLECT_USAGE_INSN 2023-07-11 17:26:03 -07:00
Takashi Kokubun 503f987ead Skip a flaky test for RJIT 2023-07-11 14:39:32 -07:00
Takashi Kokubun d45118aaaf Remove obsoleted USE_INSNS_COUNTER macro for now
I don't use that these days. I'd like to remove this to ease a change
I'm writing. I'll resurrect this when I need this again.
2023-07-11 14:36:36 -07:00
Peter Zhu 7299c8c0f1 Try to fix flaky GC test
assert_not_nil could allocate objects which may trigger the major GC, so
don't run the assertions until the major GC has been ran.
2023-07-11 15:05:10 -04:00
git 84d0667ea8 Update default gems list at d40935c680 [ci skip] 2023-07-11 16:31:17 +00:00
ima1zumi d40935c680 [ruby/irb] Bump version to 1.7.2
(https://github.com/ruby/irb/pull/636)

https://github.com/ruby/irb/commit/85d6b4d146
2023-07-11 16:30:34 +00:00
Jemma Issroff d62328251d [ruby/yarp] Remove yp_location_for_node in preference of yp_newline_list_line_column
https://github.com/ruby/yarp/commit/55aa813909
2023-07-11 15:49:42 +00:00
ima1zumi 4be92463b6 [ruby/irb] Require Reline 0.3.6 or higher
(https://github.com/ruby/irb/pull/632)

* Require Reline 0.3.6 or higher

"Multi-line multibyte regular expression raises exception" (https://github.com/ruby/irb/issues/627) is fixed in Reline 0.3.6.

* Remove unnecessary conditional
2023-07-11 14:47:26 +00:00
Maxime Chevalier-Boisvert e770006486
YJIT: add counter for untracked gbpp exit reason (#8052) 2023-07-11 10:17:48 -04:00
Nobuyoshi Nakada 1b01140d8a
Remove unused fstring 2023-07-11 19:52:37 +09:00
Jeremy Evans 3874381c44
Fix autosplat conditions to handle ruby2_keywords case
Autosplat should not occur if there are two arguments but second
argument is an array containing a ruby2_keywords splat. Only
autosplat if a single argument to be yielded to the block, and there
is no splatted flagged keyword hash passed.

Fixes [Bug #19759]
2023-07-10 10:06:23 -07:00
Jemma Issroff 53c5601565
[ruby/yarp] Fix endless method definitions binding power to accept args (#8051) 2023-07-10 10:54:12 -04:00
Nobuyoshi Nakada 880b29b74b [rubygems/rubygems] Use `File::NULL` instead of hard coded null device names
https://github.com/rubygems/rubygems/commit/44fe8e7f50
2023-07-10 12:11:12 +00:00
Nobuyoshi Nakada 2951e3d83b
Allow nmake to ignore errors
cmd.exe can redirect file descriptor other than STDOUT, while
command.com couldn't.
2023-07-10 19:21:47 +09:00
Nobuyoshi Nakada c8d0470bb0
Use `File::NULL` instead of hard coded null device names 2023-07-10 19:21:47 +09:00
S-H-GAMELINKS 092c9b266a Reuse rb_ractor_make_shareable function for rb_ractor_make_shareable_copy function 2023-07-10 19:06:18 +09:00
krk abfac2222b Add a realpath cache to reduce number of syscalls.
Number of lstat and stat syscalls for each 'require'd file is doubled,
because rb_realpath_internal is called from two places with the same
arguments in require_internal; once for checking the realpaths cache,
and once in load_iseq_eval when iseq is not found.

Introduce rb_realpath_internal_cached function to reuse the realpath_map
cache which memoizes rb_realpath_internal function, leading to less
syscalls and increased startup performance depending on the cost of the syscalls
in a particular environment.
2023-07-10 18:05:19 +09:00
Nobuyoshi Nakada d516910b61
Serially update only the ripper source, even with old GNU make 2023-07-10 16:36:03 +09:00
Nobuyoshi Nakada 9dcdffb8bf
Make the string index functions closer to symmetric
So that irregular parts may be more noticeable.
2023-07-09 18:45:51 +09:00
Nobuyoshi Nakada 5e79d5a560
Make `rb_str_rindex` return byte index
Leave callers to convert byte index to char index, as well as
`rb_str_index`, so that `rb_str_rpartition` does not need to
re-convert char index to byte index.
2023-07-09 16:39:28 +09:00
Nobuyoshi Nakada e2257831ab
[Bug #19763] Raise same message exception for regexp 2023-07-09 16:21:02 +09:00
Stan Lo 4e2f98be39 [ruby/irb] Avoid using Reline as a module
(https://github.com/ruby/irb/pull/633)

Using it as a module makes it harder to understand methods' source.
2023-07-09 06:25:08 +00:00
S-H-GAMELINKS acd9c208d5 Move some macro for universal parser 2023-07-09 15:00:52 +09:00
yui-knk b2bccf053b Include ripper.h into `$distcleanfiles` 2023-07-09 13:02:25 +09:00
alitaso345 2903e9456f Remove ISASCII definition
The ISASCII definition was moved to parse.y( https://github.com/ruby/ruby/pull/8029 ), but the old definition wasn't removed.
2023-07-09 08:16:00 +09:00
git 5f915108da Update default gems list at 33e00b79a0 [ci skip] 2023-07-08 08:54:34 +00:00
Stan Lo 33e00b79a0 [ruby/reline] Bump version to 0.3.6
(https://github.com/ruby/reline/pull/565)

https://github.com/ruby/reline/commit/2503ddb9a6
2023-07-08 08:53:46 +00:00
tomoya ishida 02f9b685e8 [ruby/reline] Ignore unhandled escape sequences
(https://github.com/ruby/reline/pull/522)

* Add unassigned escape sequence matcher to KeyStroke

* Do not insert ESC and unassigned ESC+key to input buffer
2023-07-08 08:41:30 +00:00
S-H-GAMELINKS 8b2a0ec8df Move ISASCII defination to parse.y 2023-07-08 15:26:55 +09:00
Nobuyoshi Nakada 3c4d788bfe macos: symbols for `rb_execution_context_t` should be internal 2023-07-08 11:31:17 +09:00
Nobuyoshi Nakada f052aa11f2 macos: try --enable-shared 2023-07-08 11:31:17 +09:00
Nobuyoshi Nakada 46fe9ba0f5 macos: set configure options in the compsite action 2023-07-08 11:31:17 +09:00
Nobuyoshi Nakada cceb410087 leaked-globals: check leaked symbols in libruby.so if enable-shared 2023-07-08 11:31:17 +09:00
Nobuyoshi Nakada 28ae4e4628 leaked-globals: ignore Address Sanitizer symbols 2023-07-08 11:31:17 +09:00
Burdette Lamar 7f2bd17fad
[DOC] RDoc for dir.c (#8037) 2023-07-07 16:37:36 -04:00
Jemma Issroff dadf17818c
Add ruby_globals to lldb for easier debugging (#8041) 2023-07-07 15:55:58 -04:00
Jemma Issroff 9e3a5cc54f [ruby/yarp] Add a yp_location_for_node function to the C API
yp_location_for_node takes a parser and a node and returns the
location in a way that can be punned into ruby/ruby types

https://github.com/ruby/yarp/commit/75e06016a7
2023-07-07 17:46:47 +00:00
Jemma Issroff 31f83a6fea [ruby/yarp] Add source to ParseResult
https://github.com/ruby/yarp/commit/f3802e03e0
2023-07-07 17:46:46 +00:00
Jemma Issroff 61efa9c823 [ruby/yarp] Remove bin/newlines
Since newlines are working, this bin/newlines is less helpful, and
we can remove the API for newlines

https://github.com/ruby/yarp/commit/b538460b99
2023-07-07 17:46:45 +00:00
Stan Lo 24d9e21f84 [ruby/reline] Reduce direct references to `Reline::IOGate`
(https://github.com/ruby/reline/pull/566)

* Avoid referencing IOGate from IOGate classes

The only time those classes being used is when themselves being the IOGate.
So when referencing to IOGate, it's better to use `self` instead.

* Avoid referencing to IOGate from LineEditor directly

* Avoid referencing to IOGate from Core directly

* Reference to Reline.core directly

* Replace Reline::IOGate with Reline.core.io_gate
2023-07-07 17:27:25 +00:00
Hiroshi SHIBATA a642a94b68
llvm-objcopy is not provided by Xcode Command Line Tools.
Revert "Disable YJIT if objcopy command is old"

  This reverts commit 75f8781c08.
2023-07-07 09:28:27 +09:00
Takashi Kokubun 48d95de6a6
YJIT: Use registers to pass stack temps to C calls (#7920)
* YJIT: Use registers to pass stack temps to C calls

* YJIT: Update comments in ccall
2023-07-06 15:51:01 -04:00
Jemma Issroff 06c2d3e0a0
Resync YARP (#8036)
It got out of sync again. After this re-sync, it should happen
cherry-picking automatically.
2023-07-06 13:26:26 -04:00
Benoit Daloze 055f7219bc Improve ArgumentError message for Module#set_temporary_name 2023-07-06 18:27:13 +02:00
Benoit Daloze 9ee1877e4a Ensure the name given to Module#set_temporary_name is not a valid constant path
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2023-07-06 18:27:13 +02:00
Benoit Daloze e76022f41c Specs for Module#set_temporary_name should be in their own file 2023-07-06 18:27:13 +02:00
Maxime Chevalier-Boisvert 2acb44e044
YJIT: add new stats counter for compiled ISEQ entry points (#8032)
* YJIT: add new stats counter for compiled ISEQ entry points

* Update yjit.rb

Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>

---------

Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
2023-07-06 10:17:03 -04:00
Nobuyoshi Nakada 75f8781c08
Disable YJIT if objcopy command is old
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
2023-07-06 21:16:00 +09:00