summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/BytecodeEmitter.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/frontend/BytecodeEmitter.h')
-rw-r--r--js/src/frontend/BytecodeEmitter.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/src/frontend/BytecodeEmitter.h b/js/src/frontend/BytecodeEmitter.h
index d59768f..3a4ecbc 100644
--- a/js/src/frontend/BytecodeEmitter.h
+++ b/js/src/frontend/BytecodeEmitter.h
@@ -104,6 +104,9 @@ struct CGYieldAndAwaitOffsetList {
void finish(YieldAndAwaitOffsetArray& array, uint32_t prologueLength);
};
+static constexpr size_t MaxBytecodeLength = INT32_MAX;
+static constexpr size_t MaxSrcNotesLength = INT32_MAX;
+
// Have a few inline elements, so as to avoid heap allocation for tiny
// sequences. See bug 1390526.
typedef Vector<jsbytecode, 64> BytecodeVector;