Bug 1769451 - Part 1: Fix missing include in js/public. r=sfink

Differential Revision: https://phabricator.services.mozilla.com/D146611
This commit is contained in:
Tooru Fujisawa 2022-06-10 19:19:51 +00:00
parent 8c499b6eb5
commit fe813c9eaf
5 changed files with 22 additions and 7 deletions

View File

@ -12,6 +12,10 @@
#ifndef js_HelperThreadAPI_h
#define js_HelperThreadAPI_h
#include <stddef.h> // size_t
#include "jstypes.h" // JS_PUBLIC_API
namespace JS {
// Argument passed to the task callback to indicate whether we're invoking it

View File

@ -8,9 +8,13 @@
#ifndef js_TraceLoggerAPI_h
#define js_TraceLoggerAPI_h
#include "jstypes.h"
#include <stddef.h> // size_t
#include <stdint.h> // int32_t
#include "js/TypeDecls.h"
#include "jstypes.h" // JS_TRACE_LOGGING, JS_PUBLIC_API
#include "js/TypeDecls.h" // JSContext
#include "js/Utility.h" // js_pod_malloc
namespace mozilla {
class JSONWriteFunc;

View File

@ -17,10 +17,9 @@
#ifndef js_TypeDecls_h
#define js_TypeDecls_h
#include <stddef.h>
#include <stdint.h>
#include <stdint.h> // uint8_t
#include "jstypes.h"
#include "jstypes.h" // JS_PUBLIC_API
typedef uint8_t jsbytecode;

View File

@ -9,8 +9,13 @@
#ifndef js_Zone_h
#define js_Zone_h
#include "jspubtd.h"
#include "js/Context.h"
#include "mozilla/MemoryReporting.h" // mozilla::MallocSizeOf
#include <stddef.h> // size_t
#include "jstypes.h" // JS_PUBLIC_API
#include "js/RootingAPI.h" // JS::Handle
#include "js/TypeDecls.h" // JSContext, JSObject, jsid, JS::Compartment, JS::GCContext, JS::Value, JS::Zone
// [SMDOC] Nested GC Data Structures (Compartments and Zones)
//

View File

@ -7,6 +7,9 @@
#ifndef js_friend_PerformanceHint_h
#define js_friend_PerformanceHint_h
#include "jstypes.h" // JS_PUBLIC_API
#include "js/TypeDecls.h" // JSContext
namespace js {
namespace gc {