[svn:parrot] r40546 - trunk/src/pmc
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Fri Aug 14 17:13:02 UTC 2009
Author: NotFound
Date: Fri Aug 14 17:13:00 2009
New Revision: 40546
URL: https://trac.parrot.org/parrot/changeset/40546
Log:
[cage] drop no longer useful "if (pass)" conditions from class_init functions
Modified:
trunk/src/pmc/lexinfo.pmc
trunk/src/pmc/parrotinterpreter.pmc
trunk/src/pmc/parrotthread.pmc
Modified: trunk/src/pmc/lexinfo.pmc
==============================================================================
--- trunk/src/pmc/lexinfo.pmc Fri Aug 14 14:47:01 2009 (r40545)
+++ trunk/src/pmc/lexinfo.pmc Fri Aug 14 17:13:00 2009 (r40546)
@@ -49,8 +49,7 @@
void class_init() {
/* there is no pmclass const_pmc flag yet */
- if (pass == 1)
- interp->vtables[entry]->flags |= VTABLE_IS_CONST_PMC_FLAG;
+ interp->vtables[entry]->flags |= VTABLE_IS_CONST_PMC_FLAG;
}
Modified: trunk/src/pmc/parrotinterpreter.pmc
==============================================================================
--- trunk/src/pmc/parrotinterpreter.pmc Fri Aug 14 14:47:01 2009 (r40545)
+++ trunk/src/pmc/parrotinterpreter.pmc Fri Aug 14 17:13:00 2009 (r40546)
@@ -209,15 +209,13 @@
void class_init() {
const int typ = enum_class_ParrotInterpreter;
- if (pass) {
- /* TODO unify and fix signatures */
- register_nci_method(INTERP, typ,
- F2DPTR(pt_thread_yield), "yield", "v");
-
- /* misc functions */
- register_nci_method(INTERP, typ,
- F2DPTR(recursion_limit), "recursion_limit", "iJOi");
- }
+ /* TODO unify and fix signatures */
+ register_nci_method(INTERP, typ,
+ F2DPTR(pt_thread_yield), "yield", "v");
+
+ /* misc functions */
+ register_nci_method(INTERP, typ,
+ F2DPTR(recursion_limit), "recursion_limit", "iJOi");
}
/*
Modified: trunk/src/pmc/parrotthread.pmc
==============================================================================
--- trunk/src/pmc/parrotthread.pmc Fri Aug 14 14:47:01 2009 (r40545)
+++ trunk/src/pmc/parrotthread.pmc Fri Aug 14 17:13:00 2009 (r40546)
@@ -103,14 +103,12 @@
void class_init() {
const int typ = enum_class_ParrotThread;
- if (pass) {
- register_nci_method(INTERP, typ,
- F2DPTR(do_thread_run), "run", "IJOIP@");
-
- /* XXX appropriate name given that this won't clone globals? */
- register_nci_method(INTERP, typ,
- F2DPTR(do_thread_run_clone_default), "run_clone", "IJOP@");
- }
+ register_nci_method(INTERP, typ,
+ F2DPTR(do_thread_run), "run", "IJOIP@");
+
+ /* XXX appropriate name given that this won't clone globals? */
+ register_nci_method(INTERP, typ,
+ F2DPTR(do_thread_run_clone_default), "run_clone", "IJOP@");
}
/*
More information about the parrot-commits
mailing list