[svn:parrot] r47819 - trunk/src/pmc
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Fri Jun 25 03:15:42 UTC 2010
Author: chromatic
Date: Fri Jun 25 03:15:41 2010
New Revision: 47819
URL: https://trac.parrot.org/parrot/changeset/47819
Log:
[PMC] Optimized isa VTABLE for Object PMC.
For some reason, it's measurably faster this way with an optimized build.
Figure that one out.
Modified:
trunk/src/pmc/object.pmc
Modified: trunk/src/pmc/object.pmc
==============================================================================
--- trunk/src/pmc/object.pmc Fri Jun 25 03:15:02 2010 (r47818)
+++ trunk/src/pmc/object.pmc Fri Jun 25 03:15:41 2010 (r47819)
@@ -668,8 +668,10 @@
VTABLE INTVAL isa(STRING *classname) {
if (SUPER(classname))
return 1;
-
- return VTABLE_isa(INTERP, VTABLE_get_class(INTERP, SELF), classname);
+ else {
+ PMC const * const _class = VTABLE_get_class(INTERP, SELF);
+ return VTABLE_isa(INTERP, _class, classname);
+ }
}
More information about the parrot-commits
mailing list