James Chen
8230176ccb
Fixes crash while click restart button in network test. ( #829 )
...
* Sync PR(https://github.com/cocos2d/cocos2d-x/pull/17921 ): remove "system" usage which is removed from iOS11.
* Fixes crash while click `restart` button in network test.
* printf -> LOGD
* Memory leak fix in XMLHttpRequest binding code.
2017-09-20 01:48:15 -05:00
James Chen
9dafab9c49
macOS and iOS use JavaScriptCore, windows and android use V8.
2017-09-18 16:11:50 +08:00
James Chen
6c40f2783f
More renames: gc -> garbageCollect, isInGC -> isGarbageCollecting, _setInGC -> _setGarbageCollecting
2017-08-31 15:52:58 +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
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
df01303041
attachChild -> attachObject, detachChild -> detachObject, isSame -> strictEquals
2017-08-31 10:33:17 +08:00
James Chen
55fd44d419
Fixes potential crash while ScriptEngine::cleanup.
2017-08-29 16:35:23 +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
2fab54c612
fix ios crash after closing app in task manager.
2017-08-18 14:34:55 +08:00
James Chen
73e45e92e4
Adds MappingUtils file, box2d works again.
2017-08-18 14:34:55 +08:00
James Chen
e13c1ffed3
fix warning generated by vs2015.
2017-08-11 09:47:49 +08:00
James Chen
cb5d3066a8
Web inspector for JSC works.
2017-08-08 10:23:17 +08:00
James Chen
232b622ee0
Object.hpp api docs.
2017-08-03 15:17:14 +08:00
James Chen
e92eb70779
cleanup for chakracore.
2017-08-02 18:06:40 +08:00
James Chen
befa949697
private data fix.
2017-08-02 17:18:12 +08:00
James Chen
aebb1c2282
cleanup, and final class.
2017-08-02 14:37:41 +08:00
James Chen
f80802f97e
more se::HandleObject use.
2017-07-31 16:18:01 +08:00
James Chen
10710cc407
switchToRoot -> root, switchToUnroot -> unroot.
2017-07-31 10:39:32 +08:00
James Chen
b16c5de178
cleanup
2017-07-31 10:21:48 +08:00
James Chen
64a6d89b19
cleanup
2017-07-25 10:14:32 +08:00
James Chen
99529069c4
cleanup and restartVM works.
2017-07-21 14:56:48 +08:00
James Chen
a470a31f28
cleanup for jsc.
2017-07-21 13:54:41 +08:00
James Chen
af6aa8f45e
ios jsc, sm works.
2017-06-26 10:41:26 +08:00
James Chen
05a893a08b
printf -> LOGD
2017-06-23 13:44:18 +08:00
James Chen
259bbbd6b2
updates.
2017-06-16 16:32:24 +08:00
James Chen
91359f1f75
first commit
2017-06-15 17:24:30 +08:00