no bug: fix debug compilation failure (p=brbaker)
authorDan Schaffer <Dan.Schaffer@adobe.com>
Fri, 09 Nov 2012 13:44:31 -0800
changeset 7577 f9f60574f375481c3ed33815da08a1083b8aa22f
parent 7576 d45c5d35e6c7d6b063d8a59aab3047547631c3b4
child 7578 7828d521c9a01f762cacbe78b21fc16c9e8cccb4
push id4262
push userdschaffe@adobe.com
push dateWed, 30 Jan 2013 19:01:31 +0000
bugs1134631
no bug: fix debug compilation failure (p=brbaker) CL@1134631
core/exec-jit.cpp
--- a/core/exec-jit.cpp
+++ b/core/exec-jit.cpp
@@ -520,27 +520,29 @@ ImtEntry* BaseExecMgr::buildImtEntries(V
             MethodInfo* v0 = ((1<<ibk) & ((1<<BKIND_METHOD)|(1<<BKIND_GET)|(1<<BKIND_GETSET))) ?
                                 ifcd->getMethod(iDispID) :
                                 NULL;
 
             if (v0 && ImtHolder::hashIID(v0) == slot) {
                 if (cBinding == BIND_NONE)
                     cBinding = tb->findBinding(name, ns);
                 AvmAssert(cBinding != BIND_NONE);
+                AvmAssert((1 << AvmCore::bindingKind(cBinding)) & ((1<<BKIND_METHOD)|(1<<BKIND_GET)|(1<<BKIND_GETSET)));
                 map = new (gc) ImtEntry(map, ImtHolder::getIID(v0), getRawDispID(cBinding));
                 ++count;
             }
 
             MethodInfo* v1 = ((1<<ibk) & ((1<<BKIND_SET)|(1<<BKIND_GETSET))) ?
                                 ifcd->getMethod(iDispID+1) :
                                 NULL;
             if (v1 && ImtHolder::hashIID(v1) == slot) {
                 if (cBinding == BIND_NONE)
                     cBinding = tb->findBinding(name, ns);
                 AvmAssert(cBinding != BIND_NONE);
+                AvmAssert((1 << AvmCore::bindingKind(cBinding)) & ((1<<BKIND_SET)|(1<<BKIND_GETSET)));
                 map = new (gc) ImtEntry(map, ImtHolder::getIID(v1), getRawDispID(cBinding)+1);
                 ++count;
             }
         } // while iter.next()
     } // for ... ifc_iter.hasNext()
 
     AvmAssert(map != NULL);
     return map;