Commit Graph

2447 Commits

Author SHA1 Message Date
James Chen e3dfe089ca Adds missing \n 2017-11-02 11:20:41 +08:00
James Chen 6823e113ce Merge pull request #950 from dumganhar/fix/sm-unify-jsc
Unify jsc parsing flow for SpiderMonkey.
2017-11-02 11:18:58 +08:00
James Chen 2e9c14e87a cleanup fix for v8 2017-11-02 11:13:02 +08:00
James Chen 7d0979da3c Unify jsc parsing flow for SpiderMonkey. 2017-11-02 11:12:39 +08:00
James Chen 12d8e140a7 Merge pull request #949 from dumganhar/fix/bind-func-ret
Prints ERROR log if native binding function return false.
2017-11-02 10:33:55 +08:00
James Chen a3c8ba6632 Prints ERROR log if native binding function return false. 2017-11-02 10:32:31 +08:00
Jare Guo 428dd762c2 Merge pull request #941 from dumganhar/fix/645-native-refs
Fixes performance issus in jsb.registerNativeRef and jsb.unregisterNativeRef
2017-10-27 22:39:57 +08:00
James Chen 4730002095 Uses undefined check instead of ! operator since !0 will be true and id is probably equal to 0. in jsb.unregisterNativeRef. 2017-10-27 21:43:44 +08:00
James Chen 9368814446 Don't check target exist to improve a little performance. 2017-10-27 21:28:06 +08:00
James Chen 75864862bb Uses undefined check instead of ! operator since !0 will be true and id is probably equal to 0. 2017-10-27 21:27:19 +08:00
James Chen 479de69a14 Removes unused check before delete 2017-10-27 21:12:57 +08:00
Jare Guo eba0c129c0 Merge pull request #940 from jareguo/v1.7
also download console binary in `gulp init`
2017-10-27 14:46:36 +08:00
James Chen 25bc27549b Merge pull request #942 from dumganhar/fix/remove-spidermonkey-libs-in-xcode
Removes libjs_static.a and libmozglue in cocos2d_js_bindings.xcodeproj since we're using JSC for mac & iOS.
2017-10-27 11:12:30 +08:00
James Chen f20950e7f7 Removes libjs_static.a and libmozglue in cocos2d_js_bindings.xcodeproj since we're using JSC for mac & iOS. 2017-10-27 11:10:05 +08:00
James Chen c6e1a012c1 unregisterNativeRef fix, return if targetID is null 2017-10-26 22:04:22 +08:00
James Chen 9f50c5f127 Fixes performance issus in jsb.registerNativeRef and jsb.unregisterNativeRef 2017-10-26 21:58:37 +08:00
Jare Guo c6f5c4b866 also download console binary in gulp init 2017-10-26 20:49:00 +08:00
James Chen 02ad0a1dec Merge pull request #939 from CocosRobot/update_cocosfiles_1509010056
[AUTO][ci skip]: updating cocos2dx_files.json
2017-10-26 18:17:19 +08:00
CocosRobot d55cecd4af [AUTO][ci skip]: updating cocos2dx_files.json 2017-10-26 09:27:37 +00:00
James Chen 800221ef6a Merge pull request #938 from dumganhar/v1.7
Fixes binary template compilation error on iOS and Mac.
2017-10-26 17:22:19 +08:00
James Chen e5bd546b00 Fixes binary template compilation error on iOS and Mac. 2017-10-26 17:20:44 +08:00
James Chen ea24d512b0 Update config.json 2017-10-26 16:37:19 +08:00
James Chen aa8b1bba68 Merge pull request #935 from dumganhar/v1.7
Auto binds RenderTexture::saveToFile and fix js memory leak while saveToFile.
2017-10-26 13:52:01 +08:00
James Chen 118c3783b6 Calls parent's cleanup. 2017-10-26 13:40:26 +08:00
James Chen fdd46f2718 Auto binds RenderTexture::saveToFile and fix js memory leak while saveToFile.
The callback _saveFileCallback has to be set to nullptr to release se::Value the std::function captures.
2017-10-26 12:44:06 +08:00
James Chen 873cb81a27 Adds missing file CAAgentWrapper.java (#933) 2017-10-26 10:05:08 +08:00
yinkaile 03b65b3375 optimize camera detection (#932) 2017-10-26 10:02:19 +08:00
James Chen e05915e947 Merge pull request #928 from dumganhar/v1.7
Fixes anysdk test code crash and iOS 8,9 crash issue
2017-10-25 20:02:19 +08:00
James Chen f69d1a98c9 isSupportIsArrayTestAPI -> isSupportArrayTestAPI, cache the results of isSupportXXXAPI. 2017-10-25 19:58:14 +08:00
James Chen 7e8d222087 reverts console.log binding. 2017-10-25 19:57:10 +08:00
James Chen 3d36888b97 Merge pull request #931 from CocosRobot/update_js_bindings_1508928576
[ci skip][AUTO]: updating jsbinding automatically
2017-10-25 18:51:50 +08:00
CocosRobot 5dfb7e6c36 [ci skip][AUTO]: updating jsbinding automatically 2017-10-25 10:50:51 +00:00
James Chen 88671239dd Update .travis.yml 2017-10-25 18:45:49 +08:00
James Chen 9cf5b83811 Merge pull request #930 from knoxHuang/v1.7
restore getName for fireball/issues/6505
2017-10-25 18:27:25 +08:00
knoxHuang a63e7402bc restore getName for fireball/issues/6505 2017-10-25 18:22:15 +08:00
James Chen a226766979 Fixes console.log on iOS 8 ~ 9. 2017-10-25 17:34:52 +08:00
James Chen 0af8d82b50 Corrects missuse of HandleObject in jsc/Class.cpp. 2017-10-25 16:31:27 +08:00
James Chen e1e3200366 Uses Higher performance of checking object instance of which class. 2017-10-25 16:30:52 +08:00
James Chen f4abdcb69a Don't use HandleObject for Object::createObjectWithClass 2017-10-25 16:28:48 +08:00
James Chen 843b5c9712 jswrapper works for iOS 8.0 . 2017-10-25 15:54:57 +08:00
James Chen f3f00d5b78 Registers correct function name for payForProduct. 2017-10-25 13:58:50 +08:00
James Chen 23de57afea Adds assertion in HandleObject for using native binding object in HandleObject. 2017-10-25 13:58:10 +08:00
James Chen 51d95b5732 Fixes anysdk test code crash. 2017-10-24 22:06:35 +08:00
James Chen 27a73facee Merge pull request #927 from dumganhar/jsb2.0
Updates API comments and adds license info for jswrapper
2017-10-24 16:24:13 +08:00
James Chen 53e212835b minior fix for sm/Object.cpp 2017-10-24 16:02:47 +08:00
James Chen f4fb779391 minior fix for sm/Object.cpp 2017-10-24 16:01:57 +08:00
James Chen df2c482314 Adds license info for .h/.cpp files in jswrapper. 2017-10-24 15:56:37 +08:00
James Chen f76c8f464d Updates API comments for spidermonkey and chakracore. 2017-10-24 15:56:37 +08:00
James Chen ebbf8d8567 Removes unused line 2017-10-24 15:56:37 +08:00
James Chen 2d4b0bfd9b Updates API comments for v8. 2017-10-24 15:56:37 +08:00