[svn:parrot] r48786 - trunk/src/pmc

chromatic at svn.parrot.org chromatic at svn.parrot.org
Sat Sep 4 16:58:10 UTC 2010


Author: chromatic
Date: Sat Sep  4 16:58:10 2010
New Revision: 48786
URL: https://trac.parrot.org/parrot/changeset/48786

Log:
[oo] Optimized Object's get/set attr_str VTABLEs.

Modified:
   trunk/src/pmc/object.pmc

Modified: trunk/src/pmc/object.pmc
==============================================================================
--- trunk/src/pmc/object.pmc	Sat Sep  4 16:58:07 2010	(r48785)
+++ trunk/src/pmc/object.pmc	Sat Sep  4 16:58:10 2010	(r48786)
@@ -355,7 +355,7 @@
 
         /* If there's a vtable override for 'get_attr_str' run that first. */
         PMC * const method = Parrot_oo_find_vtable_override(INTERP,
-                VTABLE_get_class(INTERP, SELF), get_attr);
+                obj->_class, get_attr);
 
         if (!PMC_IS_NULL(method)) {
             PMC *result = PMCNULL;
@@ -420,7 +420,7 @@
 
         /* If there's a vtable override for 'set_attr_str' run that first. */
         PMC * const method = Parrot_oo_find_vtable_override(INTERP,
-                VTABLE_get_class(INTERP, SELF), vtable_meth_name);
+                obj->_class, vtable_meth_name);
 
         if (!PMC_IS_NULL(method)) {
             Parrot_ext_call(INTERP, method, "PiSP->", SELF, name, value);


More information about the parrot-commits mailing list