diff --git a/js/src/frontend/BytecodeEmitter.cpp b/js/src/frontend/BytecodeEmitter.cpp index 39c17d9be1b..712388b507e 100644 --- a/js/src/frontend/BytecodeEmitter.cpp +++ b/js/src/frontend/BytecodeEmitter.cpp @@ -5797,7 +5797,6 @@ EmitObject(JSContext *cx, BytecodeEmitter *bce, ParseNode *pn) return false; } - unsigned methodInits = 0, slowMethodInits = 0; for (ParseNode *pn2 = pn->pn_head; pn2; pn2 = pn2->pn_next) { /* Emit an index for t[2] for later consumption by JSOP_INITELEM. */ ParseNode *pn3 = pn2->pn_left; diff --git a/js/src/gc/Statistics.cpp b/js/src/gc/Statistics.cpp index ed8750cf078..2413a06591f 100644 --- a/js/src/gc/Statistics.cpp +++ b/js/src/gc/Statistics.cpp @@ -51,6 +51,8 @@ #include "gc/Statistics.h" +#include "gc/Barrier-inl.h" + namespace js { namespace gcstats {