[svn:parrot] r47271 - branches/gc_massacre_no_constant/src/pmc

bacek at svn.parrot.org bacek at svn.parrot.org
Tue Jun 1 20:59:56 UTC 2010


Author: bacek
Date: Tue Jun  1 20:59:56 2010
New Revision: 47271
URL: https://trac.parrot.org/parrot/changeset/47271

Log:
Get rid of constant cloning in FIA

Modified:
   branches/gc_massacre_no_constant/src/pmc/fixedintegerarray.pmc

Modified: branches/gc_massacre_no_constant/src/pmc/fixedintegerarray.pmc
==============================================================================
--- branches/gc_massacre_no_constant/src/pmc/fixedintegerarray.pmc	Tue Jun  1 20:59:07 2010	(r47270)
+++ branches/gc_massacre_no_constant/src/pmc/fixedintegerarray.pmc	Tue Jun  1 20:59:56 2010	(r47271)
@@ -94,18 +94,8 @@
 */
 
     VTABLE PMC *clone() {
-        /* a quick hack to create a clone in the constant PMC arena
-         * this is needed for the call signatures
-         *
-         * a better way would be probably to supply a flag to the clone
-         * vtable
-         */
-
         INTVAL * int_array;
-        PMC    * const dest =
-            PObj_constant_TEST(SELF)
-                ? Parrot_pmc_new_constant(INTERP, SELF->vtable->base_type)
-                : Parrot_pmc_new(INTERP, SELF->vtable->base_type);
+        PMC    * const dest = Parrot_pmc_new(INTERP, SELF->vtable->base_type);
 
         GET_ATTR_int_array(INTERP, SELF, int_array);
 


More information about the parrot-commits mailing list