James Chen
fe12ba2fc2
macro fix.
2017-10-10 14:27:27 +08:00
James Chen
e46581a4bc
macro fix.
2017-10-10 14:27:12 +08:00
James Chen
342fcdd694
macro fix.
2017-10-10 14:26:52 +08:00
James Chen
039f531bbf
Prints JS engine version.
2017-10-10 14:26:12 +08:00
James Chen
3c74a04612
Fix compilation error while enabling libuv. Updates win32 template to remove include path of spidermonkey.
2017-10-09 17:29:13 +08:00
James Chen
b4578572dc
Updates config.hpp, uses COCOS2D_DEBUG for controlling debugger.
2017-10-09 15:25:57 +08:00
James Chen
c625158e74
Moves cocos2d-x node:onEnter/onExit binding code from se::ScriptEngine to ScriptingCore.
2017-10-09 15:25:10 +08:00
James Chen
9bbc052444
se::ScriptEngine::enableDebugger takes serverAddr and port arguments.
2017-10-09 15:00:04 +08:00
James Chen
76981db2ac
se::Object::setProperty should return boolean.
2017-10-09 14:59:05 +08:00
James Chen
1e436f79b4
se::HandleObject is stricter.
2017-10-09 10:14:29 +08:00
James Chen
7c0b328dd3
typo fix in sm/ScriptEngine.cpp
2017-09-29 10:30:40 +08:00
James Chen
d6a177ea65
Include file tweak.
2017-09-29 10:19:57 +08:00
2youyouo2
5cfc3ec097
change onGetDataFromFile param to callback function
2017-09-28 17:06:55 +08:00
James Chen
28d9ad258b
Removes unused \n string ending since LOGD and LOGE in jswrapper need \n at the end of string.
2017-09-26 15:09:16 +08:00
James Chen
47c9e74346
fix console.log doesn't output in creator console.
2017-09-25 16:35:00 +08:00
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
7f4088eb4a
Win32 template fix, LOGD could output log in vs in se module. ( #826 )
...
* Win32 template fix, LOGD could output log in vs in se module.
* Updates config.json
2017-09-19 05:09:07 -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
5eba72627a
[jsb2.0] SpiderMonkey debugger works. Adds ScriptEngine::enableDebugger, mainLoopUpdate interfaces.
2017-09-07 18:19:38 +08:00
James Chen
4df2b69d2f
For compatibility purpose, __errorHandler has 4 parameters, they are filePath, lineno, message, stack.
2017-09-06 16:08:16 +08:00
James Chen
ad13e5336b
Adds global variable scriptEngineType.
2017-09-06 11:11:37 +08:00
James Chen
4990aa3130
[V8, ChakraCore] Exception callback info contains location, message, stack. Location contains filePath, line number and column number.
2017-09-06 10:58:43 +08:00
James Chen
05a3f74842
[SM] Exception info contains location, message, stack. Location contains filePath, line number and column number.
2017-09-06 10:58:43 +08:00
James Chen
269f65fd85
[JSC] Exception info contains location, message, stack. Location contains filePath, line number and column number.
2017-09-06 10:58:43 +08:00
James Chen
8081cdc071
Adds setExceptionCallback for ChakraCore.
2017-09-01 16:19:15 +08:00
James Chen
510b27fab8
Adds setExceptionCallback for V8.
2017-09-01 16:10:55 +08:00
James Chen
2b112bd7a4
Adds ScriptEngine::setExceptionCallback for Spidermonkey, and fixes a memory leak after using JS_EncodeStringToUTF8.
2017-09-01 15:24:43 +08:00
James Chen
cd77d4b567
Updates log format for jsc.
2017-09-01 15:23:43 +08:00
James Chen
3af1a24682
Adds setExceptionCallback for JSC.
2017-09-01 15:10:48 +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
f21fea4344
executeScriptBuffer -> evalString, executeScriptFile -> runScript.
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
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
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
7e4016c83c
toStringForce integer fix.
2017-08-23 16:27:52 +08:00
James Chen
2f38e872c1
Action binding bug fix.
2017-08-22 16:50:41 +08:00
James Chen
7268053a4f
SpiderMonkey bytecode works again.
2017-08-21 18:10:10 +08:00
James Chen
41eae72bd8
Adds global variable 'window' for jsc and cleanup.
2017-08-18 16:03:04 +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
0fe0580b5f
deletes unused files.
2017-08-11 11:42:13 +08:00
James Chen
e13c1ffed3
fix warning generated by vs2015.
2017-08-11 09:47:49 +08:00
James Chen
404d5571e3
disable v8 inspector.
2017-08-10 17:35:32 +08:00
James Chen
5359a866c8
Adds comments for set_host_name.
2017-08-10 16:57:15 +08:00
James Chen
2d770fcd8d
fprintf -> LOGD
2017-08-10 16:54:55 +08:00
James Chen
00fc1596a0
updates debugger prompt.
2017-08-10 11:20:45 +08:00
James Chen
f56713382d
Adds v8 README.md for node inspector version
2017-08-10 11:14:35 +08:00