Author Mark.Shannon
Recipients Mark.Shannon
Date 2013-04-01.16:31:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The handling of "pseudo exceptions" (return, break and continue) are currently handled in the interpreter. This make the interpreter loop more complex and slower than it needs to be. This change moves the handling of pseudo exceptions into the compiler. 

The net effects of this patch are:

Simpler interpreter loop: no 'psuedo-exceptions', fewer bytecodes and some simplifed bytecodes.

Eliminate the 'why_code' state variable in the  interpreter. Execution is always in the 'normal' state except during explicit exception handling.

Small increase in size and complexity of compiler.

Speedup of 1.5% (Intel i7); this should be considered a happy side-effect rather than a motivation for the change.
Date User Action Args
2013-04-01 16:31:20Mark.Shannonsetrecipients: + Mark.Shannon
2013-04-01 16:31:20Mark.Shannonsetmessageid: <>
2013-04-01 16:31:20Mark.Shannonlinkissue17611 messages
2013-04-01 16:31:19Mark.Shannoncreate