summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Ignore ASCII-incompatible scripts under spec/ruby [ci skip]Nobuyoshi Nakada2023-04-201-1/+1
|
* Exit explicitly instead of !Nobuyoshi Nakada2023-04-201-7/+11
|
* Run source file checks on all branchesNobuyoshi Nakada2023-04-201-7/+10
|
* Use ASCII-compatible encoding for testsNobuyoshi Nakada2023-04-202-0/+0
| | | | | | Since these files are written in a wide character encoding, stop at first NUL byte and are actually empty. ASCII-incompatible encodings have never been supported as source encoding.
* YJIT: Replace Mov with LoadInto on arm64 (#7744)Takashi Kokubun2023-04-191-20/+39
| | | | | * YJIT: Replace Mov with LoadInto on arm64 * YJIT: Add a test for the new pass
* YJIT: Tweak asm comments (#7743)Takashi Kokubun2023-04-191-3/+4
|
* YJIT: Remove Insn::RegTemps (#7741)Takashi Kokubun2023-04-195-97/+83
| | | | | | | | | | | * YJIT: Remove Insn::RegTemps * Update a comment Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com> --------- Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
* Hide Gem::MockGemUi. It's only used by testsHiroshi SHIBATA2023-04-192-2/+2
|
* [rubygems/rubygems] To use Gem::YAMLSerializer in BundlerHiroshi SHIBATA2023-04-191-4/+11
| | | | https://github.com/rubygems/rubygems/commit/5351e01b32
* [rubygems/rubygems] Copy YAMLSerializer from BundlerHiroshi SHIBATA2023-04-192-4/+93
| | | | https://github.com/rubygems/rubygems/commit/6a97346708
* [rubygems/rubygems] Added tests for load_with_rubygems_config_hash and ↵Hiroshi SHIBATA2023-04-191-0/+28
| | | | | | dump_with_rubygems_yaml https://github.com/rubygems/rubygems/commit/0393f24119
* [rubygems/rubygems] Bundler::YAMLSerializer.load couldn't raise error when ↵Hiroshi SHIBATA2023-04-193-71/+28
| | | | | | invalid yaml was provided https://github.com/rubygems/rubygems/commit/cfcfde04c7
* [rubygems/rubygems] Replaced Gem::ConfigFile.dump_with_rubygems_yaml for ↵Hiroshi SHIBATA2023-04-192-10/+14
| | | | | | saveing configuration https://github.com/rubygems/rubygems/commit/46438e61cd
* [rubygems/rubygems] Introduce self.load_with_rubygems_config_hashHiroshi SHIBATA2023-04-193-42/+38
| | | | https://github.com/rubygems/rubygems/commit/9175b8cf2a
* [rubygems/rubygems] Introduce self.dump_with_rubygems_yamlHiroshi SHIBATA2023-04-191-13/+11
| | | | https://github.com/rubygems/rubygems/commit/3d3b0d80a1
* [rubygems/rubygems] Removed trailing-slash for domainHiroshi SHIBATA2023-04-191-3/+3
| | | | https://github.com/rubygems/rubygems/commit/81ba58f445
* [rubygems/rubygems] Wrap self.convert_rubygems_config_hash from ↵Hiroshi SHIBATA2023-04-193-35/+44
| | | | | | Bundler::YAMLSerializer.load https://github.com/rubygems/rubygems/commit/080880ac23
* [rubygems/rubygems] Move all changes only in RubyGemsHiroshi SHIBATA2023-04-194-26/+43
| | | | https://github.com/rubygems/rubygems/commit/d842e2092f
* [rubygems/rubygems] Added guard condition for replacing __ variable in YAML keysHiroshi SHIBATA2023-04-193-16/+4
| | | | https://github.com/rubygems/rubygems/commit/e7d31405ea
* [rubygems/rubygems] Replaced load_yaml_file with Bundler::YAMLSerializerHiroshi SHIBATA2023-04-191-5/+2
| | | | https://github.com/rubygems/rubygems/commit/1ed5fc018e
* [rubygems/rubygems] api_key is always contained stringHiroshi SHIBATA2023-04-191-5/+5
| | | | https://github.com/rubygems/rubygems/commit/925f7f6717
* [rubygems/rubygems] Keep compatiblity of Bundler specsHiroshi SHIBATA2023-04-193-20/+23
| | | | https://github.com/rubygems/rubygems/commit/b211eeacba
* [rubygems/rubygems] Replaced empty hash to nil value in YAMLHiroshi SHIBATA2023-04-191-0/+15
| | | | https://github.com/rubygems/rubygems/commit/8771fbf53d
* [rubygems/rubygems] Only convert old URL key name when it's contained double ↵Hiroshi SHIBATA2023-04-191-1/+1
| | | | | | underscore https://github.com/rubygems/rubygems/commit/a4bfa2ef94
* [rubygems/rubygems] Added missing require for Bundler::YAMLSerializerHiroshi SHIBATA2023-04-191-0/+1
| | | | https://github.com/rubygems/rubygems/commit/55ef32fdd7
* [rubygems/rubygems] Fix regexp for SymbolHiroshi SHIBATA2023-04-191-1/+1
| | | | https://github.com/rubygems/rubygems/commit/9a3ed682a0
* [rubygems/rubygems] Don't use PsychHiroshi SHIBATA2023-04-191-3/+2
| | | | https://github.com/rubygems/rubygems/commit/d6555aaa28
* [rubygems/rubygems] Added explicitly loading for Gem::SafeYAMLHiroshi SHIBATA2023-04-191-0/+2
| | | | https://github.com/rubygems/rubygems/commit/3d9d587dd7
* [rubygems/rubygems] We need to convert empty string for nil valueHiroshi SHIBATA2023-04-191-0/+2
| | | | https://github.com/rubygems/rubygems/commit/348c82311f
* [rubygems/rubygems] Handle Symbol valueHiroshi SHIBATA2023-04-191-1/+3
| | | | https://github.com/rubygems/rubygems/commit/c98677d073
* [rubygems/rubygems] Handle Symbol key and Interger and Boolean valuesHiroshi SHIBATA2023-04-191-3/+18
| | | | https://github.com/rubygems/rubygems/commit/63efdac045
* [rubygems/rubygems] Try to use pure-ruby YAML serializer for configurationHiroshi SHIBATA2023-04-191-6/+5
| | | | https://github.com/rubygems/rubygems/commit/3268d40974
* fix `NameError` messageKoichi Sasada2023-04-192-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following code produces two NameErrors respectively and they are independent, but the second one can show `private constant` message because of first NameError. ```ruby class C class PrivateClass; end private_constant :PrivateClass end begin eval('class C::PrivateClass; end') rescue => e p e end begin Object.const_get 'Foo' rescue => e p e end #<NameError: private constant C::PrivateClass referenced> #<NameError: private constant C::Foo referenced> #=> should be #<NameError: uninitialized constant Foo> ``` It fails the test-all tests with `make test-all TESTS='ruby/class ruby/parse --seed=58891 -v`. The reason is clear miss from https://github.com/ruby/ruby/commit/7387c08373a
* * remove trailing spaces. [ci skip]git2023-04-191-1/+1
|
* Refactor `Regexp#match` cache implementation (#7724)TSUYUSATO Kitsune2023-04-194-334/+437
| | | | | | | | | | * Refactor Regexp#match cache implementation Improved variable and function names Fixed [Bug 19537] (Maybe fixed in https://github.com/ruby/ruby/pull/7694) * Add a comment of the glossary for "match cache" * Skip to reset match cache when no cache point on null check
* Adjust indent [ci skip]Nobuyoshi Nakada2023-04-191-10/+10
|
* Ignore markdown files only commits [ci skip]Nobuyoshi Nakada2023-04-192-0/+4
| | | | | Removed from compilers.yml at 90c8f7ca6bef734d4f347f1ddd3b541ba4ebdea8 carelessly, and seems copied to annocheck.yml then.
* * expand tabs. [ci skip]git2023-04-192-9/+9
| | | | Please consider using misc/expand_tabs.rb as a pre-commit hook.
* Update RJIT to support newarray_sendAaron Patterson2023-04-184-3/+78
| | | | This also adds max / hash support
* Implement opt_newarray_send in YJITAaron Patterson2023-04-182-2/+60
| | | | | This commit implements opt_newarray_send along with min / max / hash for stack allocated arrays
* updating bindgenAaron Patterson2023-04-181-304/+305
|
* Emit special instruction for array literal + .(hash|min|max)Aaron Patterson2023-04-189-46/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces a new instruction `opt_newarray_send` which is used when there is an array literal followed by either the `hash`, `min`, or `max` method. ``` [a, b, c].hash ``` Will emit an `opt_newarray_send` instruction. This instruction falls back to a method call if the "interested" method has been monkey patched. Here are some examples of the instructions generated: ``` $ ./miniruby --dump=insns -e '[@a, @b].max' == disasm: #<ISeq:<main>@-e:1 (1,0)-(1,12)> (catch: FALSE) 0000 getinstancevariable :@a, <is:0> ( 1)[Li] 0003 getinstancevariable :@b, <is:1> 0006 opt_newarray_send 2, :max 0009 leave $ ./miniruby --dump=insns -e '[@a, @b].min' == disasm: #<ISeq:<main>@-e:1 (1,0)-(1,12)> (catch: FALSE) 0000 getinstancevariable :@a, <is:0> ( 1)[Li] 0003 getinstancevariable :@b, <is:1> 0006 opt_newarray_send 2, :min 0009 leave $ ./miniruby --dump=insns -e '[@a, @b].hash' == disasm: #<ISeq:<main>@-e:1 (1,0)-(1,13)> (catch: FALSE) 0000 getinstancevariable :@a, <is:0> ( 1)[Li] 0003 getinstancevariable :@b, <is:1> 0006 opt_newarray_send 2, :hash 0009 leave ``` [Feature #18897] [ruby-core:109147] Co-authored-by: John Hawthorn <jhawthorn@github.com>
* Return NULL to indicate the next shape isn't foundAaron Patterson2023-04-181-0/+3
| | | | | | | | | | | | During compaction we must fix up shapes on objects who were extended but then became embedded. `rb_shape_traverse_from_new_root` is supposed to walk shape trees looking for a matching shape. When a shape has a "single child" we weren't returning NULL when the edge names didn't match. In the case of a single outgoing edge, this patch returns NULL when the child edge name doesn't match (similar to the case when a shape has a hash of outgoing edges)
* MatchData#named_captures: add optional symbolize_names keyword (#6952)Vladimir Dementyev2023-04-194-4/+49
|
* YJIT: Fix raw sample stack lengths in exit traces (#7728)John Hawthorn2023-04-183-7/+6
| | | | | | | | | | yjit-trace-exits appends a synthetic sample for the instruction being exited, but we didn't increment the size of the stack. Fixing this count correctly lets us successfully generate a flamegraph from the exits. I also replaced the line number for instructions with 0, as I don't think the previous value had meaning. Co-authored-by: Adam Hess <HParker@github.com>
* Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0dependabot[bot]2023-04-181-1/+1
| | | | | | | | | | | | | | Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.3.6 to 1.4.0. - [Release notes](https://github.com/dependabot/fetch-metadata/releases) - [Commits](https://github.com/dependabot/fetch-metadata/compare/4de7a6c08ce727a42e0adbbdc345f761a01240ce...efb5c8deb113433243b6b08de1aa879d5aa01cf7) --- updated-dependencies: - dependency-name: dependabot/fetch-metadata dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* Update how to subscribe mailing listsKazuhiro NISHIYAMA2023-04-182-8/+8
| | | | | | - Update mailing lists domain - Use 'join' instead of an alias 'subscribe'. - Command should be in subject instead of body.
* Sort by URL [ci skip]Kazuhiro NISHIYAMA2023-04-181-1/+1
|
* [rubygems/rubygems] Bump rb-sysdependabot[bot]2023-04-172-5/+5
| | | | | | | | | | | | | | | Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.71 to 0.9.72. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.71...v0.9.72) --- updated-dependencies: - dependency-name: rb-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* YJIT: Fixes failure reported by rails for opt+splat+rest (#7727)Jimmy Miller2023-04-172-1/+15
|