Commit Graph

23 Commits

Author SHA1 Message Date
James Chen de091e7369 se::Object::getTypedArrayData fix for jsc and v8. Need to consider byteOffset of ArrayBuffer stored in TypedArray. (#989) 2017-11-16 10:39:33 +08:00
James Chen a55cb9b0d3 Adds New API se::Object::createTypedArray and deprecates se::Object::createUint8TypedArray. (#974)
* Adds New API se::Object::createTypedArray and deprecates se::Object::createUint8TypedArray.

* Fixes mistake while cherry-pick.
2017-11-09 17:06:13 +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
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
James Chen e1e3200366 Uses Higher performance of checking object instance of which class. 2017-10-25 16:30:52 +08:00
James Chen 843b5c9712 jswrapper works for iOS 8.0 . 2017-10-25 15:54:57 +08:00
James Chen 4869077bcc isArrayBuffer and isTypedArray hack. 2017-10-24 14:44:40 +08:00
James Chen 1d7ce13590 JSC API for TypedArray and ArrayBuffer is supported from macOS 10.12, iOS 10. Try to hack it and make it work on lower version. 2017-10-24 11:43:33 +08:00
James Chen 01b4553cee Reverts switch case in Class constructor. 2017-10-11 09:22:10 +08:00
James Chen 9fb3358463 Reverts ...args 2017-10-10 18:02:43 +08:00
James Chen 2f38e872c1 Action binding bug fix. 2017-08-22 16:50:41 +08:00
James Chen 259bbbd6b2 updates. 2017-06-16 16:32:24 +08:00
pandamicro 32d6e03478 Remove all arguments usage in JSB 2017-03-10 16:57:04 +08:00
pandamicro af7661c0ce Remove useless jsb polyfills to reduce memory usage 2017-02-24 18:08:35 +08:00
pandamicro 1ada1f3351 Small fixes 2017-01-22 18:59:49 +08:00
pandamicro ba33766602 Upgrade scripting/js-bindings/script to v3.13 2016-08-25 17:25:51 +08:00
minggo a28fbe5222 fix wrong behavior of 'cc.isObject' function for undefined and null 2016-07-18 16:55:56 +08:00
Wenhai Lin 134ea5f318 Refine the JS implementations of CocoStudio parser 2016-04-06 23:38:36 +08:00
Wenhai Lin a6dbf31dcf cocos 2d lite version 2016-03-29 17:55:48 +08:00