зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1598507 - Fix nonunified builds. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D54239 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
e544e8f369
Коммит
007fde0697
|
@ -4,15 +4,15 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* JS boolean interface. */
|
||||
|
||||
#ifndef builtin_Boolean_h
|
||||
#define builtin_Boolean_h
|
||||
|
||||
/*
|
||||
* JS boolean interface.
|
||||
*/
|
||||
#include "jstypes.h" // JS_PUBLIC_API
|
||||
|
||||
struct JSContext;
|
||||
class JSString;
|
||||
struct JS_PUBLIC_API JSContext;
|
||||
class JS_PUBLIC_API JSString;
|
||||
|
||||
namespace js {
|
||||
|
||||
|
|
|
@ -28,10 +28,10 @@
|
|||
#include "js/Utility.h"
|
||||
#include "js/Vector.h"
|
||||
|
||||
struct JSContext;
|
||||
struct JS_PUBLIC_API JSContext;
|
||||
class JSLinearString;
|
||||
class JSString;
|
||||
class JSTracer;
|
||||
class JS_PUBLIC_API JSString;
|
||||
class JS_PUBLIC_API JSTracer;
|
||||
|
||||
namespace js {
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
#include "mozilla/Assertions.h" // MOZ_ASSERT
|
||||
#include "mozilla/Attributes.h" // MOZ_MUST_USE
|
||||
|
||||
#include "jstypes.h" // JS_PUBLIC_API
|
||||
|
||||
#include "builtin/Promise.h" // js::PromiseObject
|
||||
#include "builtin/streams/WritableStreamDefaultWriter.h" // js::WritableStreamDefaultWriter
|
||||
#include "js/RootingAPI.h" // JS::Handle
|
||||
|
@ -21,7 +23,7 @@
|
|||
|
||||
#include "vm/Compartment-inl.h" // js::UnwrapInternalSlot
|
||||
|
||||
struct JSContext;
|
||||
struct JS_PUBLIC_API JSContext;
|
||||
|
||||
namespace js {
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include "js/Vector.h" // Vector
|
||||
|
||||
class JSAtom;
|
||||
struct JSContext;
|
||||
struct JS_PUBLIC_API JSContext;
|
||||
|
||||
namespace js {
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include <stdint.h> // uint32_t
|
||||
|
||||
#include "jsapi.h" // JS_EnsureLinearString, JS_GC, JS_Get{Latin1,TwoByte}LinearStringChars, JS_GetStringLength, JS_ValueToFunction
|
||||
#include "jstypes.h" // JS_PUBLIC_API
|
||||
|
||||
#include "js/CompilationAndEvaluation.h" // JS::Evaluate{,DontInflate}
|
||||
#include "js/CompileOptions.h" // JS::CompileOptions
|
||||
|
@ -33,8 +34,8 @@
|
|||
using mozilla::ArrayLength;
|
||||
using mozilla::Utf8Unit;
|
||||
|
||||
struct JSContext;
|
||||
class JSString;
|
||||
struct JS_PUBLIC_API JSContext;
|
||||
class JS_PUBLIC_API JSString;
|
||||
|
||||
template <typename Unit>
|
||||
using Source = js::UniquePtr<Unit[], JS::FreePolicy>;
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
#include "mozilla/MemoryReporting.h"
|
||||
|
||||
#include "jstypes.h" // JS_PUBLIC_API
|
||||
|
||||
#include "ds/TraceableFifo.h"
|
||||
#include "gc/Memory.h"
|
||||
#include "js/CharacterEncoding.h"
|
||||
|
@ -27,6 +29,8 @@
|
|||
#include "vm/MallocProvider.h"
|
||||
#include "vm/Runtime.h"
|
||||
|
||||
struct JS_PUBLIC_API JSContext;
|
||||
|
||||
struct DtoaState;
|
||||
|
||||
namespace js {
|
||||
|
@ -147,8 +151,8 @@ enum class InterruptReason : uint32_t {
|
|||
* A JSContext encapsulates the thread local state used when using the JS
|
||||
* runtime.
|
||||
*/
|
||||
struct JSContext : public JS::RootingContext,
|
||||
public js::MallocProvider<JSContext> {
|
||||
struct JS_PUBLIC_API JSContext : public JS::RootingContext,
|
||||
public js::MallocProvider<JSContext> {
|
||||
JSContext(JSRuntime* runtime, const JS::ContextOptions& options);
|
||||
~JSContext();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче