summaryrefslogtreecommitdiffhomepage
path: root/src/codegen.c
AgeCommit message (Collapse)Author
2013-12-03avoid top-level pool release at codegen_error() and fixed some memory leaksYukihiro "Matz" Matsumoto
2013-12-03should not access scope after releasing memory poolYukihiro "Matz" Matsumoto
2013-12-02Merge pull request #1601 from carsonmcdonald/srcaptosizetYukihiro "Matz" Matsumoto
Change scapa and rcapa to size_t, use scapa.
2013-12-02Change scapa and rcapa to size_t, use scapa.Carson McDonald
2013-12-01add mrb_intern_lit for creating symbol from string literaltake_cheeze
2013-11-29rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513Yukihiro "Matz" Matsumoto
2013-11-27float objects in pool are objects when MRB_WORD_BOXING is setYukihiro "Matz" Matsumoto
2013-11-26Fix build error for MRB_WORD_BOXINGkyab
2013-11-20rename API mrb_str_dup_static() -> mrb_str_pool()Yukihiro "Matz" Matsumoto
2013-11-20resolve conflictYukihiro "Matz" Matsumoto
2013-11-19irep->pool struct pool -> mrb_valueMiura Hideki
2013-11-18codegen_malloc/realloc: static + simple mem alloccremno
- there's no reason for both to have external linkage - use simple versions of memory allocation functions which are returning NULL instead of longjmp-ing, so codegen_error will be called to cleanup.
2013-11-15enum mrb_vtype varies on compile time configuration, namely MRB_NAN_BOXINGYukihiro "Matz" Matsumoto
2013-11-13Changed a variable declaration to top of blockbggd
2013-11-09protect returning irep (in proc) from GCYukihiro "Matz" Matsumoto
2013-11-07type check before pool scanYukihiro "Matz" Matsumoto
2013-11-07create Proc object before releasing memory poolYukihiro "Matz" Matsumoto
2013-11-07irep->pool not to be GCedYukihiro "Matz" Matsumoto
2013-11-07modified to use irep->reps to reference child ireps. preparation forYukihiro "Matz" Matsumoto
removing irep array from mrb_state. note that instructions OP_LAMBDA, OP_EXEC and OP_EPUSH are incompatible, and dumped mrb format has changed.
2013-11-02remove scope->idxYukihiro "Matz" Matsumoto
2013-11-02codedump() to take irep structureYukihiro "Matz" Matsumoto
2013-11-02change return value from mrb_generate_code()Yukihiro "Matz" Matsumoto
2013-10-25fix #1544fleuria
We have already reserved that register in codegen()'s case NODE_DEF, but what we care about is actually the previous register. So what we need is get that register by cursp() after pop(), then recover the reservation by push().
2013-10-01fix #1519fleuria
the 128th element in an array literal would trigger a corner case on splat mode checking, in which mruby will splat an that value into its parent array. the issue was masked by the fact of ary_concat() also accept non-array value: 1.9.3p286 :002> a = 1 1.9.3p286 :003> [*a] => [1] the expected behaviour should be OP_ARYPUSH the 128th element, instead of splat it by OP_ARYCAT.
2013-09-20remove unreferenced local variables caused by mrb_assert()Yukihiro "Matz" Matsumoto
2013-09-20rename node->filename to node->filename_indexYukihiro "Matz" Matsumoto
2013-09-20refactor genop_peep(); ref #1505Yukihiro "Matz" Matsumoto
2013-09-18Fix self value in a block is changed with return value for Fixnum, nil, ↵Keita Obo
instance variable. Fix #1504
2013-09-18Fixed self value in a block is changed with return valueKeita Obo
fix #1504
2013-09-07check file debug info is appended correctlytake_cheeze
2013-09-07remove unnecessary scope filename updatetake_cheeze
2013-09-07update filename before appending file debug infotake_cheeze
2013-09-02reduce node sizetake_cheeze
2013-09-02use uint16_t for line typetake_cheeze
2013-09-02support multiple filename in ireptake_cheeze
2013-08-12fix #1459fleuria
gen_vmassignment() missed a pop() in a conditional branch, but we have to keep each conditional branch 's stack depth the same all the time when it left execution.
2013-08-09def statement and define_method now return symbol a la Ruby2.1Yukihiro "Matz" Matsumoto
2013-07-29Merge pull request #1421 from carsonmcdonald/fixfor1419Yukihiro "Matz" Matsumoto
Remove pop that was done when not a return val
2013-07-28Remove pop that was done when not a return valCarson McDonald
2013-07-25refactor out longjmp() to a functionYukihiro "Matz" Matsumoto
2013-07-15Repalace int with mrb_bool because a return value is boolean.Jun Hiroe
2013-07-12Refactor codes using REGEXP_CLASS define.Jun Hiroe
2013-07-03Fix signed/unsigned warning.Carson McDonald
2013-07-03Fix signed/unsigned warning, make pcapa a size_tCarson McDonald
2013-06-30Change int to size_tCarson McDonald
2013-06-30Change int to size_t.Carson McDonald
2013-06-30Fix some signed unsigned warnings, int to size_t.Carson McDonald
2013-05-26Add MRB_WORD_BOXING mode (represent mrb_value as a word)kimu_shu
2013-05-18removed unused variables / assigns never usedJulien Ammous
2013-05-13Fix off by one issueCarson McDonald