Complete jsb proxy tracking log infos

This commit is contained in:
pandamicro
2017-08-29 17:41:02 +08:00
parent 9ebcbe0d53
commit b9dae71cce
2 changed files with 10 additions and 3 deletions
@@ -2256,6 +2256,10 @@ void jsb_ref_autoreleased_init(JSContext* cx, JS::HandleObject obj, Ref* ref, co
// rebind
void jsb_ref_rebind(JSContext* cx, JS::HandleObject jsobj, js_proxy_t *proxy, cocos2d::Ref* oldRef, cocos2d::Ref* newRef, const char* debug)
{
#if COCOS2D_DEBUG > 1
CCLOG("------REBOUND------ Cpp(%s): %p - JS: %p", debug, oldRef, jsobj.get());
CCLOG("++++++REBOUND++++++ Cpp(%s): %p - JS: %p", debug, newRef, jsobj.get());
#endif // COCOS2D_DEBUG
#if CC_ENABLE_GC_FOR_NATIVE_OBJECTS
// Release the old reference as it have been retained by jsobj previously,
// and the jsobj won't have any chance to release it in the future