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

78311 Коммитов

Автор SHA1 Сообщение Дата
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
卜部昌平 20478cafe1 do not set environment variables
These variables were used only once.
2023-07-06 17:26:20 +09:00
Hiroshi SHIBATA d287d8591c [rubygems/rubygems] Avoid to use Base64 library because I have a plan to base64 gem to bundled gems in ruby/ruby.
https://github.com/rubygems/rubygems/commit/221797cfd1
2023-07-06 05:01:29 +00:00
Takashi Kokubun 57bf73225d Add a NEWS entry for --yjit-exec-mem-size [ci skip] 2023-07-05 14:42:20 -07:00
Takashi Kokubun 9c1776e6b0
YJIT: Use --yjit-exec-mem-size=128 by default (#8031) 2023-07-05 14:21:02 -07:00
Takashi Kokubun f314656c23 Skip a failing spec for the latest bigdecimal 2023-07-05 14:18:51 -07:00
Takashi Kokubun f0f099a5ff Disable clippy on Cirrus for now 2023-07-05 14:10:13 -07:00
Takashi Kokubun 7c9ce38cdb Remove duplicated Rust installation 2023-07-05 14:10:13 -07:00
Jemma Issroff 163cdb4cd4 Deleted unnecessary YARP fuzzing doc file 2023-07-05 16:58:55 -04:00
Jemma Issroff 9614a61379 Fixed build scripts for YARP 2023-07-05 16:58:55 -04:00
Jemma Issroff bfb933371d Manual YARP resync 2023-07-05 16:58:55 -04:00
tomoya ishida 6f9d1b4b0f [ruby/reline] Update Relin::IOGate dinamically when it is needed
(https://github.com/ruby/reline/pull/560)

https://github.com/ruby/reline/commit/4680d1c9e0
2023-07-05 20:21:13 +00:00
cryptogopher 5f07f78e86 [ruby/bigdecimal] Update to_s doc examples
https://github.com/ruby/bigdecimal/commit/8a94a29cf1
2023-07-05 20:15:53 +00:00
cryptogopher 10f59dcbcd [ruby/bigdecimal] Add .to_s('F') digit grouping for integer part
https://github.com/ruby/bigdecimal/commit/f63544d465
2023-07-05 20:15:52 +00:00
Takashi Kokubun 1dde9d7260 Explain why YJIT is disabled for clang<=9 [ci skip] 2023-07-05 10:10:51 -07:00
tomoya ishida cd7166cc8f [ruby/reline] Fix wrong byte_pointer passed to auto_indent_proc
(https://github.com/ruby/reline/pull/562)

https://github.com/ruby/reline/commit/4348354604
2023-07-05 16:33:46 +00:00
Nobuyoshi Nakada 6a871baa3c
Note that YJIT requires FLONUM [ci skip] 2023-07-05 23:34:00 +09:00
卜部昌平 833b32f503 also disable yjit for clang < 10
They don't compile.  I guess nobody actively maintain such old
compilers.  Chances are the situation won't improve.  Let's stop
testing yjit on them.
2023-07-05 23:13:40 +09:00
卜部昌平 dd7c590f8a disable yjit when for non-flonum
YJIT does not interface with this flag.
2023-07-05 23:13:40 +09:00
Burdette Lamar 00f9231534
[DOC] RDoc for some of dir.c (#8026) 2023-07-05 09:45:54 -04:00
Nobuyoshi Nakada 1f9618fc95
Remove stale YARP snapshort file [ci skip] 2023-07-05 20:37:54 +09:00
ParadoxV5 bd93602485 Sync man pages
Co-Authored-By: David Rodríguez <2887858+deivid-rodriguez@users.noreply.github.com>
2023-07-05 11:37:23 +00:00
Jimmy H 8984442154 [rubygems/rubygems] `gemfile.5`: Quote default glob to escape Markdown
For consistency, I chose code format over plaintext escaping.
2023-07-05 11:37:20 +00:00
Hiroshi SHIBATA 1e7ddfa7ea [ruby/psych] Extract accessor methods without forwardable
We should leave additional dependency if we leave from them.

https://github.com/ruby/psych/commit/3d0325a774
2023-07-05 10:11:36 +00:00
Masafumi Koba 62b4983416 [ruby/rdoc] [DOC] Improve CSS for "toggle source" hovering over one more method signatures
This commit improves the behavior of showing the "toggle source" element on mouseover.

For example, when a method has one more signatures by using `:call-seq:`,

```ruby
# :call-seq:
#   foo {|element| ... } -> self
#   foo -> new_enumeration
def foo
end
```

The current CSS doesn't show "toggle source" even when hovering the second signature `foo -> new_enumeration`.
But this change will show "toggle source" always when hovering over any signature.

For details about the `.method-header` element, see `lib/rdoc/generator/template/darkfish/class.rhtml`:
0e060c69f5/lib/rdoc/generator/template/darkfish/class.rhtml (L101-L124)

For example, see https://docs.ruby-lang.org/en/3.2/Array.html#method-i-delete
2023-07-05 04:09:08 +00:00
Vinicius Stock f9288fb585 [ruby/rdoc] Add source_code, homepage and changelog uris to gemspec metadata [ci skip]
https://github.com/ruby/rdoc/commit/b93687fdd0
2023-07-05 04:08:17 +00:00
gemmaro 62754503d8 [ruby/rdoc] [DOC] Fix to use KeyboardEvent.key over keyCode
https://github.com/ruby/rdoc/commit/663edc807c
2023-07-05 03:39:18 +00:00
gemmaro 77fa4787bd [ruby/rdoc] Add keydown event listener to focus on search field
https://github.com/ruby/rdoc/commit/db62e47df2
2023-07-05 03:37:28 +00:00
Andy Waite fd6da40fef [ruby/irb] Use `max_by` for `longest_cmd_name_length`
(https://github.com/ruby/irb/pull/628)

https://github.com/ruby/irb/commit/5e87f3bfdd

Co-authored-by: Andy Waite <andyw8@users.noreply.github.com>
2023-07-04 20:45:07 +00:00
Takashi Kokubun 6b2abe570f
YJIT: Avoid reloading InsnOut operands (#8021) 2023-07-04 16:02:39 -04:00
Takashi Kokubun a1d4dada6b
YJIT: Break register cycles for C arguments (take 2) (#8018)
* Revert "Revert "YJIT: Break register cycles for C arguments (#7918)""

This reverts commit 78ca085785.

* Use shfited_live_ranges for the last-insn check
2023-07-04 15:57:32 -04:00
Stan Lo f6af5a1128 [ruby/irb] Refactor eval history
(https://github.com/ruby/irb/pull/623)

* Rename `ext/history.rb` to `ext/eval_history.rb`

To confusion with `lib/irb/history.rb`

* Add eval_history tests

* Rename eval_history's History to EvalHistory to avoid confusion
2023-07-04 15:17:41 +00:00
Alan Wu 296782ab60
YJIT: Fix autosplat miscomp for blocks with optionals (#8006)
* YJIT: Fix autosplat miscomp for blocks with optionals

When passing an array as the sole argument to `yield`, and the yieldee
takes more than 1 optional parameter, the array is expanded similar
to `*array` splat calls. This is called "autosplat" in
`setup_parameters_complex()`.

Previously, YJIT did not detect this autosplat condition. It passed the
array without expanding it, deviating from interpreter behavior.
Detect this conditon and refuse to compile it.

Fixes: Shopify/yjit#313

* RJIT: Fix autosplat miscomp for blocks with optionals

This is mirrors the same issue as YJIT. See previous commit.
2023-07-04 10:45:29 -04:00
Hiroshi SHIBATA 218f913aa6 Suppressing security alert of atty dependency by env_logger-0.9.0 2023-07-04 10:18:54 -04:00
Stan Lo 0a8b5cac66 [ruby/reline] Refactor Reline::Core
(https://github.com/ruby/reline/pull/561)

* Use Reline::Core.encoding instead of directly referencing IOGate

* Set input/output based on the IOGate's interface
2023-07-04 13:52:31 +00:00
Burdette Lamar 2e6a8a8610
[DOC] Dir doc (#8014) 2023-07-04 09:23:24 -04:00
Matt Valentine-House 9178a99877 Remove reference to USE_RINCGC
This compile time flag was removed in https://github.com/ruby/ruby/pull/7313

This commit cleans up some related dead code.
2023-07-04 14:14:34 +01:00
Nobuyoshi Nakada 8ddfc17720 Use `uint_least32_t`
The elements of `ruby_global_name_punct_bits` table are 32-bit masks.
2023-07-04 21:30:44 +09:00
卜部昌平 ab66155620 fix substitution errors
These expressions don't exist.
2023-07-04 20:13:49 +09:00
卜部昌平 7ee39556db fix typo
`matrix.name` doesn't exist.
2023-07-04 20:13:49 +09:00
卜部昌平 72e58bbdc0 fix typo
According to https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#check_suite
the key is "types", not "type".
2023-07-04 20:13:49 +09:00
卜部昌平 7690a31223 chore: add blank lines [ci skip]
A bit readable to me.
2023-07-04 20:13:49 +09:00
卜部昌平 f7732d63f4 Use `${{}}` for if statement [ci skip]
Looking at `git log` it seems multiple members of the team prefer
this style.  Let us follow the tradition.
2023-07-04 20:13:49 +09:00