Changeset 239427 in webkit for trunk/Source/JavaScriptCore/parser/Lexer.cpp
- Timestamp:
- Dec 19, 2018, 8:41:11 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Lexer.cpp
r234501 r239427 1540 1540 1541 1541 template <typename T> 1542 ALWAYS_INLINE auto Lexer<T>::parseBinary() -> std::optional<NumberParseResult>1542 ALWAYS_INLINE auto Lexer<T>::parseBinary() -> Optional<NumberParseResult> 1543 1543 { 1544 1544 // Optimization: most binary values fit into 4 bytes. … … 1572 1572 1573 1573 if (isASCIIDigit(m_current)) 1574 return std::nullopt;1574 return WTF::nullopt; 1575 1575 1576 1576 return Variant<double, const Identifier*> { parseIntOverflow(m_buffer8.data(), m_buffer8.size(), 2) }; … … 1578 1578 1579 1579 template <typename T> 1580 ALWAYS_INLINE auto Lexer<T>::parseOctal() -> std::optional<NumberParseResult>1580 ALWAYS_INLINE auto Lexer<T>::parseOctal() -> Optional<NumberParseResult> 1581 1581 { 1582 1582 // Optimization: most octal values fit into 4 bytes. … … 1611 1611 1612 1612 if (isASCIIDigit(m_current)) 1613 return std::nullopt;1613 return WTF::nullopt; 1614 1614 1615 1615 return Variant<double, const Identifier*> { parseIntOverflow(m_buffer8.data(), m_buffer8.size(), 8) }; … … 1617 1617 1618 1618 template <typename T> 1619 ALWAYS_INLINE auto Lexer<T>::parseDecimal() -> std::optional<NumberParseResult>1619 ALWAYS_INLINE auto Lexer<T>::parseDecimal() -> Optional<NumberParseResult> 1620 1620 { 1621 1621 // Optimization: most decimal values fit into 4 bytes. … … 1653 1653 return Variant<double, const Identifier*> { makeIdentifier(m_buffer8.data(), m_buffer8.size()) }; 1654 1654 1655 return std::nullopt;1655 return WTF::nullopt; 1656 1656 } 1657 1657
Note:
See TracChangeset
for help on using the changeset viewer.