Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
Tor Browser
Commits
405fd343
Commit
405fd343
authored
Jan 09, 2021
by
André Bargull
Browse files
Bug 1685260: Add TDZCheckCache. r=yulia, a=RyanVM
Differential Revision:
https://phabricator.services.mozilla.com/D100883
parent
420a1a63
Changes
2
Hide whitespace changes
Inline
Side-by-side
js/src/frontend/OptionalEmitter.cpp
View file @
405fd343
...
...
@@ -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
||
...
...
js/src/frontend/OptionalEmitter.h
View file @
405fd343
...
...
@@ -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_
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment