This repository has been archived by the owner on Dec 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 156
Migrating to v21
Michael Boccara edited this page Feb 12, 2014
·
8 revisions
Changes needed to migrate to SpiderMonkey v21
// Old Way
JS_EncodeStringToBuffer(jstr, s, len);
// New Way
JS_EncodeStringToBuffer(cx, jstr, s, len);
JSGCRootType
is no longer present. No impact so far in the code, or API
SpiderMonkey uses the Firefox building system, so it was needed to add the following directories in order to make it compile correctly:
- /build
- /config
- /python
- /testing
Adds build-ios, build-osx, build-android and build-win32 scripts
- Build scripts: https://github.com/ricardoquesada/Spidermonkey/commit/c65119eb3c7deab33acfa53408f00434ac597529
Adds iOS options
- configure.in: https://github.com/ricardoquesada/Spidermonkey/commit/1c0b44d570647b5070294d515c4995d937c60a1b
- configure: https://github.com/ricardoquesada/Spidermonkey/commit/4666fae3bf343e6e9da0c2b6b209479e1cf80adc
- aclocal.m4: https://github.com/ricardoquesada/Spidermonkey/commit/be62eac24b90a1c09667bcfe6260114f74a21dec
- ios.m4: https://github.com/ricardoquesada/Spidermonkey/commit/03233979ad5eb9be600bebefe1a9a602aa4debca
Needed to compile Android
- Android.mk: https://github.com/ricardoquesada/Spidermonkey/commit/047d305ceddc22938dbe446826fc8cbd869c6a31
Disables JIT on debug.
- Logging.h: https://github.com/ricardoquesada/Spidermonkey/commit/192e0aeab7569903acc0dadc711298c20c7be5d9
Disables ARM assembly optimizations when using clang
- NumericConversions.h: https://github.com/ricardoquesada/Spidermonkey/commit/1bc3bc2baf4d47a5a351f8139526ee01b05ee06a
Includes inlines. Needed for i386 Simulator. Otherwise it won't link.
Disables "DEBUG" class id in order to have ABI compatibility between DEBUG and RELEASE builds
- jspubtd.h: https://github.com/ricardoquesada/Spidermonkey/commit/2adedb08e1ed6208e2ca2f6508cb9e147d9ef47e
Disables YARR_JIT on iOS devices