summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-02 11:08:44 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-02 11:08:44 +0000
commit319088e9c7ae9836efd242592ea80c9794a45002 (patch)
tree4af392612508133a1f7aa015c9781aac88479982 /vm_core.h
parent14bf66f25210248334f4730784ad00c18b7d651e (diff)
* class.c, insns.def, method.h, proc.c, vm.c, vm_core.h, vm_eval.c,
vm_insnhelper.c, vm_insnhelper.h, vm_method.c: add klass to rb_control_frame_t to implement super correctly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/vm_core.h b/vm_core.h
index 97d4410d73..130063a490 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -137,6 +137,9 @@ struct iseq_inline_cache_entry {
rb_method_entry_t *method;
long index;
} ic_value;
+ union {
+ VALUE defined_class;
+ } ic_value2;
};
#if 1
@@ -349,14 +352,16 @@ typedef struct {
rb_iseq_t *iseq; /* cfp[3] */
VALUE flag; /* cfp[4] */
VALUE self; /* cfp[5] / block[0] */
- VALUE *ep; /* cfp[6] / block[1] */
- rb_iseq_t *block_iseq; /* cfp[7] / block[2] */
- VALUE proc; /* cfp[8] / block[3] */
- const rb_method_entry_t *me;/* cfp[9] */
+ VALUE klass; /* cfp[6] / block[1] */
+ VALUE *ep; /* cfp[7] / block[2] */
+ rb_iseq_t *block_iseq; /* cfp[8] / block[3] */
+ VALUE proc; /* cfp[9] / block[4] */
+ const rb_method_entry_t *me;/* cfp[10] */
} rb_control_frame_t;
typedef struct rb_block_struct {
VALUE self; /* share with method frame if it's only block */
+ VALUE klass; /* share with method frame if it's only block */
VALUE *ep; /* share with method frame if it's only block */
rb_iseq_t *iseq;
VALUE proc;
@@ -714,7 +719,8 @@ void rb_vm_rewrite_ep_in_errinfo(rb_thread_t *th, rb_control_frame_t *cfp);
void rb_vm_inc_const_missing_count(void);
void rb_vm_gvl_destroy(rb_vm_t *vm);
VALUE rb_vm_call(rb_thread_t *th, VALUE recv, VALUE id, int argc,
- const VALUE *argv, const rb_method_entry_t *me);
+ const VALUE *argv, const rb_method_entry_t *me,
+ VALUE defined_class);
void rb_unlink_method_entry(rb_method_entry_t *me);
void rb_gc_mark_unlinked_live_method_entries(void *pvm);