From a57949b140170cec7776d3e073fa8607e4cdcbb7 Mon Sep 17 00:00:00 2001 From: mame Date: Tue, 1 Jul 2008 16:55:30 +0000 Subject: * Add coverage measurement constant COVERAGE__. This constant is not for casual use. Usage: (1) assign {} to COVERAGE__, (2) require or load Ruby source file, and (3) COVERAGE__["sourcefilepath"] will return an array whose elements represent number of executions per line of source code. * vm_core.h: add field of coverage array to iseq. * iseq.c (prepare_iseq_build): ditto. * insns.def (trace): update coverage array. * parse.y (coverage): create and initialize coverage array. * compile.h (ADD_TRACE): add trace instruction to update covearge array. * thread.c (clear_coverage): delete coverage array when forking. Otherwise, double count of coverage may occur. * lib/coverage.rb: sample coverage measurement tool. * error.c: distinguish explicitly between parse_in_eval and mild_compile_error. * load.c: ditto. * vm_eval.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 3234836be..2011d0c05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,34 @@ +Wed Jul 2 01:53:40 2008 Yusuke Endoh + + * Add coverage measurement constant COVERAGE__. This constant is not + for casual use. Usage: (1) assign {} to COVERAGE__, (2) require or + load Ruby source file, and (3) COVERAGE__["sourcefilepath"] will + return an array whose elements represent number of executions per + line of source code. + + * vm_core.h: add field of coverage array to iseq. + + * iseq.c (prepare_iseq_build): ditto. + + * insns.def (trace): update coverage array. + + * parse.y (coverage): create and initialize coverage array. + + * compile.h (ADD_TRACE): add trace instruction to update covearge + array. + + * thread.c (clear_coverage): delete coverage array when forking. + Otherwise, double count of coverage may occur. + + * lib/coverage.rb: sample coverage measurement tool. + + * error.c: distinguish explicitly between parse_in_eval and + mild_compile_error. + + * load.c: ditto. + + * vm_eval.c: ditto. + Tue Jul 1 21:32:43 2008 Yusuke Endoh * lib/test/unit/ui/console/testrunner.rb: prevent destructive -- cgit