[svn:parrot] r47269 - branches/gc_massacre_no_constant/src

bacek at svn.parrot.org bacek at svn.parrot.org
Tue Jun 1 20:58:33 UTC 2010


Author: bacek
Date: Tue Jun  1 20:58:33 2010
New Revision: 47269
URL: https://trac.parrot.org/parrot/changeset/47269

Log:
Move dynext from "constant" usage.

Modified:
   branches/gc_massacre_no_constant/src/dynext.c

Modified: branches/gc_massacre_no_constant/src/dynext.c
==============================================================================
--- branches/gc_massacre_no_constant/src/dynext.c	Tue Jun  1 20:57:57 2010	(r47268)
+++ branches/gc_massacre_no_constant/src/dynext.c	Tue Jun  1 20:58:33 2010	(r47269)
@@ -157,8 +157,8 @@
         ARGIN(STRING *name))
 {
     ASSERT_ARGS(set_cstring_prop)
-    STRING * const key  = Parrot_str_new_constant(interp, what);
-    PMC    * const prop = Parrot_pmc_new_constant(interp, enum_class_String);
+    STRING * const key  = Parrot_str_new(interp, what, 0);
+    PMC    * const prop = Parrot_pmc_new(interp, enum_class_String);
 
     VTABLE_set_string_native(interp, prop, name);
     VTABLE_setprop(interp, lib_pmc, key, prop);
@@ -402,7 +402,7 @@
 
     /* seems to be a native/NCI lib */
     if (!load_func || !lib_pmc)
-        lib_pmc = Parrot_pmc_new_constant(interp, enum_class_ParrotLibrary);
+        lib_pmc = Parrot_pmc_new(interp, enum_class_ParrotLibrary);
 
     /*  Call init, if it exists */
     if (init_func)
@@ -538,7 +538,7 @@
 make_string_pmc(PARROT_INTERP, ARGIN(STRING *string))
 {
     ASSERT_ARGS(make_string_pmc)
-    PMC * const ret = Parrot_pmc_new_constant(interp, enum_class_String);
+    PMC * const ret = Parrot_pmc_new(interp, enum_class_String);
     VTABLE_set_string_native(interp, ret, string);
 
     return ret;
@@ -582,7 +582,7 @@
          * Anyways, if we hope to share bytecode at runtime, we need to have
          * them have identical opcodes anyways.
          */
-        PMC * const new_lib_pmc = Parrot_pmc_new_constant(d, enum_class_ParrotLibrary);
+        PMC * const new_lib_pmc = Parrot_pmc_new(d, enum_class_ParrotLibrary);
 
         PMC_data(new_lib_pmc) = handle;
         VTABLE_setprop(d, new_lib_pmc, CONST_STRING(s, "_filename"), make_string_pmc(d, wo_ext));


More information about the parrot-commits mailing list