Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 1 | patch from https://bugzilla.mozilla.org/show_bug.cgi?id=1426865 |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame] | 2 | |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame] | 3 | Upstream-Status: Submitted [https://bugzilla.mozilla.org/show_bug.cgi?id=1426865] |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame] | 5 | --- a/js/public/TypeDecls.h |
| 6 | +++ b/js/public/TypeDecls.h |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 7 | @@ -21,31 +21,32 @@ |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame] | 8 | #include <stdint.h> |
| 9 | |
| 10 | #include "js-config.h" |
| 11 | +#include "jstypes.h" |
| 12 | |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 13 | typedef uint8_t jsbytecode; |
| 14 | |
| 15 | -class JSAtom; |
| 16 | -struct JSCompartment; |
| 17 | -struct JSContext; |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame] | 18 | -class JSFunction; |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 19 | -class JSObject; |
| 20 | -struct JSRuntime; |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame] | 21 | -class JSScript; |
| 22 | -class JSString; |
| 23 | -class JSAddonId; |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 24 | -struct JSFreeOp; |
| 25 | +class JS_PUBLIC_API JSAtom; |
| 26 | +struct JS_PUBLIC_API JSCompartment; |
| 27 | +struct JS_PUBLIC_API JSContext; |
| 28 | +class JS_PUBLIC_API JSFunction; |
| 29 | +class JS_PUBLIC_API JSObject; |
| 30 | +struct JS_PUBLIC_API JSRuntime; |
| 31 | +class JS_PUBLIC_API JSScript; |
| 32 | +class JS_PUBLIC_API JSString; |
| 33 | +class JS_PUBLIC_API JSAddonId; |
| 34 | +struct JS_PUBLIC_API JSFreeOp; |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame] | 35 | |
| 36 | -struct jsid; |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 37 | +struct JS_PUBLIC_API jsid; |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame] | 38 | |
| 39 | namespace JS { |
| 40 | |
| 41 | typedef unsigned char Latin1Char; |
| 42 | |
| 43 | -class Symbol; |
| 44 | -class Value; |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 45 | -class Realm; |
| 46 | -struct Runtime; |
| 47 | -struct Zone; |
| 48 | +class JS_PUBLIC_API Symbol; |
| 49 | +class JS_PUBLIC_API Value; |
| 50 | +class JS_PUBLIC_API Realm; |
| 51 | +struct JS_PUBLIC_API Runtime; |
| 52 | +struct JS_PUBLIC_API Zone; |
| 53 | |
| 54 | template <typename T> |
| 55 | class Handle; |