summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-11-09Fix builtin scirpt pathsNobuyoshi Nakada
Do not search builtin scripts by using VPATH, to get rid of weird nmake VPATH. Notes: Merged: https://github.com/ruby/ruby/pull/2665
2019-11-09Fix typosKazuki Tsujimoto
2019-11-09Revert "Promote uri to default gems"Hiroshi SHIBATA
This reverts commit c5b4d2a2592942766dc2789f46105b91eba7026a. This commit affects with activation feature of RubyGems. [Bug #16337][ruby-core:95768]
2019-11-09Updated miniprelude.o dependencyNobuyoshi Nakada
2019-11-09Full-path of builtin scripts no longer neededNobuyoshi Nakada
2019-11-09Embed builtin ruby scripts in miniprelude.cNobuyoshi Nakada
Instead of reading from the files by the full-path at runtime. As rbinc files need to be included in distributed tarballs, the full-paths at the packaging are unavailable at compilation times.
2019-11-09Fixed commit missNobuyoshi Nakada
2019-11-09Fixed `#line` directives in miniprelude.cNobuyoshi Nakada
2019-11-09Add debug printKazuhiro NISHIYAMA
2019-11-09use STACK_ADDR_FROM_TOP()Koichi Sasada
vm_invoke_builtin() accesses VM stack via cfp->sp. However, MJIT can use their own stack. To access them appropriately, we need to use STACK_ADDR_FROM_TOP().
2019-11-09Add debug printKazuhiro NISHIYAMA
http://ci.rvm.jp/results/trunk-mjit@silicon-docker/2380788 ``` test_all #<Thread:0x000055b6c8e9fca8@/tmp/ruby/v2/src/trunk-mjit/tool/lib/test/unit/parallel.rb:42 run> terminated with exception (report_on_exception is true): <internal:pack>:134:in `pack': no implicit conversion of false into String (TypeError) from /tmp/ruby/v2/src/trunk-mjit/tool/lib/test/unit/parallel.rb:160:in `_report' from /tmp/ruby/v2/src/trunk-mjit/tool/lib/test/unit/parallel.rb:45:in `block in _run_suite' ```
2019-11-09Remove YAML::VERSION because it conflicts with Psych::VERSIONHiroshi SHIBATA
2019-11-09initialize kw special local var.Koichi Sasada
A method which has keyword parameters has an implicit local variable to specify which keywords are (un)specified. vm_call_iseq_setup_kwparm_nokwarg() is special function to invoke a ISeq method without any keyword arguments. However, it should also initialize the special local var. Without this initialization, the implicit lvar can points a freed (T_NONE) object.
2019-11-09Promote uri to default gemsHiroshi SHIBATA
2019-11-09Promote yaml to default gemsHiroshi SHIBATA
2019-11-09Promote timeout to default gemsHiroshi SHIBATA
2019-11-09Fixup 368ee984ed52f6abe1fdf8360ad72e6cf1cbfa66Hiroshi SHIBATA
2019-11-09Promote observer to default gems. But not yet releasedHiroshi SHIBATA
2019-11-09Promote readline to default gems named readline-extHiroshi SHIBATA
2019-11-09Added gemspec for readline gem that is wrapper library for reline and ↵Hiroshi SHIBATA
readline extension
2019-11-09Revert "don't embed full-path."Koichi Sasada
This reverts commit dfac2e9eb3d697e56d91151584f1d3cf9d2c79c9. It does not work if cwd is different from builddir...
2019-11-09don't embed full-path.Koichi Sasada
miniruby load *.rb from srcdir. To specify file path, tool/mk_builtin_loader.rb embed full path of each *.rb file. However it prevent to pre-generation of required files for tarball. This patch generate srcdir/*.rb from __FILE__ information.
2019-11-08Fix passing actual object_id to finalizerJohn Hawthorn
Previously we were passing the memory_id. This was broken previously if compaction was run (which changes the memory_id) and now that object_id is a monotonically increasing number it was always broken. This commit fixes this by defering removal from the object_id table until finalizers have run (for objects with finalizers) and also copying the SEEN_OBJ_ID flag onto the zombie objects. Notes: Merged: https://github.com/ruby/ruby/pull/2658
2019-11-09Try to fix test-spec failure on macOSYusuke Endoh
Not sure what is happening, but spec/ruby/security/cve_2018_6914_spec.rb fails on macOS. https://github.com/ruby/ruby/runs/294462511#step:10:134 I suspect that the state of a directory is weird immediately after it is created (not writable or even world writable?). This change tries to make sure that ENV["TMPDIR"] is actually used by Dir.tmpdir.
2019-11-09Prettify builtin_binary formatNobuyoshi Nakada
2019-11-09* 2019-11-09 [ci skip]git
2019-11-09Fixed the dependencyNobuyoshi Nakada
2019-11-08Added pack.rb to BUILTIN_RB_SRCSNobuyoshi Nakada
2019-11-08Rubified the APIs of pack.cYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/2659
2019-11-08tool/mk_builtin_loader.rb: check if op is an array or notYusuke Endoh
The insn array includes not only an array but also some literal objects.
2019-11-08Make prefix staticNobuyoshi Nakada
2019-11-08Update builtin include filesNobuyoshi Nakada
2019-11-08Add VPATH to rbinc rule for nmakeNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/2660
2019-11-08delete cc->aux.inc_sp卜部昌平
Nobody uses it.
2019-11-08Add file mode to generated files [ci skip]Nobuyoshi Nakada
2019-11-08builtin.h must be included *AFTER* vm_core.hNobuyoshi Nakada
2019-11-08Renamed `load_*.inc` as `*.rbinc` to utilize a suffix ruleNobuyoshi Nakada
2019-11-08Suppress "shadowing outer local variable" warning in 2.5aycabta
2019-11-08cstr -> bytesKoichi Sasada
rb_iseq_ibf_load_cstr() accepts bytes, but not NUL-terminate C string. To make it clear, rename it to _bytes.
2019-11-08fix line break code (fix to LF)Koichi Sasada
2019-11-08forget to add gc.rbKoichi Sasada
2019-11-08use builtins for GC.Koichi Sasada
Define a part of GC in gc.rb.
2019-11-08Stop compiling if type mismatch was found.Koichi Sasada
If there is a type mismatch between expected builtin function type and actual function type, C compiler shows warning. For example, `__builtin_func(1, 2)` expects `func(rb_ec_t*, VALUE self, VALUE p1, VALUE p2)` function definition. However, it is easy to overlook "warning" messages. So this patch changes to stop compiling as an error if there is a mismatch.
2019-11-08builtin.h must be included *AFTER* vm_core.hNobuyoshi Nakada
2019-11-08Removed BOM [ci skip]Nobuyoshi Nakada
2019-11-08Fix typoKazuki Tsujimoto
2019-11-08name the result of calccall卜部昌平
This is a pure refactoring for better understanding of what is happening here. Should change nothing but readability.
2019-11-08Define Struct#deconstruct_keysKazuki Tsujimoto
2019-11-08revival of __func__卜部昌平
dad2abc69fdd1af52df353b8604017bd6a5c6a99 deleted __func__ but ruby already use this feature under RUBY_FUNCTION_NAME_STRING macro. Use it.
2019-11-08describe vm_cache_check_for_class_serial [ci skip]卜部昌平
Added comments describing what it is. Requested by ko1.