1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* compile.h: fix to skip inserting a trace insn.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2008-07-08 04:43:02 +00:00
parent 2db158667a
commit 8b3969f8b3
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Tue Jul 8 13:38:22 2008 Koichi Sasada <ko1@atdot.net>
* compile.h: fix to skip inserting a trace insn.
Tue Jul 8 11:41:17 2008 NAKAMURA Usaku <usa@ruby-lang.org>
* dir.c: shoudn't use ruby object in globbing, because glob service

View file

@ -164,11 +164,14 @@ PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
#define ADD_TRACE(seq, line, event) \
do { \
if ((event) == RUBY_EVENT_LINE && iseq->coverage && RARRAY_PTR(iseq->coverage)[(line) - 1] == Qnil) { \
if ((event) == RUBY_EVENT_LINE && iseq->coverage && \
RARRAY_PTR(iseq->coverage)[(line) - 1] == Qnil) { \
RARRAY_PTR(iseq->coverage)[(line) - 1] = INT2FIX(0); \
ADD_INSN1(seq, line, trace, INT2FIX(RUBY_EVENT_COVERAGE)); \
} \
ADD_INSN1(seq, line, trace, INT2FIX(event)); \
if (iseq->compile_data->option->trace_instruction) { \
ADD_INSN1(seq, line, trace, INT2FIX(event)); \
} \
}while(0);
/* add label */