diff --git a/js/src/jit/CodeGenerator.cpp b/js/src/jit/CodeGenerator.cpp index 35d027bcc8..fb5da943fe 100644 --- a/js/src/jit/CodeGenerator.cpp +++ b/js/src/jit/CodeGenerator.cpp @@ -7703,7 +7703,7 @@ JitCompartment::generateStringConcatStub(JSContext* cx) // lhs and rhs flags, so we just have to clear the other flags and set // NON_ATOM_BIT to get our rope flags (Latin1 if both lhs and rhs are // Latin1). - static_assert(JSString::INIT_ROPE_FLAGS == JSString::NON_ATOM_BIT, + static_assert(JSString::ROPE_FLAGS == JSString::NON_ATOM_BIT, "Rope type flags must be NON_ATOM_BIT only"); masm.and32(Imm32(JSString::LATIN1_CHARS_BIT), temp1); masm.or32(Imm32(JSString::NON_ATOM_BIT), temp1); diff --git a/js/src/jsgcinlines.h b/js/src/jsgcinlines.h index 955517fc7c..6b63db7139 100644 --- a/js/src/jsgcinlines.h +++ b/js/src/jsgcinlines.h @@ -9,6 +9,7 @@ #include "mozilla/DebugOnly.h" #include "mozilla/Maybe.h" +#include "gc/RelocationOverlay.h" #include "gc/GCTrace.h" #include "gc/Zone.h"