Masaki Muranaka
|
0c11a1ca2f
|
Fix some confusions between mrb_object() and mrb_basic().
|
2013-03-15 17:43:02 +09:00 |
|
Masaki Muranaka
|
68468dabfa
|
Extract stack zero filling to stack_clear(). Porting evelopers can optimize by replacing to memset() on their own risk.
|
2013-03-13 18:26:59 +09:00 |
|
Masaki Muranaka
|
e70f9b351d
|
Simplify. Temporary variable "i" is removed.
|
2013-03-13 18:24:20 +09:00 |
|
Yukihiro Matz Matsumoto
|
cdd41a33de
|
unify mrb_ary_new{,_elts,_from_values}; mrb_ary_from_values() is a winner
|
2013-03-08 05:18:33 +09:00 |
|
kano4
|
fbbe6309fc
|
Replace tabs with spaces
|
2013-03-05 23:06:44 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
5a153851c3
|
Merge pull request #947 from monaka/pr-cleanup-stdio-calls-20130304
Cleanup stdio related.
|
2013-03-04 15:49:08 -08:00 |
|
Yukihiro Matz Matsumoto
|
21847865b1
|
use mrb_str_buf_new to create a buffer to be used by mrb_str_buf_cat
|
2013-03-05 01:45:13 +09:00 |
|
Masaki Muranaka
|
5a025813b5
|
Include stdio.h in mrbconf.h instead of C extension sources.
|
2013-03-05 01:38:51 +09:00 |
|
Masaki Muranaka
|
15ac0e03c2
|
Reduce a snprintf() call in localjump_error().
|
2013-03-03 18:39:52 +09:00 |
|
skandhas
|
40268d2284
|
format some source code (vm.c)
|
2013-03-01 15:57:35 +08:00 |
|
Cremno
|
5de62ac23d
|
mrb_funcall_with_block: adj. ci & sp after error
see #894 / [ruby-talk:404969]
|
2013-02-26 10:04:29 +01:00 |
|
Yukihiro Matz Matsumoto
|
eb14c15e99
|
rename hook and macro
|
2013-02-18 16:15:32 +09:00 |
|
Yuichiro MASUI
|
bc44d06c73
|
Created hook at VM code fetch. It's for debugger
|
2013-02-17 00:13:42 +09:00 |
|
Yukihiro Matz Matsumoto
|
75ae568236
|
should adjust stack size when irep->nregs is larger than allocate size; close #835
|
2013-02-10 23:54:57 +09:00 |
|
Carson McDonald
|
92eb282b7a
|
Don't overwrite ciidx if it is already set.
|
2013-02-08 06:57:15 -05:00 |
|
Masamitsu MURASE
|
8ce1ea8437
|
Protect irep of ensure.
|
2013-01-30 20:46:37 +09:00 |
|
Carson McDonald
|
8f83f6674c
|
Fixes a number of "comparison between signed and unsigned" warnings.
|
2013-01-27 09:44:47 -05:00 |
|
Masamitsu MURASE
|
0dd9a0fd6a
|
Modify handling of OP_ENTER.
If `argc` is `-1`, `block` parameter is sometimes overwritten.
|
2013-01-19 23:16:03 +09:00 |
|
Masaki Muranaka
|
0f99322f27
|
gc.c: Enable DEBUG(x) if GC_DEBUG is defined.
vm.c: Enable DEBUG(x) if VM_DEBUG is defined.
|
2013-01-07 15:28:05 +09:00 |
|
Yukihiro Matz Matsumoto
|
6a16cad1bf
|
should save ciidx in exception raised from VM
|
2012-12-21 23:55:17 +09:00 |
|
Yukihiro Matz Matsumoto
|
40ea525d1e
|
should raise error on return in block in top-level; close #664
|
2012-12-21 23:52:40 +09:00 |
|
Yukihiro Matz Matsumoto
|
9de76a71e1
|
should not ignore exception on top-level; close #635
|
2012-12-17 17:53:33 +09:00 |
|
skandhas
|
6dede4edf9
|
fix incorrect integer-overflow checkups in OP_SUB/OP_SUBI case.
|
2012-12-13 14:42:07 +08:00 |
|
Yukihiro "Matz" Matsumoto
|
f2d3c4d2f7
|
Merge pull request #623 from liancheng/master
Call mrb_gc_arena_save/mrb_gc_arena_restore when proper
|
2012-12-12 06:11:04 -08:00 |
|
Lian Cheng
|
2fa0be2a30
|
Call mrb_gc_arena_save/mrb_gc_arena_restore instead of manipulating arena index directly
|
2012-12-12 21:05:02 +08:00 |
|
Yukihiro Matz Matsumoto
|
fd12f87712
|
save lastpc on exception and use it in mruby stack trace
|
2012-12-12 18:23:20 +09:00 |
|
Yukihiro Matz Matsumoto
|
1b716b93c6
|
add comment to clarify nregs=2 in cipush; close #610
|
2012-12-10 16:53:54 +09:00 |
|
Jan Berdajs
|
036b78dfba
|
refactor OP_RETURN switch to remove a redundant label and avoid goto
|
2012-12-10 07:03:49 +01:00 |
|
Beoran
|
039679f1af
|
Keep stack depth and allocation better under control and fix crash on infinite recursion.
|
2012-11-22 11:02:17 +01:00 |
|
Yukihiro Matz Matsumoto
|
76f0e755e9
|
handle return from blocks, especially from lambda blocks; close #561
|
2012-11-21 17:00:06 +09:00 |
|
Yukihiro Matz Matsumoto
|
470bb14dc8
|
should look for outermost scope to return; close #547
|
2012-11-16 11:51:51 +09:00 |
|
Yukihiro Matz Matsumoto
|
d2d2e9f5f9
|
add new predicates mrb_string_p(),mrb_array_p(),mrb_hash_p()
|
2012-11-04 05:02:39 +09:00 |
|
Yukihiro Matsumoto
|
9b85ffa5a7
|
OP_ADDI/OP_SUBI should handle integer overflow; close #518
|
2012-11-01 05:54:53 +09:00 |
|
Masaki Muranaka
|
1933e2660c
|
Use substitution instead of memset in structure initialization.
|
2012-10-25 15:47:45 +09:00 |
|
Masaki Muranaka
|
6069a33089
|
mrb_raisef(): new function. Same as previou version of mrb_raise().
mrb_raise(): API modified. It cannot treat variable arguments.
|
2012-10-23 09:42:22 +09:00 |
|
Masaki Muranaka
|
d5c4439013
|
Avoid memcpy() on copying structures.
|
2012-10-21 00:49:39 +09:00 |
|
Yukihiro Matsumoto
|
89a18e4f22
|
unexpect break/next/redo/retry should raise LocalJumpError
|
2012-10-20 03:59:13 +09:00 |
|
Yukihiro Matsumoto
|
da637cac4a
|
should handle break in rescue
|
2012-10-20 03:30:58 +09:00 |
|
Yukihiro Matsumoto
|
400a9d8101
|
shuld handle return in rescue; close #497
|
2012-10-19 23:18:57 +09:00 |
|
Yukihiro Matsumoto
|
3a6b6518d6
|
should handle exception from Ruby implemented method called from funcall; close #484
|
2012-10-04 11:30:28 +09:00 |
|
Yukihiro Matsumoto
|
a3d7960a44
|
wrong termination of mrb_run on exception; close #480
|
2012-09-30 08:42:10 +09:00 |
|
Yukihiro Matsumoto
|
84008f99d5
|
should adjust pc after OP_CALL
|
2012-09-21 15:10:38 +09:00 |
|
Yukihiro Matsumoto
|
44b28a83f8
|
OP_CALL for cfunc must restore callinfo; close #476
|
2012-09-20 18:26:51 +09:00 |
|
Yukihiro Matsumoto
|
e49224284d
|
OP_EQ should try direct compararison first
|
2012-09-10 22:09:24 +09:00 |
|
Yukihiro Matsumoto
|
b0f3c28caa
|
simplify array generation from mrb_run
|
2012-09-10 20:36:03 +09:00 |
|
Yukihiro Matsumoto
|
d416a5c3fe
|
should have preserved original method name
|
2012-09-10 11:01:36 +09:00 |
|
Yukihiro Matsumoto
|
51686a006a
|
inlining some mrb_value assignments
|
2012-09-10 03:23:23 +09:00 |
|
Yukihiro Matsumoto
|
9e7ca5d944
|
mrb might be intialized incompletely from mrbc; close #457
|
2012-09-09 13:14:32 +09:00 |
|
Yukihiro Matsumoto
|
3c95aff5ac
|
some cosmetic change on OP_SENDB
|
2012-09-06 22:46:56 +09:00 |
|
Yukihiro Matsumoto
|
e01c5a2b5b
|
add CASE(OP_SENDB) for non direct_threaded; close #455
|
2012-09-06 22:45:42 +09:00 |
|