diff options
author | FranklinDM <mrmineshafter17@gmail.com> | 2022-04-28 14:49:07 +0800 |
---|---|---|
committer | FranklinDM <mrmineshafter17@gmail.com> | 2022-05-04 14:57:18 +0800 |
commit | fa72aef363d3e8b825024d389f3f3bf52ee38c07 (patch) | |
tree | 45b5034fd12c942bd957008fbb1c3eaa88959cb9 /js | |
parent | 2ed7526705b546267f4e5fbf157a02c812eb935f (diff) | |
download | uxp-fa72aef363d3e8b825024d389f3f3bf52ee38c07.tar.gz |
Issue #1658 - Part 5: Add and initialize TDZ check to optional chaining emitter
Partially based on: https://bugzilla.mozilla.org/show_bug.cgi?id=1685260
Diffstat (limited to 'js')
-rw-r--r-- | js/src/frontend/BytecodeEmitter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/src/frontend/BytecodeEmitter.cpp b/js/src/frontend/BytecodeEmitter.cpp index 82e248182b..0c6b1c9263 100644 --- a/js/src/frontend/BytecodeEmitter.cpp +++ b/js/src/frontend/BytecodeEmitter.cpp @@ -1995,6 +1995,8 @@ class MOZ_RAII OptionalEmitter private: BytecodeEmitter* bce_; + BytecodeEmitter::TDZCheckCache tdzCache_; + // Jump target for short circuiting code, which has null or undefined values. JumpList jumpShortCircuit_; @@ -12143,6 +12145,7 @@ BytecodeEmitter::copySrcNotes(jssrcnote* destination, uint32_t nsrcnotes) OptionalEmitter::OptionalEmitter(BytecodeEmitter* bce, int32_t initialDepth) : bce_(bce), + tdzCache_(bce), initialDepth_(initialDepth) { } |