[svn:parrot] r44972 - branches/pcc_hackathon_6Mar10/src/call

bacek at svn.parrot.org bacek at svn.parrot.org
Tue Mar 16 21:32:26 UTC 2010


Author: bacek
Date: Tue Mar 16 21:32:23 2010
New Revision: 44972
URL: https://trac.parrot.org/parrot/changeset/44972

Log:
Remove unused "new_sig" in build_sig_from_op

Modified:
   branches/pcc_hackathon_6Mar10/src/call/args.c

Modified: branches/pcc_hackathon_6Mar10/src/call/args.c
==============================================================================
--- branches/pcc_hackathon_6Mar10/src/call/args.c	Tue Mar 16 20:34:23 2010	(r44971)
+++ branches/pcc_hackathon_6Mar10/src/call/args.c	Tue Mar 16 21:32:23 2010	(r44972)
@@ -410,7 +410,6 @@
 {
     ASSERT_ARGS(Parrot_pcc_build_sig_object_from_op)
     PMC            * const ctx = CURRENT_CONTEXT(interp);
-    PMC            *new_sig    = PMCNULL;
     PMC            *call_object;
     INTVAL         *int_array;
     INTVAL          arg_count;
@@ -424,22 +423,14 @@
     }
 
     /* this macro is much, much faster than the VTABLE STRING comparisons */
+    SETATTR_CallContext_arg_flags(interp, call_object, raw_sig);
     GETATTR_FixedIntegerArray_size(interp, raw_sig, arg_count);
     GETATTR_FixedIntegerArray_int_array(interp, raw_sig, int_array);
 
-    if (PMC_IS_NULL(new_sig)) {
-        SETATTR_CallContext_arg_flags(interp, call_object, raw_sig);
-    }
-    else {
-        SETATTR_CallContext_arg_flags(interp, call_object, new_sig);
-    }
-
     for (; arg_index < arg_count; arg_index++) {
         const INTVAL arg_flags = int_array[arg_index];
         const INTVAL constant  = PARROT_ARG_CONSTANT_ISSET(arg_flags);
         const INTVAL raw_index = raw_args[arg_index + 2];
-        if (!PMC_IS_NULL(new_sig))
-            VTABLE_push_integer(interp, new_sig, arg_flags);
 
         switch (PARROT_ARG_TYPE_MASK_MASK(arg_flags)) {
           case PARROT_ARG_INTVAL:


More information about the parrot-commits mailing list