Bug 1415697 - Move a using-declaration in Assembler-shared.h to global scope. r=bbouvier draft
authorBotond Ballo <botond@mozilla.com>
Fri, 10 Nov 2017 00:26:11 -0500
changeset 696404 f3b03113b42fcca61a79df77cb0721b103346ace
parent 696402 35d191484fd9e7f450ff55dce072401615929df4
child 739851 02d66bde44e4504f5d33b9c35489576d9b5f4ff8
push id88706
push userbballo@mozilla.com
push dateFri, 10 Nov 2017 16:50:05 +0000
reviewersbbouvier
bugs1415697
milestone58.0a1
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
js/src/jit/shared/Assembler-shared.h
--- 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");