mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 03:24:00 +02:00
* vm.c, insns.def, eval.c, vm_insnhelper.c: fix CREF handling.
VM value stack frame of block contains cref information. (dfp[-1] points CREF) * compile.c, eval_intern.h, eval_method.c, load.c, proc.c, vm_dump.h, vm_core.h: ditto. * include/ruby/ruby.h, gc.c: remove T_VALUES because of above changes. * bootstraptest/test_eval.rb, test_knownbug.rb: move solved test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2e5e857a0b
commit
385f0e8af6
18 changed files with 234 additions and 344 deletions
|
@ -262,7 +262,6 @@ enum ruby_value_type {
|
|||
RUBY_T_SYMBOL = 0x14,
|
||||
RUBY_T_FIXNUM = 0x15,
|
||||
|
||||
RUBY_T_VALUES = 0x1a,
|
||||
RUBY_T_UNDEF = 0x1b,
|
||||
RUBY_T_NODE = 0x1c,
|
||||
RUBY_T_ICLASS = 0x1d,
|
||||
|
@ -292,7 +291,6 @@ enum ruby_value_type {
|
|||
#define T_SYMBOL RUBY_T_SYMBOL
|
||||
#define T_RATIONAL RUBY_T_RATIONAL
|
||||
#define T_COMPLEX RUBY_T_COMPLEX
|
||||
#define T_VALUES RUBY_T_VALUES
|
||||
#define T_UNDEF RUBY_T_UNDEF
|
||||
#define T_NODE RUBY_T_NODE
|
||||
#define T_MASK RUBY_T_MASK
|
||||
|
@ -438,13 +436,6 @@ struct RObject {
|
|||
RCLASS_IV_INDEX_TBL(rb_obj_class(o)) : \
|
||||
ROBJECT(o)->as.heap.iv_index_tbl)
|
||||
|
||||
struct RValues {
|
||||
struct RBasic basic;
|
||||
VALUE v1;
|
||||
VALUE v2;
|
||||
VALUE v3;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
VALUE super;
|
||||
struct st_table *iv_tbl;
|
||||
|
@ -654,7 +645,6 @@ struct RBignum {
|
|||
#define RFILE(obj) (R_CAST(RFile)(obj))
|
||||
#define RRATIONAL(obj) (R_CAST(RRational)(obj))
|
||||
#define RCOMPLEX(obj) (R_CAST(RComplex)(obj))
|
||||
#define RVALUES(obj) (R_CAST(RValues)(obj))
|
||||
|
||||
#define FL_SINGLETON FL_USER0
|
||||
#define FL_MARK (((VALUE)1)<<5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue