Commit Graph

2040 Commits

Author SHA1 Message Date
pandamicro 39ce7a6bc4 Merge pull request #794 from dumganhar/jsb2.0
More renames: gc -> garbageCollect, isInGC -> isGarbageCollecting, _setInGC -> _setGarbageCollecting
2017-08-31 17:19:08 +08:00
James Chen 6c40f2783f More renames: gc -> garbageCollect, isInGC -> isGarbageCollecting, _setInGC -> _setGarbageCollecting 2017-08-31 15:52:58 +08:00
James Chen 501c2e6a5e Merge pull request #793 from CocosRobot/update_cocosfiles_1504164456
[AUTO][ci skip]: updating cocos2dx_files.json
2017-08-31 02:51:42 -05:00
CocosRobot 991824697e [AUTO][ci skip]: updating cocos2dx_files.json 2017-08-31 07:27:36 +00:00
pandamicro c767863d7c Merge pull request #791 from dumganhar/jsb2.0
executeScriptBuffer -> evalString, executeScriptFile -> runScript and adds isInCleanup API.
2017-08-31 15:22:41 +08:00
James Chen f2923331af Less friend class declaration in ScriptEngine, adds ScriptEngine::isInCleanup method for checking whether script engine is cleaning up. 2017-08-31 15:00:23 +08:00
James Chen f21fea4344 executeScriptBuffer -> evalString, executeScriptFile -> runScript. 2017-08-31 15:00:23 +08:00
pandamicro e0f914e990 Merge pull request #790 from dumganhar/jsb2.0
se::Ref -> se::RefCounter, addRef -> incRef, release -> decRef
2017-08-31 14:57:31 +08:00
James Chen 53250dad49 se::Ref -> se::RefCounter, addRef -> incRef, release -> decRef
This is for distinguishing from cocos2d::Ref.
2017-08-31 14:24:34 +08:00
James Chen 056ac35aac Removes unused ScriptEngineProtocol invocation in CCRef.cpp. 2017-08-31 14:24:34 +08:00
pandamicro 140094bb53 Merge pull request #788 from dumganhar/jsb2.0
attachChild -> attachObject, detachChild -> detachObject, isSame -> strictEquals
2017-08-31 10:52:20 +08:00
James Chen df01303041 attachChild -> attachObject, detachChild -> detachObject, isSame -> strictEquals 2017-08-31 10:33:17 +08:00
James Chen 496d025e20 Removes unused code in jsb_creator_manual.cpp. 2017-08-30 14:17:11 +08:00
James Chen 69152fa13d Merge pull request #785 from CocosRobot/update_cocosfiles_1504064144
[AUTO][ci skip]: updating cocos2dx_files.json
2017-08-30 01:05:30 -05:00
pandamicro 26a4d798a2 Merge pull request #787 from dumganhar/jsb2.0
Potential GC problem fix in CCDirector.cpp.
2017-08-30 14:03:53 +08:00
James Chen 592567da57 Potential GC problem fix in CCDirector.cpp. 2017-08-30 14:02:57 +08:00
CocosRobot bfaeba008d [AUTO][ci skip]: updating cocos2dx_files.json 2017-08-30 03:35:45 +00:00
James Chen 2b8798a73c Merge pull request #784 from dumganhar/jsb2.0
Some fixes for JSB2.0
2017-08-29 22:30:53 -05:00
James Chen 4889a7f358 updates simulator project configuration. 2017-08-29 18:01:53 +08:00
James Chen 45f8d3ee63 updates templates. 2017-08-29 18:00:51 +08:00
James Chen 9f16c51b4e Simulator works for jsb2.0 2017-08-29 18:00:07 +08:00
James Chen c79e7c96f7 Uses spTrackEntry_setDisposeCallback. 2017-08-29 17:56:17 +08:00
James Chen 23e02645c1 obj.schedule method should check the argument order of target and callback. 2017-08-29 17:55:56 +08:00
James Chen bee4ec4f35 sptrackentry_to_seval should root js object. 2017-08-29 17:55:01 +08:00
James Chen e4250dd01b Adds a method spTrackEntry_setDisposeCallback for notifying spTrackEntry is being disposed. 2017-08-29 17:54:27 +08:00
James Chen 17a98a41f1 more log in ScriptEngine. 2017-08-29 17:37:32 +08:00
James Chen 55fd44d419 Fixes potential crash while ScriptEngine::cleanup. 2017-08-29 16:35:23 +08:00
James Chen a2351e779e removes unused debug code in CCNode.cpp 2017-08-29 16:34:47 +08:00
Wang Nan b027fb9d87 Merge pull request #781 from CocosRobot/update_js_bindings_1503907648
[ci skip][AUTO]: updating jsbinding automatically
2017-08-28 17:09:26 +08:00
James Chen eb3bd3a44b Merge branch 'develop' of git://github.com/cocos-creator/cocos2d-x-lite into jsb2.0 2017-08-28 16:16:41 +08:00
CocosRobot c707237826 [ci skip][AUTO]: updating jsbinding automatically 2017-08-28 08:08:38 +00:00
James Chen 977ba3727b Merge pull request #780 from dumganhar/develop
Merge v1.6 branch.
2017-08-28 03:03:44 -05:00
James Chen ab4299c77c Fixes after merging develop. 2017-08-28 15:03:02 +08:00
James Chen 99c1b24256 Merge branch 'develop' into jsb2.0 2017-08-28 14:38:47 +08:00
James Chen 621ff28b4a Merge branch 'v1.6' into develop
# Conflicts:
#	cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js
#	cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp
#	cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.hpp
#	cocos/scripting/js-bindings/auto/jsb_cocos2dx_experimental_webView_auto.cpp
#	cocos/scripting/js-bindings/auto/jsb_cocos2dx_experimental_webView_auto.hpp
#	cocos/scripting/js-bindings/manual/BaseJSAction.cpp
#	cocos/scripting/js-bindings/manual/BaseJSAction.h
#	cocos/scripting/js-bindings/manual/ScriptingCore.cpp
#	cocos/scripting/js-bindings/manual/ScriptingCore.h
#	cocos/scripting/js-bindings/manual/cocos2d_specifics.cpp
#	cocos/scripting/js-bindings/manual/cocos2d_specifics.hpp
#	cocos/scripting/js-bindings/manual/js_manual_conversions.cpp
#	cocos/scripting/js-bindings/manual/network/XMLHTTPRequest.cpp
#	cocos/scripting/js-bindings/manual/network/jsb_websocket.cpp
#	cocos/scripting/js-bindings/manual/platform/android/CCJavascriptJavaBridge.cpp
#	cocos/scripting/js-bindings/manual/platform/ios/JavaScriptObjCBridge.mm
#	cocos/scripting/js-bindings/manual/spidermonkey_specifics.h
#	cocos/scripting/js-bindings/manual/ui/jsb_cocos2dx_ui_manual.cpp
#	cocos/scripting/js-bindings/proj.android/Android.mk
#	cocos/scripting/js-bindings/proj.ios_mac/cocos2d_js_bindings.xcodeproj/project.pbxproj
#	cocos/scripting/js-bindings/proj.win32/libjscocos2d.vcxproj
#	cocos/scripting/js-bindings/proj.win32/libjscocos2d.vcxproj.filters
#	cocos/scripting/js-bindings/script/jsb_debugger.js
#	extensions/anysdk/js-bindings/SDKManager.cpp
#	extensions/anysdk/js-bindings/manualanysdkbindings.cpp
#	templates/cocos2dx_files.json
#	templates/js-template-binary/frameworks/runtime-src/proj.ios_mac/ios/AppController.mm
#	templates/js-template-default/frameworks/runtime-src/proj.ios_mac/ios/AppController.mm
#	templates/js-template-link/frameworks/runtime-src/proj.ios_mac/ios/AppController.mm
#	tools/tojs/cocos2dx.ini
#	tools/tojs/cocos2dx_experimental_webView.ini
2017-08-28 14:23:30 +08:00
James Chen 4a1cc2ec1b Updates auto bindings code 2017-08-28 14:05:55 +08:00
James Chen 3d5b98b8a0 Refactor the order of class (Node, Label, Sprite) member for saving more memory.
More enum of char elements for saving more memory.
EventTouch and EventMouse are cached.
releaseScriptObject for scene should be placed at setNextScene.
Fixes protential crash while gc comes for JSC and ChakraCore.
Adds assertion in ScriptingCore::releaseScriptObject for not being invoked while gc.
Scheduler binding fix.
2017-08-28 14:03:33 +08:00
James Chen 4bc223f8fa WebSocket-apple.mm should be compiled with ARC. 2017-08-28 13:48:23 +08:00
Wang Nan 8b7452f41c Merge pull request #778 from CocosRobot/update_cocosfiles_1503886480
[AUTO][ci skip]: updating cocos2dx_files.json
2017-08-28 11:56:16 +08:00
James Chen bcdfa40c3a Fixes potential memory leak in jsb_xmlhttprequest.cpp 2017-08-28 11:18:23 +08:00
James Chen dc6ebc164a websocket-apple.mm needs to be compiled as ARC enabled. 2017-08-28 11:17:45 +08:00
CocosRobot a29f73e2cf [AUTO][ci skip]: updating cocos2dx_files.json 2017-08-28 02:14:40 +00:00
Wang Nan 30e5963eb0 Merge pull request #774 from pandamicro/debugger
Support Firefox remote debugger in v1.6
2017-08-28 10:10:48 +08:00
Wang Nan 520a2e256d Merge pull request #777 from pandamicro/v1.6
Made GC more sensible on Spidermonkey
2017-08-28 10:10:10 +08:00
pandamicro f2bd7d4c01 Made GC more sensible on Spidermonkey 2017-08-26 19:51:11 +08:00
pandamicro 4f47860d58 Merge pull request #776 from pandamicro/v1.6
Report error stack to js __errorHandler
2017-08-25 18:02:23 +08:00
pandamicro 8ce31e9ec8 Merge pull request #775 from jareguo/v1.6
dragonbones: sync fixes from official repo
2017-08-25 15:41:54 +08:00
pandamicro 259aed65ef Report error stack to js __errorHandler 2017-08-25 15:40:35 +08:00
pandamicro b478ec3364 Secure editbox js delegate execution 2017-08-25 15:40:08 +08:00
Jare Guo 59905b8eb6 dragonbones: fix memory leak (picked from DragonBones/DragonBonesCPP#153) and cherry pick a bit code from 5.0 2017-08-25 14:29:25 +08:00