зеркало из https://github.com/mozilla/gecko-dev.git
Bug 977338 - Remove AtomicOperations-inl.h, r=lth
--HG-- extra : commitid : DbOnIWRGaAp
This commit is contained in:
Родитель
2bba95670b
Коммит
192d9479c1
|
@ -26,8 +26,6 @@
|
|||
#include "jit/Disassembler.h"
|
||||
#include "vm/Runtime.h"
|
||||
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
|
||||
using namespace js;
|
||||
using namespace js::jit;
|
||||
|
||||
|
|
|
@ -51,7 +51,6 @@
|
|||
|
||||
#include "frontend/ParseNode-inl.h"
|
||||
#include "frontend/Parser-inl.h"
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
#include "jit/MacroAssembler-inl.h"
|
||||
|
||||
using namespace js;
|
||||
|
|
|
@ -63,7 +63,6 @@
|
|||
#include "vm/TypedArrayObject.h"
|
||||
|
||||
#include "jsobjinlines.h"
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
|
||||
using namespace js;
|
||||
|
||||
|
|
|
@ -1,41 +0,0 @@
|
|||
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
* vim: set ts=8 sts=4 et sw=4 tw=99:
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* 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/. */
|
||||
|
||||
#ifndef jit_AtomicOperations_inl_h
|
||||
#define jit_AtomicOperations_inl_h
|
||||
|
||||
#if defined(JS_CODEGEN_ARM)
|
||||
# include "jit/arm/AtomicOperations-arm.h"
|
||||
#elif defined(JS_CODEGEN_ARM64)
|
||||
# include "jit/arm64/AtomicOperations-arm64.h"
|
||||
#elif defined(JS_CODEGEN_MIPS32)
|
||||
# include "jit/mips-shared/AtomicOperations-mips-shared.h"
|
||||
#elif defined(JS_CODEGEN_NONE)
|
||||
# include "jit/none/AtomicOperations-none.h"
|
||||
#elif defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64)
|
||||
# include "jit/x86-shared/AtomicOperations-x86-shared.h"
|
||||
#else
|
||||
# error "Atomic operations must be defined for this platform"
|
||||
#endif
|
||||
|
||||
inline bool
|
||||
js::jit::AtomicOperations::isLockfree(int32_t size)
|
||||
{
|
||||
// Keep this in sync with visitAtomicIsLockFree() in jit/CodeGenerator.cpp.
|
||||
|
||||
switch (size) {
|
||||
case 1:
|
||||
case 2:
|
||||
case 4:
|
||||
return true;
|
||||
case 8:
|
||||
return AtomicOperations::isLockfree8();
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
#endif // jit_AtomicOperations_inl_h
|
|
@ -7,6 +7,8 @@
|
|||
#ifndef jit_AtomicOperations_h
|
||||
#define jit_AtomicOperations_h
|
||||
|
||||
#include "mozilla/Types.h"
|
||||
|
||||
#include "vm/SharedMem.h"
|
||||
|
||||
namespace js {
|
||||
|
@ -55,9 +57,6 @@ class RegionLock;
|
|||
* a "relaxed atomic" access: it can read or write garbage if there's
|
||||
* a race.
|
||||
*
|
||||
* To make use of the functions you generally have to include
|
||||
* AtomicOperations-inl.h.
|
||||
*
|
||||
*
|
||||
* Implementation notes.
|
||||
*
|
||||
|
@ -275,7 +274,38 @@ class RegionLock
|
|||
uint32_t spinlock;
|
||||
};
|
||||
|
||||
inline bool
|
||||
AtomicOperations::isLockfree(int32_t size)
|
||||
{
|
||||
// Keep this in sync with visitAtomicIsLockFree() in jit/CodeGenerator.cpp.
|
||||
|
||||
switch (size) {
|
||||
case 1:
|
||||
case 2:
|
||||
case 4:
|
||||
return true;
|
||||
case 8:
|
||||
return AtomicOperations::isLockfree8();
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace jit
|
||||
} // namespace js
|
||||
|
||||
#if defined(JS_CODEGEN_ARM)
|
||||
# include "jit/arm/AtomicOperations-arm.h"
|
||||
#elif defined(JS_CODEGEN_ARM64)
|
||||
# include "jit/arm64/AtomicOperations-arm64.h"
|
||||
#elif defined(JS_CODEGEN_MIPS32)
|
||||
# include "jit/mips-shared/AtomicOperations-mips-shared.h"
|
||||
#elif defined(JS_CODEGEN_NONE)
|
||||
# include "jit/none/AtomicOperations-none.h"
|
||||
#elif defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64)
|
||||
# include "jit/x86-shared/AtomicOperations-x86-shared.h"
|
||||
#else
|
||||
# error "Atomic operations must be defined for this platform"
|
||||
#endif
|
||||
|
||||
#endif // jit_AtomicOperations_h
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#include "jsboolinlines.h"
|
||||
#include "jsscriptinlines.h"
|
||||
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
#include "jit/JitFrames-inl.h"
|
||||
#include "jit/MacroAssembler-inl.h"
|
||||
#include "jit/shared/Lowering-shared-inl.h"
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
|
||||
#include "jsboolinlines.h"
|
||||
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
#include "jit/MacroAssembler-inl.h"
|
||||
#include "jit/shared/CodeGenerator-shared-inl.h"
|
||||
#include "jit/shared/Lowering-shared-inl.h"
|
||||
|
|
|
@ -28,8 +28,6 @@
|
|||
#include "jsobjinlines.h"
|
||||
#include "jsscriptinlines.h"
|
||||
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
|
||||
using namespace js;
|
||||
using namespace js::jit;
|
||||
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
|
||||
#include "jsopcodeinlines.h"
|
||||
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
|
||||
using namespace js;
|
||||
using namespace js::jit;
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include "jit/arm/MacroAssembler-arm.h"
|
||||
#include "jit/ExecutableAllocator.h"
|
||||
#include "jit/JitCompartment.h"
|
||||
#include "jit/MacroAssembler.h"
|
||||
|
||||
using namespace js;
|
||||
using namespace js::jit;
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#define jit_arm_AtomicOperations_arm_h
|
||||
|
||||
#include "jit/arm/Architecture-arm.h"
|
||||
#include "jit/AtomicOperations.h"
|
||||
|
||||
#if defined(__clang__) || defined(__GNUC__)
|
||||
|
||||
|
|
|
@ -10,6 +10,11 @@
|
|||
|
||||
#ifdef JS_DISASM_ARM
|
||||
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/Types.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
namespace js {
|
||||
namespace jit {
|
||||
namespace disasm {
|
||||
|
|
|
@ -10,6 +10,11 @@
|
|||
|
||||
#ifdef JS_DISASM_ARM
|
||||
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/Types.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
namespace js {
|
||||
namespace jit {
|
||||
namespace disasm {
|
||||
|
|
|
@ -9,8 +9,10 @@
|
|||
#ifndef jit_arm64_AtomicOperations_arm64_h
|
||||
#define jit_arm64_AtomicOperations_arm64_h
|
||||
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/Types.h"
|
||||
|
||||
#include "jit/arm64/Architecture-arm64.h"
|
||||
#include "jit/AtomicOperations.h"
|
||||
|
||||
inline bool
|
||||
js::jit::AtomicOperations::isLockfree8()
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
#ifndef jit_mips_shared_AtomicOperations_mips_shared_h
|
||||
#define jit_mips_shared_AtomicOperations_mips_shared_h
|
||||
|
||||
#include "jit/AtomicOperations.h"
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/Types.h"
|
||||
|
||||
#if defined(__clang__) || defined(__GNUC__)
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#ifndef jit_none_AtomicOperations_none_h
|
||||
#define jit_none_AtomicOperations_none_h
|
||||
|
||||
#include "jit/AtomicOperations.h"
|
||||
#include "mozilla/Assertions.h"
|
||||
|
||||
// A "none" build is never run (ref IRC discussion with h4writer) and
|
||||
// all functions here can therefore MOZ_CRASH, even if they are
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
#ifndef jit_shared_AtomicOperations_x86_shared_h
|
||||
#define jit_shared_AtomicOperations_x86_shared_h
|
||||
|
||||
#include "jit/AtomicOperations.h"
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/Types.h"
|
||||
|
||||
// Lock-freedom on x86 and x64:
|
||||
//
|
||||
|
|
|
@ -91,8 +91,6 @@
|
|||
#include "jsfuninlines.h"
|
||||
#include "jsscriptinlines.h"
|
||||
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
|
||||
#include "vm/Interpreter-inl.h"
|
||||
#include "vm/NativeObject-inl.h"
|
||||
#include "vm/String-inl.h"
|
||||
|
|
|
@ -38,8 +38,6 @@
|
|||
|
||||
#include "jsatominlines.h"
|
||||
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
|
||||
#include "vm/ArgumentsObject-inl.h"
|
||||
#include "vm/ArrayObject-inl.h"
|
||||
#include "vm/Interpreter-inl.h"
|
||||
|
|
|
@ -35,8 +35,6 @@
|
|||
|
||||
#include "jsscriptinlines.h"
|
||||
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
|
||||
#include "vm/NativeObject-inl.h"
|
||||
#include "vm/Stack-inl.h"
|
||||
#include "vm/String-inl.h"
|
||||
|
|
|
@ -59,8 +59,6 @@
|
|||
#include "jscntxtinlines.h"
|
||||
#include "jscompartmentinlines.h"
|
||||
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
|
||||
#include "vm/ArrayObject-inl.h"
|
||||
#include "vm/BooleanObject-inl.h"
|
||||
#include "vm/Interpreter-inl.h"
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#include "jscompartmentinlines.h"
|
||||
#include "jsgcinlines.h"
|
||||
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
#include "vm/TypeInference-inl.h"
|
||||
|
||||
namespace js {
|
||||
|
|
|
@ -48,7 +48,6 @@
|
|||
#include "jsfuninlines.h"
|
||||
#include "jsscriptinlines.h"
|
||||
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
#include "jit/JitFrames-inl.h"
|
||||
#include "vm/Debugger-inl.h"
|
||||
#include "vm/NativeObject-inl.h"
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#include "jsobjinlines.h"
|
||||
|
||||
#include "gc/Nursery-inl.h"
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
#include "vm/ArrayObject-inl.h"
|
||||
#include "vm/ScopeObject-inl.h"
|
||||
#include "vm/Shape-inl.h"
|
||||
|
|
|
@ -40,8 +40,6 @@
|
|||
#include "jsfuninlines.h"
|
||||
#include "jsscriptinlines.h"
|
||||
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
|
||||
#include "vm/BooleanObject-inl.h"
|
||||
#include "vm/NativeObject-inl.h"
|
||||
#include "vm/NumberObject-inl.h"
|
||||
|
|
|
@ -28,8 +28,6 @@
|
|||
|
||||
#include "jsobjinlines.h"
|
||||
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
|
||||
using namespace js;
|
||||
|
||||
static inline void*
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
#include "jsatominlines.h"
|
||||
#include "jsobjinlines.h"
|
||||
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
#include "vm/Shape-inl.h"
|
||||
|
||||
using namespace js;
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
|
||||
#include "jsatominlines.h"
|
||||
|
||||
#include "jit/AtomicOperations-inl.h"
|
||||
#include "vm/NativeObject-inl.h"
|
||||
#include "vm/Shape-inl.h"
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче