DescriptionFix FuncNameInferrer usage in ParseAssignmentExpression
Without this fix, AssignmentExpressions that happen to be arrow functions
would lead to unbalanced Enter/Leave calls on the fni_, causing thrashing
while trying to infer function names. Symptoms include slow parsing
or OOM (when we create too many AstConsStrings).
To try to keep this from happening in the future, added an RAII helper
class to handle Entering/Leaving FNI state.
The included regression test crashes on my workstation without the patch.
Note that it's too slow in debug mode (as well as under TurboFan),
so I've skipped it there.
BUG=v8:4595
LOG=y
Committed: https://crrev.com/eb67f85439dcc273501e9fba5a9e883585505aa8
Cr-Commit-Position: refs/heads/master@{#32768}
Patch Set 1 #Patch Set 2 : Really fix FNI #Patch Set 3 : Add a basic RAII object and skip turbofan #
Total comments: 2
Messages
Total messages: 13 (6 generated)
|