Bug 1415697 - Move a using-declaration in Assembler-shared.h to global scope. r=bbouvier
This works around a clang compiler error on clang that is likely caused
by a clang bug.
MozReview-Commit-ID: 5fnQG2r3gYL
--- a/js/src/jit/shared/Assembler-shared.h
+++ b/js/src/jit/shared/Assembler-shared.h
@@ -27,21 +27,21 @@
#endif
#if defined(JS_CODEGEN_X64) || defined(JS_CODEGEN_ARM) || defined(JS_CODEGEN_ARM64)
// JS_SMALL_BRANCH means the range on a branch instruction
// is smaller than the whole address space
# define JS_SMALL_BRANCH
#endif
+using mozilla::CheckedInt;
+
namespace js {
namespace jit {
-using mozilla::CheckedInt;
-
namespace Disassembler {
class HeapAccess;
} // namespace Disassembler
static const uint32_t Simd128DataSize = 4 * sizeof(int32_t);
static_assert(Simd128DataSize == 4 * sizeof(int32_t), "SIMD data should be able to contain int32x4");
static_assert(Simd128DataSize == 4 * sizeof(float), "SIMD data should be able to contain float32x4");
static_assert(Simd128DataSize == 2 * sizeof(double), "SIMD data should be able to contain float64x2");