[svn:parrot] r47881 - trunk/src/call

chromatic at svn.parrot.org chromatic at svn.parrot.org
Sat Jun 26 20:54:25 UTC 2010


Author: chromatic
Date: Sat Jun 26 20:54:25 2010
New Revision: 47881
URL: https://trac.parrot.org/parrot/changeset/47881

Log:
[pcc] Added a tiny optimization to fill_params().

Modified:
   trunk/src/call/args.c

Modified: trunk/src/call/args.c
==============================================================================
--- trunk/src/call/args.c	Sat Jun 26 20:54:21 2010	(r47880)
+++ trunk/src/call/args.c	Sat Jun 26 20:54:25 2010	(r47881)
@@ -956,16 +956,9 @@
     }
 
     /* Now iterate over the named arguments and parameters. */
-    while (1) {
+    while (param_index < param_count) {
         STRING *param_name;
-        INTVAL  param_flags;
-
-        /* Check if we've used up all the parameters. We'll check for leftover
-         * named args after the loop. */
-        if (param_index >= param_count)
-            break;
-
-        param_flags = raw_params[param_index];
+        INTVAL  param_flags = raw_params[param_index];
 
         /* All remaining parameters must be named. */
         if (!(param_flags & PARROT_ARG_NAME))


More information about the parrot-commits mailing list