Commit Graph

2606 Commits

Author SHA1 Message Date
Masaki Muranaka 632875a618 Lazy variable declarations. They are for speed tune. 2013-03-18 23:29:11 +09:00
Masaki Muranaka f3db337814 Clean some redundant code up. 2013-03-18 23:29:11 +09:00
Masaki Muranaka d7c6ebfc91 Make topenv() inlined. 2013-03-18 23:29:11 +09:00
Masaki Muranaka 1272d5fe0c Extract uvget/uvset to OP_GETUPVAR/OP_SETUPVAR. This is for speed tuning. 2013-03-18 23:29:11 +09:00
Masaki Muranaka 4a17b3d908 Make some tiny functions inlined. This is for supeed tuning. 2013-03-18 23:29:11 +09:00
Masaki Muranaka 37263e50e5 Remove mrb_checkstack() as unused. 2013-03-18 23:29:11 +09:00
Masaki Muranaka b8982c442f Optimize OP_SUBI. 2013-03-18 23:29:11 +09:00
Masaki Muranaka 7a78ecb14c Optimize OP_ADD instruction. 2013-03-18 23:29:11 +09:00
Yukihiro Matz Matsumoto 5217d88963 remove unused local variable beg in parser_yylex 2013-03-18 22:59:13 +09:00
Yukihiro "Matz" Matsumoto 138a3569a2 Merge pull request #1025 from FUKUZAWA-Tadashi/master
implement %W %w %s
2013-03-18 06:56:26 -07:00
Yukihiro Matz Matsumoto a4c30b93ac personal style preference on function call in flo_to_s 2013-03-18 22:54:26 +09:00
Yukihiro "Matz" Matsumoto 215069d0d8 Merge pull request #1020 from monaka/pr-add-numeric-format-function
Add numeric format function
2013-03-18 06:52:13 -07:00
Yukihiro "Matz" Matsumoto 816021043e Merge pull request #1029 from crimsonwoods/fix_the_type_of_aspec
fix the type of argument named 'aspec'.
2013-03-18 00:49:26 -07:00
crimsonwoods 52eba9fee7 fix the type of argument named 'aspec'.
'aspec' should be large at least 24 bit.
2013-03-18 16:04:10 +09:00
Yukihiro Matz Matsumoto 17bc0a1ae4 Merge branch 'master' of github.com:mruby/mruby 2013-03-18 07:57:21 +09:00
Yukihiro Matz Matsumoto 13cd0363f0 applying C++ patch from @monaka to support C++ bool type; close #1019 2013-03-18 07:57:07 +09:00
Yukihiro "Matz" Matsumoto 59fbb16d4b Merge pull request #1023 from monaka/pr-remove-memmove-from-vm.c
Remove memmove() in src/vm.c.
2013-03-17 15:52:28 -07:00
Yukihiro "Matz" Matsumoto b58ac0579e Merge pull request #1026 from crimsonwoods/fix_bitfield_type
fix the type of bit field variable.
2013-03-17 15:50:53 -07:00
Yukihiro "Matz" Matsumoto e4b4e8679f Merge pull request #1027 from masuidrive/remove_unused_if
Removed unused expr
2013-03-17 15:49:17 -07:00
Yukihiro "Matz" Matsumoto 492c008b5b Merge pull request #1021 from monaka/pr-fix-warning-20130316
Fix a warning happens on MRB_INT64 enabled.
2013-03-17 15:47:43 -07:00
Yuichiro MASUI eff538c250 Removed unused expr 2013-03-18 01:12:52 +09:00
crimsonwoods 3678d2545c fix the type of bit field variable.
if 'int' type is 16bit integer, 'unsigned int flags: 21' is too large.
2013-03-18 00:16:13 +09:00
FUKUZAWA-Tadashi 76c24894a7 bugfix about escaping '\n' 2013-03-17 21:27:38 +09:00
FUKUZAWA-Tadashi 41698100ad remove disused check code 2013-03-17 21:27:38 +09:00
FUKUZAWA-Tadashi aec3e1c4ff refactor heredoc identifier 2013-03-17 21:27:38 +09:00
FUKUZAWA-Tadashi 49413a312f Could you add me to AUTHORS? 2013-03-17 21:27:38 +09:00
FUKUZAWA-Tadashi 44fbfc5184 implement literal %W %w %s
refactor string parsing
2013-03-17 21:27:37 +09:00
Yukihiro "Matz" Matsumoto 7872bee700 Merge pull request #1024 from crimsonwoods/remove_bitshifted_constants_larger_than_16bit
remove bit-shift operation.
2013-03-17 05:15:40 -07:00
Kurebayashi, Takahiro 83ddef6880 remove bit-shift operation. 2013-03-17 17:44:18 +09:00
Masaki Muranaka ca3fd5d0d4 Remove memmove(). Use value_move() instead.
value_move() is type-safer than memmove().

