Changeset 269931 in webkit
- Timestamp:
- Nov 17, 2020 3:53:49 PM (3 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r269929 r269931 1 2020-11-17 Saam Barati <sbarati@apple.com> 2 3 Add more info to the RELEASE_ASSERT inside Parser::parseInner 4 https://bugs.webkit.org/show_bug.cgi?id=219054 5 <rdar://problem/71506453> 6 7 Reviewed by Mark Lam. 8 9 We have some crashes here, and it'll be helpful for the crashlogs to have 10 more info in the register state. 11 12 * parser/Lexer.h: 13 (JSC::Lexer::codeLength): 14 * parser/Parser.cpp: 15 (JSC::Parser<LexerType>::parseInner): 16 1 17 2020-11-17 Sergey Rubanov <chi187@gmail.com> 2 18 -
trunk/Source/JavaScriptCore/parser/Lexer.h
r266681 r269931 126 126 } 127 127 128 size_t codeLength() { return m_codeEnd - m_codeStart; } 129 128 130 private: 129 131 void record8(int); -
trunk/Source/JavaScriptCore/parser/Parser.cpp
r269922 r269931 229 229 230 230 if (SourceParseModeSet(SourceParseMode::ArrowFunctionMode, SourceParseMode::AsyncArrowFunctionMode).contains(parseMode) && !hasError()) { 231 // The only way we could have an error w ile reparsing is if we run out of stack space.232 RELEASE_ASSERT(match(ARROWFUNCTION) );231 // The only way we could have an error while reparsing is if we run out of stack space. 232 RELEASE_ASSERT(match(ARROWFUNCTION), m_token.m_type, static_cast<uint8_t>(parseMode), m_lexer->currentOffset(), m_lexer->codeLength()); 233 233 next(); 234 234 isArrowFunctionBodyExpression = !match(OPENBRACE);
Note: See TracChangeset
for help on using the changeset viewer.