summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-01-02[ruby/bigdecimal] Fix test for Ruby 2.4Kenta Murata
Ruby 2.4 does not have RbConfig::LIMITS. https://github.com/ruby/bigdecimal/commit/c8087523b0
2021-01-02[ruby/bigdecimal] Implement special conversions for 64-bit integersKenta Murata
This change improves the conversion speed from small integers. ``` Comparison: big_n9 master: 4003688.9 i/s bigdecimal 3.0.0: 1270551.0 i/s - 3.15x slower big_n19 master: 5410096.4 i/s bigdecimal 3.0.0: 1000250.3 i/s - 5.41x slower ``` https://github.com/ruby/bigdecimal/commit/3429bd7e6f
2021-01-02* 2021-01-02 [ci skip]git
2021-01-02[ruby/bigdecimal] Fix test_limitKenta Murata
Keep the default value of BigDecimal.limit by BigDecimal.save_limit to avoid failures of the other test methods due to the unexpected limit. https://github.com/ruby/bigdecimal/commit/bdc1cc6585
2021-01-01Hoisted out compile_builtin_arg to refine messagesNobuyoshi Nakada
2021-01-01Added AST assertions for method definition arguments [Bug #17495]Nobuyoshi Nakada
2021-01-01Added AST tests for endless method definitionsNobuyoshi Nakada
2021-01-01Make args info for RubyVM::AST to available on endless method without parensMasataka Pocke Kuwabara
Problem === Arguments information is missing for endless method without parens. For example: ```ruby # ok pp RubyVM::AbstractSyntaxTree.parse(<<~RUBY).children[2] def x() = 42 RUBY # => (DEFN@1:0-1:12 # mid: :x # body: # (SCOPE@1:0-1:12 # tbl: [] # args: # (ARGS@1:5-1:6 # pre_num: 0 # pre_init: nil # opt: nil # first_post: nil # post_num: 0 # post_init: nil # rest: nil # kw: nil # kwrest: nil # block: nil) # body: (LIT@1:10-1:12 42))) # ok pp RubyVM::AbstractSyntaxTree.parse(<<~RUBY).children[2] def x() 42 end RUBY # => (DEFN@1:0-1:14 # mid: :x # body: # (SCOPE@1:0-1:14 # tbl: [] # args: # (ARGS@1:5-1:6 # pre_num: 0 # pre_init: nil # opt: nil # first_post: nil # post_num: 0 # post_init: nil # rest: nil # kw: nil # kwrest: nil # block: nil) # body: (LIT@1:8-1:10 42))) # It has a problem, the `args` is nil pp RubyVM::AbstractSyntaxTree.parse(<<~RUBY).children[2] def x = 42 RUBY # => (DEFN@1:0-1:10 # mid: :x # body: (SCOPE@1:0-1:10 tbl: [] args: nil body: (LIT@1:8-1:10 42))) ``` It causes an error if a program expects `args` node exists. For example: https://github.com/ruby/rbs/issues/551 Solution ==== Call `new_args` on this case. Notes: Merged: https://github.com/ruby/ruby/pull/4016 Merged-By: nobu <nobu@ruby-lang.org>
2021-01-01Remove unused fileDavid Rodríguez
Notes: Merged: https://github.com/ruby/ruby/pull/4017
2021-01-01* 2021-01-01 [ci skip]git
2021-01-01Method ID of call and fcall can be const not only identNobuyoshi Nakada
2020-12-31get_tmopt is no longer usedNobuyoshi Nakada
2020-12-31Moved Time.at to builtinNobuyoshi Nakada
2020-12-31Moved Time.now to builtinNobuyoshi Nakada
2020-12-31Moved time.rb to timev.rbNobuyoshi Nakada
2020-12-31Add time.rb as builtinNobuyoshi Nakada
2020-12-31Access to reserved word parameter like as `__builtin.arg!(:if)`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4015
2020-12-31Fixed missing NORETURN on rb_mod_const_missingNobuyoshi Nakada
2020-12-31Defined RBIMPL_ATTR_DEPRECATED_INTERNALNobuyoshi Nakada
Get rid of duplicate attributes, which may be warned or ignored except for the first.
2020-12-31Make any hash values fixable [Bug #17488]Nobuyoshi Nakada
As hnum is an unsigned st_index_t, the result of RSHIFT may not be in the fixable range. Co-authored-by: NeoCat <neocat@neocat.jp>
2020-12-31* 2020-12-31 [ci skip]git
2020-12-31[ruby/bigdecimal] Refactor object allocationKenta Murata
https://github.com/ruby/bigdecimal/commit/271cebe567
2020-12-31[ruby/bigdecimal] Remove ToValueKenta Murata
https://github.com/ruby/bigdecimal/commit/97e9feeebd
2020-12-30Replaced deprecation macrosNobuyoshi Nakada
* DECLARE_DEPRECATED_FEATURE with RBIMPL_ATTR_DEPRECATED_SINCE * DECLARE_DEPRECATED_INTERNAL_FEATURE with RBIMPL_ATTR_INTERNAL And moved function declarations outside both.
2020-12-29Stop managing valid class serialsTakashi Kokubun
`mjit_valid_class_serial_p` has no longer been used since b9007b6c548.
2020-12-30Minor grammar fix in String#chomp documentationEric Schneider
Notes: Merged: https://github.com/ruby/ruby/pull/4013
2020-12-29Try increasing SMTP's read_timeout for --jit-waitTakashi Kokubun
for random hangs like: http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3302796 http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3302188 http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3301293
2020-12-29Increase timeout for reline with --jit-waitTakashi Kokubun
for failures like: http://ci.rvm.jp/logfiles/brlog.trunk-mjit-wait.20201229-130509 http://ci.rvm.jp/logfiles/brlog.trunk-mjit-wait.20201229-165132 http://ci.rvm.jp/logfiles/brlog.trunk-mjit-wait.20201228-015519
2020-12-30* 2020-12-30 [ci skip]git
2020-12-30[ruby/bigdecimal] Remove VP_EXCEPTION_MEMORYKenta Murata
It is no longer used due to the previous commit. https://github.com/ruby/bigdecimal/commit/7d463f802b
2020-12-30[ruby/bigdecimal] Remove needless pointer checksKenta Murata
xmalloc and xrealloc return non-NULL pointers or raise memory error. https://github.com/ruby/bigdecimal/commit/507f0a6a64
2020-12-29bisect.sh: Apply bisect.patch if exists [ci skip]Nobuyoshi Nakada
For some external reasons, e.g. Bison 3.5.91, some commits need to be applied retroactively in order to pass builds.
2020-12-29Canonicalization functions were removed alreadyNobuyoshi Nakada
At b958e2add835d62c0a62edaf9a23ecbbd70a3635
2020-12-29Fixed wrong configure optionNobuyoshi Nakada
2020-12-29[ruby/bigdecimal] Define bool, true, and false for old RubyKenta Murata
https://github.com/ruby/bigdecimal/commit/a6d3bd2d44
2020-12-29[ruby/bigdecimal] Alloc wrapper object before VpAllocKenta Murata
Calling TypedData_Wrap_Struct after VpAlloc may cause memory leak. This commit reverts d11b78f9c420f39ee800b9feed4839cd28f4ff5c. https://github.com/ruby/bigdecimal/commit/2c5a288caf
2020-12-29[ruby/bigdecimal] Refactor to extract VpCheckExceptionKenta Murata
https://github.com/ruby/bigdecimal/commit/6fd171308b
2020-12-29Make more silent when -s on GNU makeNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4011
2020-12-29transcode-tblgen.rb: make silent a little when just -vNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4011
2020-12-29transcode-tblgen.rb: send verbose messages to STDOUTNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4011
2020-12-28[ruby/irb] Remove unnecessary ignore_error in dispatch_seqTakashi Kokubun
Just forgotten in https://github.com/ruby/irb/commit/a5804c3560bb1de3ea8e40002635bff87f6a2825 https://github.com/ruby/irb/commit/e42e548793
2020-12-28[ruby/irb] Do not colorize partially-correct inspectTakashi Kokubun
This is to prevent a yellow-mixed output for ActiveSupport::TimeWithZone. Follows up https://github.com/ruby/irb/pull/159 and https://github.com/ruby/ruby/pull/3967. https://github.com/ruby/irb/commit/a5804c3560bb1de3ea8e40002635bff87f6a2825
2020-12-28irb: add more syntax errors colorizing support (#3967)Nobuhiro IMAI
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2020-12-28Update help of sync-default-gemsTakashi Kokubun
2020-12-28[ruby/irb] Fix failing testsTakashi Kokubun
https://github.com/ruby/irb/commit/7723ade899
2020-12-28[ruby/irb] Add color_printer.rb to gemspecTakashi Kokubun
https://github.com/ruby/irb/commit/b4df0fd8b2
2020-12-28[ruby/irb] Enhance colored inspect outputTakashi Kokubun
https://github.com/ruby/irb/commit/dffcdb5269
2020-12-29Fix compile error of sockssocketMasaki Matsushita
The patch is provided by PhobosK (Phobos Kappa). This should be backported to Ruby 3.0. [Feature #17187]
2020-12-29* 2020-12-29 [ci skip]git
2020-12-29[ruby/bigdecimal] Refactor to decompose VpNewVarArg into small functionsKenta Murata
https://github.com/ruby/bigdecimal/commit/7504871c48