Bug 1401675 - Baldr: remove some unneeded header dependencies (r=lth)

--HG--
extra : rebase_source : 0e3624ef80dccf41b57545f89539b451dc269dcf
This commit is contained in:
Luke Wagner 2019-02-19 14:28:35 -06:00
Родитель df3ea1382b
Коммит 72d2424af4
7 изменённых файлов: 15 добавлений и 19 удалений

Просмотреть файл

@ -19,6 +19,7 @@
#ifndef wasm_code_h
#define wasm_code_h
#include "jit/shared/Assembler-shared.h"
#include "js/HashTable.h"
#include "threading/ExclusiveData.h"
#include "vm/MutexIDs.h"
@ -292,11 +293,6 @@ class FuncImport {
typedef Vector<FuncImport, 0, SystemAllocPolicy> FuncImportVector;
// A wasm module can either use no memory, a unshared memory (ArrayBuffer) or
// shared memory (SharedArrayBuffer).
enum class MemoryUsage { None = false, Unshared = 1, Shared = 2 };
// Metadata holds all the data that is needed to describe compiled wasm code
// at runtime (as opposed to data that is only used to statically link or
// instantiate a module).

Просмотреть файл

@ -1212,9 +1212,9 @@ bool Instance::init(JSContext* cx, const DataSegmentVector& dataSegments,
}
JitRuntime* jitRuntime = cx->runtime()->jitRuntime();
jsJitArgsRectifier_ = jitRuntime->getArgumentsRectifier();
jsJitExceptionHandler_ = jitRuntime->getExceptionTail();
preBarrierCode_ = jitRuntime->preBarrier(MIRType::Object);
jsJitArgsRectifier_ = jitRuntime->getArgumentsRectifier().value;
jsJitExceptionHandler_ = jitRuntime->getExceptionTail().value;
preBarrierCode_ = jitRuntime->preBarrier(MIRType::Object).value;
if (!passiveDataSegments_.resize(dataSegments.length())) {
return false;

Просмотреть файл

@ -21,7 +21,6 @@
#include "builtin/TypedObject.h"
#include "gc/Barrier.h"
#include "jit/shared/Assembler-shared.h"
#include "vm/SharedMem.h"
#include "wasm/WasmCode.h"
#include "wasm/WasmDebug.h"
@ -45,9 +44,9 @@ namespace wasm {
class Instance {
JS::Realm* const realm_;
ReadBarrieredWasmInstanceObject object_;
jit::TrampolinePtr jsJitArgsRectifier_;
jit::TrampolinePtr jsJitExceptionHandler_;
jit::TrampolinePtr preBarrierCode_;
void* jsJitArgsRectifier_;
void* jsJitExceptionHandler_;
void* preBarrierCode_;
const SharedCode code_;
const UniqueTlsData tlsData_;
GCPtrWasmMemoryObject memory_;

Просмотреть файл

@ -19,14 +19,10 @@
#ifndef wasm_module_h
#define wasm_module_h
#include "jit/shared/Assembler-shared.h"
#include "js/TypeDecls.h"
#include "threading/ConditionVariable.h"
#include "threading/Mutex.h"
#include "vm/MutexIDs.h"
#include "js/BuildId.h"
#include "wasm/WasmCode.h"
#include "wasm/WasmTable.h"
#include "wasm/WasmValidate.h"
namespace js {
namespace wasm {

Просмотреть файл

@ -23,6 +23,7 @@
#include "mozilla/ThreadLocal.h"
#include "threading/Thread.h"
#include "vm/Realm.h"
#include "vm/Runtime.h"
#include "wasm/WasmInstance.h"

Просмотреть файл

@ -624,6 +624,11 @@ enum class CompileMode { Once, Tier1, Tier2 };
enum class DebugEnabled { False, True };
// A wasm module can either use no memory, a unshared memory (ArrayBuffer) or
// shared memory (SharedArrayBuffer).
enum class MemoryUsage { None = false, Unshared = 1, Shared = 2 };
// Iterator over tiers present in a tiered data structure.
class Tiers {

Просмотреть файл

@ -21,7 +21,6 @@
#include "mozilla/TypeTraits.h"
#include "wasm/WasmCode.h"
#include "wasm/WasmTypes.h"
namespace js {