[svn:parrot] r40661 - branches/pcc_arg_unify/src/call

allison at svn.parrot.org allison at svn.parrot.org
Wed Aug 19 17:34:10 UTC 2009


Author: allison
Date: Wed Aug 19 17:34:07 2009
New Revision: 40661
URL: https://trac.parrot.org/parrot/changeset/40661

Log:
[pcc] More documentation on exception handler argument passing hack.

Modified:
   branches/pcc_arg_unify/src/call/pcc.c

Modified: branches/pcc_arg_unify/src/call/pcc.c
==============================================================================
--- branches/pcc_arg_unify/src/call/pcc.c	Wed Aug 19 16:38:19 2009	(r40660)
+++ branches/pcc_arg_unify/src/call/pcc.c	Wed Aug 19 17:34:07 2009	(r40661)
@@ -641,12 +641,13 @@
         call_object = signature;
 
     /* A hack to support 'get_results' as the way of fetching the
-     * exception object inside an exception handler. */
+     * exception object inside an exception handler. The first argument
+     * in the call object is the exception, stick it directly into the
+     * destination register. */
     if (CALLSIGNATURE_is_exception_TEST(call_object)) {
         const INTVAL raw_index = raw_args[2];
-        PMC *exception_object = 
+        CTX_REG_PMC(ctx, raw_index) = 
                 VTABLE_get_pmc_keyed_int(interp, call_object, 0);
-        CTX_REG_PMC(ctx, raw_index) = exception_object;
         return NULL;
     }
 


More information about the parrot-commits mailing list