0ad/source/scriptinterface
Itms 9b794593db SpiderMonkey 38 upgrade: 32/35
JS_GetStringCharsAndLength was removed, use
JS_Get{Latin1,TwoByte}StringCharsAndLength instead.

Actually handle strings in both the Latin1 and TwoByte cases since we
need to.
This saves some space when serializing and also when running as they are
stored that way in the vm.
Also handle the error case.

Patch by leper.
For more information:
https://blog.mozilla.org/javascript/2014/07/21/slimmer-and-faster-javascript-strings-in-firefox/
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1037869

This was SVN commit r18686.
2016-09-02 16:51:09 +00:00
..
tests SpiderMonkey 38 upgrade: 29/35 2016-09-02 16:47:33 +00:00
third_party SpiderMonkey 38 upgrade: 08/35 2016-09-02 16:22:42 +00:00
NativeWrapperDecls.h Work around clang bug to fix compiling. 2016-01-24 10:34:38 +00:00
NativeWrapperDefns.h SpiderMonkey 38 upgrade: 07/35 2016-09-02 16:21:03 +00:00
ScriptConversions.cpp SpiderMonkey 38 upgrade: 32/35 2016-09-02 16:51:09 +00:00
ScriptEngine.h Properly shut down SpiderMonkey using JS_ShutDown. 2016-08-06 15:41:59 +00:00
ScriptExtraHeaders.h SpiderMonkey 38 upgrade: 09/35 2016-09-02 16:23:44 +00:00
ScriptInterface.cpp SpiderMonkey 38 upgrade: 32/35 2016-09-02 16:51:09 +00:00
ScriptInterface.h SpiderMonkey 38 upgrade: 07/35 2016-09-02 16:21:03 +00:00
ScriptRuntime.cpp SpiderMonkey 38 upgrade: 31/35 2016-09-02 16:50:07 +00:00
ScriptRuntime.h SpiderMonkey 38 upgrade: 31/35 2016-09-02 16:50:07 +00:00
ScriptStats.cpp Use in-place construction. 2015-07-29 23:44:17 +00:00
ScriptStats.h Add JS memory usage to profiler. 2010-08-02 19:23:58 +00:00
ScriptTypes.h SpiderMonkey 38 upgrade: 06/35 2016-09-02 16:19:31 +00:00
ScriptVal.h Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00