[svn:parrot] r38169 - trunk/tools/build

NotFound at svn.parrot.org NotFound at svn.parrot.org
Fri Apr 17 10:11:41 UTC 2009


Author: NotFound
Date: Fri Apr 17 10:11:39 2009
New Revision: 38169
URL: https://trac.parrot.org/parrot/changeset/38169

Log:
[cage] add an assertion for an unchecked assumption in nci

Modified:
   trunk/tools/build/nativecall.pl

Modified: trunk/tools/build/nativecall.pl
==============================================================================
--- trunk/tools/build/nativecall.pl	Thu Apr 16 22:58:07 2009	(r38168)
+++ trunk/tools/build/nativecall.pl	Fri Apr 17 10:11:39 2009	(r38169)
@@ -554,6 +554,8 @@
     jit_key_name = Parrot_str_concat(interp, jit_key_name, signature, 0);
     b            = VTABLE_get_pmc_keyed_str(interp, HashPointer, jit_key_name);
 
+    PARROT_ASSERT((!b) || b->vtable);
+
     if (b && b->vtable->base_type == enum_class_ManagedStruct) {
         *jitted = 1;
         return F2DPTR(VTABLE_get_pointer(interp, b));


More information about the parrot-commits mailing list