Yukihiro Matsumoto
950204bc4d
remove flags from irep
2012-08-29 11:45:36 +09:00
Masamitsu MURASE
42fa994e9b
Publish mrb_hash_delete_key.
2012-08-26 04:17:56 +09:00
Yukihiro Matsumoto
15725eb4f6
file/line info passed to codegen; argument type of mrb_generate_code() has changed
2012-08-22 22:36:44 +09:00
Yukihiro Matsumoto
dec6751d7a
remove BEGIN/END from syntax
2012-08-18 20:51:58 +09:00
Yukihiro Matsumoto
97b7eb6096
rename MRUBY_OBJECT_HEADER to MRB_OBJECT_HEADER
2012-08-18 19:05:18 +09:00
Yukihiro Matsumoto
41e7d0b475
use bit field mrb_vtype in MRUBY_OBJECT_HEADER
2012-08-18 19:02:50 +09:00
Constellation
fe9939f74e
canonicalize NaN value in NaN boxing environment
2012-08-15 21:02:46 +09:00
Yukihiro Matsumoto
7d02df3016
NaN boxing
2012-08-14 13:16:34 +09:00
Yukihiro Matsumoto
e74600c919
move mrb_value def to mruby/value.h
2012-08-14 03:09:04 +09:00
Yukihiro Matsumoto
c9fe903fe1
now segmented list can be used as instance variable tables by -DMRB_USE_IV_SEGLIST; we still need to measure the performance and memory consumption
2012-08-12 01:59:18 +09:00
Yukihiro Matsumoto
730f53045e
define_method to copy block body
2012-08-03 20:17:04 +09:00
Yukihiro Matsumoto
515862cc01
khash refactoring; no more MRB_KHASH_INITIAL_SIZE
2012-07-30 23:55:35 +09:00
Yukihiro Matsumoto
e75c76ecee
iv khash initial size to 8
2012-07-30 17:16:05 +09:00
Yukihiro Matsumoto
c808f647aa
allow specifying khash initial size
2012-07-30 16:41:05 +09:00
Masaki Muranaka
b1cc715b36
MRB_INITIAL_HASH_SIZE : Make the initial hash size configurable.
2012-07-30 15:31:49 +09:00
Yukihiro "Matz" Matsumoto
e56cd70cdb
Merge pull request #405 from monaka/pr-remove-unimplemented-declaration
...
Remove unimplemented declarations.
2012-07-29 04:48:12 -07:00
Masaki Muranaka
7ac4b56141
Remove unimplemented declarations.
2012-07-29 20:35:23 +09:00
Masaki Muranaka
22b032fcdf
mrb_hash_delete_key(), mrb_hash_keys() : Declare as static.
...
mrb_check_hash_type(): Remove as no implementation.
2012-07-29 20:11:43 +09:00
Yukihiro "Matz" Matsumoto
afb983e26f
Merge pull request #367 from junjis0203/rename_load_string_argument_name
...
Rename confusable argument name
2012-07-13 21:54:44 -07:00
Junji Sawada
7bbac9cfdf
Rename confusable argument name
2012-07-14 12:15:15 +09:00
Junji Sawada
96366117ea
Remove unnecessary header inclusion
2012-07-14 11:39:25 +09:00
Yukihiro Matsumoto
8e1c842b7e
simpify mruby/mrbc using context
2012-07-13 15:36:43 +09:00
Yukihiro Matsumoto
9e64e753a2
remove double stdio.h inclusion
2012-07-12 23:59:13 +09:00
Yukihiro Matsumoto
fc27f71289
add new function mrb_parser_free()
2012-07-03 21:52:11 +09:00
Yukihiro Matsumoto
137570acf0
capture_errors can be specified by mrbc_context
2012-07-03 21:32:37 +09:00
Yukihiro Matsumoto
39689441e7
add context arg to mrb_parser_parse()
2012-07-03 21:13:10 +09:00
Yukihiro Matsumoto
65096c4c1b
add context to parser, that would hold local variable info, filename, and line number. mrbc_context argument has been added to mrb_parse_xxx() functions. Normally, you just to need to add NULL (or 0) to the last argument of the above functions.
2012-07-03 20:59:07 +09:00
Yukihiro Matsumoto
ce49d90dc8
modify compiler API; replace mrb_compie_xxx with mrb_load_xxx() that combines compilatoin and execution
2012-07-03 15:26:11 +09:00
Yukihiro Matsumoto
97b1c57600
constify parser input strings
2012-07-03 14:28:19 +09:00
Yukihiro Matsumoto
3be4e91376
remove size_t from parser
2012-07-03 14:27:34 +09:00
Masamitsu MURASE
2a2ffe7f7d
Modify Kernel#clone and Kernel#dup.
...
Kernel#clone, Kernel#dup:
- 'iv' should not be shared with the original object,
but it should be copied.
Kernel#clone:
- 'mt' of singleton_class should be copied.
2012-06-24 16:39:08 +09:00
Yukihiro Matsumoto
1fa63930fd
check object type before retrieving instance variabls; close #311
2012-06-23 10:40:17 +09:00
Yukihiro Matsumoto
766ae4ee5f
dislose mrb_hash_keys; close #304
2012-06-21 16:27:16 +09:00
Yukihiro Matsumoto
396397bce1
move KHASH_DECLARE to header files
2012-06-21 11:04:36 +09:00
crimsonwoods
cd68190480
split declaration and definition for 'khash_xxx'.
2012-06-19 23:00:29 +09:00
Yukihiro Matsumoto
76f7aecff3
use ENABLE/DISABLE instead of INCLUDE for configuration macro names
2012-06-15 15:34:49 +09:00
Yukihiro Matsumoto
db3d72a471
move RSHIFT from numeric.h to numeric.c
2012-06-13 15:40:41 +09:00
Yukihiro Matsumoto
6a5019d37f
optimized OP_{ADD,SUB,MUL,DIV} to use numeric function for fixnums to handle overflow
2012-06-13 15:38:18 +09:00
Yukihiro Matsumoto
21304086cd
remove khash#kh_debug
2012-06-12 01:41:20 +09:00
SatoshiOdawara
9ecc209ca0
memory leak in kh_resize_##name()
2012-06-07 16:03:53 +09:00
Yukihiro "Matz" Matsumoto
0816c0eba5
Merge pull request #248 from monaka/pr-use-value-i-for-nil-false-check
...
Use value.i for nil/false check.
2012-06-06 22:55:10 -07:00
Masaki Muranaka
e0909fef44
Use value.i for nil/false check.
2012-06-07 09:34:27 +09:00
Yukihiro Matsumoto
1a369de489
remove src/gc.h
2012-06-07 01:18:17 +09:00
Yukihiro Matsumoto
4c01f002fd
mruby/array.h: rename buf to ptr
2012-06-05 23:20:36 +09:00
Yukihiro Matsumoto
e3d17e54f8
mruby/string.h: rename buf to ptr
2012-06-05 23:17:09 +09:00
Yukihiro Matsumoto
e4529c065d
make arrays to share bodies
2012-06-03 23:05:31 +09:00
Yukihiro Matsumoto
28b9619bb4
should decref shared string body on gc_free
2012-06-03 15:45:06 +09:00
Yukihiro Matsumoto
12d75223d6
make shared string to reference-counted C structure to reduce GC pressure
2012-06-03 07:55:39 +09:00
Yukihiro Matsumoto
cc86250297
remove unsafe macros in hash.h
2012-06-03 00:23:59 +09:00
Yukihiro Matsumoto
81c0e2e031
make color in OBJECT_HEADER unsigned
2012-06-02 23:43:13 +09:00