diff --git a/js/src/jit/shared/CodeGenerator-shared.cpp b/js/src/jit/shared/CodeGenerator-shared.cpp index c2b1ffdbf599..d03b4bc5bbea 100644 --- a/js/src/jit/shared/CodeGenerator-shared.cpp +++ b/js/src/jit/shared/CodeGenerator-shared.cpp @@ -206,6 +206,10 @@ void CodeGeneratorShared::addOutOfLineCode(OutOfLineCode* code, } bool CodeGeneratorShared::addNativeToBytecodeEntry(const BytecodeSite* site) { + MOZ_ASSERT(site); + MOZ_ASSERT(site->tree()); + MOZ_ASSERT(site->pc()); + // Skip the table entirely if profiling is not enabled. if (!isProfilerInstrumentationEnabled()) { return true; @@ -217,10 +221,6 @@ bool CodeGeneratorShared::addNativeToBytecodeEntry(const BytecodeSite* site) { return false; } - MOZ_ASSERT(site); - MOZ_ASSERT(site->tree()); - MOZ_ASSERT(site->pc()); - InlineScriptTree* tree = site->tree(); jsbytecode* pc = site->pc(); uint32_t nativeOffset = masm.currentOffset();