Re: [GSOC] SoC 09 - Extending XDebug code coverage instrumentation

From: Date: Mon, 04 May 2009 17:54:18 +0000
Subject: Re: [GSOC] SoC 09 - Extending XDebug code coverage instrumentation
References: 1  Groups: php.gsoc 
Request: Send a blank email to php-gsoc+get-51@lists.php.net to get a copy of this message
Hi and welcome,
My initial idea is to build an AST from the underlying PHP code and then run analysis on the tree to determine how many branches there are, then add custom opcode handlers which will fire when a particular branch is taken
So I don't think you really need to build an AST just to determine which branches were taken. You can just pass on the bytecode once and check how many branches exist. And to which were taken, just create a custom opcode that records this info. So I think you can skip this complexity of explicitly building the AST. It is implicit in the bytecode anyway. Nuno

« previous php.gsoc (#51) next »