And may be faster on some targets.
(If it makes slow on your target,
rewrite to call memset(s1, s2, sizeof(mrb_value)*n)
in value_move().)
2013-03-17 17:25:44 +09:00
Masaki Muranaka 11ed7a6128 Fix a warning happens on MRB_INT64 enabled. 2013-03-17 03:24:19 +09:00
Masaki Muranaka 9be437c6d5 Add a new function mrb_flo_to_str(). Use it instead of sprintf() as possible. 2013-03-17 02:31:40 +09:00
Masaki Muranaka fd69e271bb Add float.h. It exists even if the environment was freestanding. It has been supported since C89. 2013-03-17 02:31:40 +09:00
Yukihiro "Matz" Matsumoto 526f4bf640 Merge pull request #1018 from bovi/arduino-due
Compile Support for Arduino Due
2013-03-16 08:30:00 -07:00
Yukihiro Matz Matsumoto 8ae0c58bb0 resolve conflict from #1017 2013-03-17 00:28:49 +09:00
Yukihiro Matz Matsumoto 3f85079cc0 refine abf1b18 to remove nested if 2013-03-17 00:22:36 +09:00
Yukihiro "Matz" Matsumoto 5f2e9e45df Merge pull request #1016 from monaka/pr-reduce-string.h-20130316
Reduce string.h.
2013-03-16 08:20:36 -07:00
Yukihiro "Matz" Matsumoto d2c5dff657 Merge pull request #1015 from monaka/pr-khash-cleanup-20130316
khash cleanup.
2013-03-16 08:19:02 -07:00
Daniel Bovensiepen 4e1c54ea7c Add Build Example for Arduino Due 2013-03-16 14:06:50 +00:00
Masaki Muranaka 4ad08caca0 Remove stdio.h as it is included in mrbconf.h. 2013-03-16 21:39:52 +09:00
Masaki Muranaka 3aa3b4af90 Remove stdlib.h from mruby.h. It is for portability (care for freestanding environments).
This is a first step. It will be reduced stdlib.h in each files later.
2013-03-16 21:29:39 +09:00
Masaki Muranaka 6ba298ed54 Remove unnecessory stdint.h. 2013-03-16 21:06:32 +09:00
Masaki Muranaka 715270bec5 Include mruby.h. As KHASH_DEFAULT_SIZE might be defined in mrbconf.h. 2013-03-16 21:06:03 +09:00
Masaki Muranaka a11e7f3c30 Remove unused string.h. 2013-03-16 18:08:18 +09:00
Masaki Muranaka abf1b188e3 Remove strncmp(). It enables to process various options. 2013-03-16 18:07:33 +09:00
Masaki Muranaka 7de2deab1e Remove string.h in khash.h 2013-03-16 17:48:30 +09:00
Masaki Muranaka 1bb447a7d3 Avoid to call memset(). Use the new function kh_fill_flags() instead. This is for compatibility. 2013-03-16 17:00:44 +09:00
Masaki Muranaka 591dbbf13f Change the place of the close parenthesis. Even though it probably cause no bugs for current code. 2013-03-16 16:58:14 +09:00
Yukihiro "Matz" Matsumoto 2e937a5bba Merge pull request #1014 from takkaw/display_bo_info_in_mirb
display BasicObject information in mirb
2013-03-15 19:38:26 -07:00
Yukihiro "Matz" Matsumoto 26926a1d52 Merge pull request #1013 from takkaw/fix_bo_missing
fix segmentation fault in BasicObject#inspect
2013-03-15 09:12:05 -07:00