summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2016-11-18Merge pull request #3255 from ksss/range-includeYukihiro "Matz" Matsumoto
Fix condition of Range#include?
2016-11-18Fix condition of Range#include?ksss
2016-11-17String#include? does not take integersYukihiro "Matz" Matsumoto
2016-11-17renamed "inline" to "istruct" to represent inline struct; ref #3251Yukihiro "Matz" Matsumoto
2016-11-17inline structures data type for mruby (MRB_TT_INLINE) (fix #3237)Tomasz Dąbrowski
Inline structures have no instance variables, no finalizer, and offer as much space as possible in RBASIC object. This means 24 bytes on 64-bit platforms and 12 bytes on 32-bit platforms. mruby-inline-struct gem is only provided for testing.
2016-11-17Merge pull request #3253 from ksss/rangeYukihiro "Matz" Matsumoto
Ranges should not rewrite
2016-11-17Ranges should not rewriteksss
2016-11-16Correct argument specifications for few methods:Tomasz Dąbrowski
- Struct#values_at - Module#define_method - String#chop - String#chop!
2016-11-16Fixed rindex calling into mrb_equal bugYukihiro "Matz" Matsumoto
Fixed by Alex Snaps and reported by Mathieu Leduc-Hamel, both from shopify.com. Thank you!
2016-11-16Fixed a memory problem in Array#to_hYukihiro "Matz" Matsumoto
Reported from Alex Snaps via Mathieu Leduc-Hamel, both from shopify.com. Thank you!
2016-11-15class/module statement should re-open; fix #3225Yukihiro "Matz" Matsumoto
2016-11-13move mrb_str_dup() to mrb_class_path; ref #2470Yukihiro "Matz" Matsumoto
Class#to_s used to return same string repeatedly, that mean you can modify "class name" by modifying the return value from Class#to_s.
2016-11-12Hash#[] to call Hash#defaultYukihiro "Matz" Matsumoto
2016-11-11Merge pull request #3224 from ksss/define_methodYukihiro "Matz" Matsumoto
Module#define_method supports proc argument
2016-11-10Merge branch 'mrb.class_under_defined'Felix Jones
2016-11-10Renamed class_under_defined to class_defined_underFelix Jones
2016-11-08class variables in higher order have a priority; fix #3235Yukihiro "Matz" Matsumoto
2016-11-07fixed wrong stack adjustment for ensure clauses; fix #3175Yukihiro "Matz" Matsumoto
2016-11-06Added mrb_class_under_definedFelix Jones
2016-11-05associate REnv to the executing block; fix #3214Yukihiro "Matz" Matsumoto
2016-10-28should not unshare() reclaimed env objects; fix #3230Yukihiro "Matz" Matsumoto
2016-10-24macro mrb_bool() may evaluate arg multiple times; ref #3228Yukihiro "Matz" Matsumoto
2016-10-24Merge pull request #3228 from ksss/respond_to_missingYukihiro "Matz" Matsumoto
Kernel#respond_to? should return true|false only
2016-10-23Kernel#respond_to? should return true|false onlyksss
2016-10-20Move to_proc conversion from OP_ENTER to OP_SENDB; fix #3227Yukihiro "Matz" Matsumoto
2016-10-12Module#define_method supports proc argumentksss
2016-09-28Removed trailing spacesNobuyoshi Nakada
2016-09-27mrb_str_strlen() should be MRB_API; ref #3216Yukihiro "Matz" Matsumoto
2016-09-25Remove needless MRB_APIKouhei Sutou
ref #3215 If a function (such as mrb_read_irep_file()) is declared without MRB_API in header file (such as include/mruby/dump.h), implementation of the function in source file (such as src/load.c) should also defined without MRB_API. If MRB_API is mismatch, Visual C++ reports link error with C2375 error code: https://msdn.microsoft.com/en-us/library/5k6kw95a.aspx
2016-09-24Remove unnecessary MRB_API from read_irep related functions; ref #3215Yukihiro "Matz" Matsumoto
2016-09-20Fix return value type of bytecode_decoderKazuaki Tanaka
2016-09-20Bytecode decoder support, MRB_BYTECODE_DECODE_OPTIONKazuaki Tanaka
2016-09-08Fix SEGV when splat objectksss
Splat operation should return an array. And raise an error if result of convert by to_a is not array or nil.
2016-09-06surpress warning when MRB_DISABLE_STDIOyuri
2016-09-05Should clear method nameksss
- Fix method name in top-level - Fix SEGV when call Exception#backtrace if callinfo over CALLINFO_INIT_SIZE(32)
2016-08-20Move Module#include and #prepend to class.c; ref #3197Yukihiro "Matz" Matsumoto
To avoid VM nesting with mrb_funcall()
2016-08-01make mrb_hash_values() a public API functionWilliam Light
2016-07-14Should raise LocalJumpError when no block givenksss
2016-06-29Fix compilation error with GC_PROFILE.Yuji Yamano
2016-06-18fix public_methods(false)Yasuhiro Matsumoto
2016-06-10mrb_gc_unregister() to remove one registration; close #3160Yukihiro "Matz" Matsumoto
when multiple mrb_gc_register() were called for the same object
2016-06-10add temporary workaround for irep memory corruptionYukihiro "Matz" Matsumoto
need to find out real memory bug that appears in full-debug/mrbtest
2016-05-10use mrb_int_mul_overflow()cremno
2016-05-09fix MRUBY_VERSION valuecremno
RUBY_ENGINE_VERSION and MRUBY_VERSION should refer to the same string.
2016-05-09Remove needless assignmentKouhei Sutou
d4ee409ae912dec6eb719a5727da4566f817d9d8 should remove this line.
2016-04-27Use stack directlyKenji Okimoto
See https://github.com/mruby/mruby/pull/3142#issuecomment-201138873
2016-04-11vm.c: mrb_hash_set() may reallocate VM stack; close #3133Yukihiro "Matz" Matsumoto
2016-03-25Add missing regs updateKouhei Sutou
mrb_vm_define_class() may realloc() mrb->c->stack because it calls mrb_funcall() for inherited hook. If mrb->c->stack is realloc()-ed, regs refers orphan address.
2016-03-07change backtrace sep from const char* to charYukihiro "Matz" Matsumoto
2016-03-06Fix segmentation fault by backtrace and GCKouhei Sutou
GitHub: fix #3122 It reverts #3126. #3126 fixes the segmentation fault but generates broken backtrace. This change fixes the segmentation fault and generates correct backtrace. The strategy of this change is "generating backtrace while irep is alive". /tmp/test.rb: def gen e0 = nil begin 1.times { raise 'foobar' } rescue => e e0 = e end e0 end e = gen GC.start gen GC.start puts e.backtrace.join("\n") Run: % bin/mruby /tmp/test.rb /tmp/test.rb:5:in Object.gen /home/kou/work/ruby/mruby.kou/mrblib/numeric.rb:77:in Integral#times /tmp/test.rb:4:in Object.gen /tmp/test.rb:13 FYI: % ruby -v /tmp/test.rb ruby 2.3.0p0 (2015-12-25) [x86_64-linux-gnu] /tmp/test.rb:5:in `block in gen' /tmp/test.rb:4:in `times' /tmp/test.rb:4:in `gen' /tmp/test.rb:13:in `<main>'