summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-22 08:31:38 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-22 08:31:38 +0000
commit8bcf7fc40266faa09cf8b6cebb2d96c1bb8d51ee (patch)
tree719fe00c607d84a4339d7cfef7754eec8590d2e3 /vm_insnhelper.c
parent9c46e774c15668b7fbf3df8a9a9ea912b5908738 (diff)
* vm_core.h: add a data type rb_location_t to store iseq location
information. rb_location_t#filename, filepath, name and line_no was moved from rb_iseq_t. rb_location_t#basename is a new field which is similar to `name' field without any decoration. `name' field contains some decoration such as `block in foo'. `basename' only contains `foo'. rb_iseq_t contains memory object of rb_location_t. * iseq.c: setup rb_location_t for each rb_iseq_t memory objects. * compile.c, proc.c, vm.c, vm_dump.c, vm_eval.c, vm_insnhelper.c, vm_method.c: support about it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index c5a3bd0ad4..1e9b852d2e 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -133,8 +133,8 @@ argument_error(const rb_iseq_t *iseq, int miss_argc, int min_argc, int max_argc)
int line_no = rb_iseq_first_lineno(iseq);
err_line = rb_sprintf("%s:%d:in `%s'",
- RSTRING_PTR(iseq->filename),
- line_no, RSTRING_PTR(iseq->name));
+ RSTRING_PTR(iseq->location.filename),
+ line_no, RSTRING_PTR(iseq->location.name));
rb_funcall(bt, rb_intern("unshift"), 1, err_line);
}