Commit 028350f2 authored by André Bargull's avatar André Bargull
Browse files

Bug 1685260: Add TDZCheckCache. r=yulia, a=dveditz

Differential Revision: https://phabricator.services.mozilla.com/D100883
parent 04b0fb9f
......@@ -16,7 +16,7 @@ using namespace js;
using namespace js::frontend;
OptionalEmitter::OptionalEmitter(BytecodeEmitter* bce, int32_t initialDepth)
: bce_(bce), initialDepth_(initialDepth) {}
: bce_(bce), tdzCache_(bce), initialDepth_(initialDepth) {}
bool OptionalEmitter::emitJumpShortCircuit() {
MOZ_ASSERT(state_ == State::Start || state_ == State::ShortCircuit ||
......
......@@ -9,6 +9,7 @@
#include "mozilla/Attributes.h"
#include "frontend/IfEmitter.h" // IfEmitter, InternalIfEmitter, CondEmitter
#include "frontend/TDZCheckCache.h"
namespace js {
namespace frontend {
......@@ -146,6 +147,8 @@ class MOZ_RAII OptionalEmitter {
private:
BytecodeEmitter* bce_;
TDZCheckCache tdzCache_;
// jumptarget for ShortCircuiting code, which has null or undefined values
JumpList jumpShortCircuit_;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment