Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't clone self to constant PMC.

It's not needed, unfinished, inconsistent and ugly.
  • Loading branch information...
commit 84fbdb510dd3cbce808ee0e2b3130a5f84596abd 1 parent 29f6873
@bacek bacek authored
Showing with 2 additions and 7 deletions.
  1. +1 −3 src/pmc/default.pmc
  2. +1 −4 src/pmc/fixedintegerarray.pmc
View
4 src/pmc/default.pmc
@@ -315,9 +315,7 @@ make_prop_hash(PARROT_INTERP, ARGMOD(PMC *self))
{
ASSERT_ARGS(make_prop_hash)
- PMC * const prop = PObj_constant_TEST(self)
- ? Parrot_pmc_new_constant(interp, enum_class_Hash)
- : Parrot_pmc_new(interp, enum_class_Hash);
+ PMC * const prop = Parrot_pmc_new(interp, enum_class_Hash);
propagate_std_props(interp, self, prop);
PARROT_GC_WRITE_BARRIER(interp, self);
View
5 src/pmc/fixedintegerarray.pmc
@@ -109,10 +109,7 @@ Creates and returns a copy of the array.
*/
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);
Please sign in to comment.
Something went wrong with that request. Please try again.