summaryrefslogtreecommitdiff
path: root/js/src/vm/BigIntType.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/vm/BigIntType.h')
-rw-r--r--js/src/vm/BigIntType.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/src/vm/BigIntType.h b/js/src/vm/BigIntType.h
index cfc3489934..0ccba99634 100644
--- a/js/src/vm/BigIntType.h
+++ b/js/src/vm/BigIntType.h
@@ -80,6 +80,11 @@ class BigInt final : public js::gc::TenuredCell {
bool isZero() const { return digitLength() == 0; }
bool isNegative() const { return lengthSignAndReservedBits_ & SignBit; }
+ // Offset for direct access from JIT code.
+ static constexpr size_t offsetOfLengthSignAndReservedBits() {
+ return offsetof(BigInt, lengthSignAndReservedBits_);
+ }
+
void initializeDigitsToZero();
void traceChildren(JSTracer* trc);