Changeset 261728 in webkit
- Timestamp:
- May 14, 2020 7:00:30 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r261725 r261728 1 2020-05-14 Devin Rousso <drousso@apple.com> 2 3 [ESNext] enable logical assignment operators by default 4 https://bugs.webkit.org/show_bug.cgi?id=211921 5 6 Reviewed by Yusuke Suzuki. 7 8 * test262/config.yaml: 9 * stress/logical-assignment-operator-and.js: 10 * stress/logical-assignment-operator-coalesce.js: 11 * stress/logical-assignment-operator-or.js: 12 1 13 2020-05-14 Keith Miller <keith_miller@apple.com> 2 14 -
trunk/JSTests/stress/logical-assignment-operator-and.js
r260119 r261728 1 //@ runLogicalAssignmentOperatorsEnabled2 3 1 function shouldBe(func, expected) { 4 2 let actual = func(); -
trunk/JSTests/stress/logical-assignment-operator-coalesce.js
r260275 r261728 1 //@ runLogicalAssignmentOperatorsEnabled2 3 1 function shouldBe(func, expected) { 4 2 let actual = func(); -
trunk/JSTests/stress/logical-assignment-operator-or.js
r260119 r261728 1 //@ runLogicalAssignmentOperatorsEnabled2 3 1 function shouldBe(func, expected) { 4 2 let actual = func(); -
trunk/JSTests/test262/config.yaml
r261215 r261728 7 7 WeakRef: useWeakRefs 8 8 class-fields-public: usePublicClassFields 9 logical-assignment-operators: useLogicalAssignmentOperators10 9 skip: 11 10 features: -
trunk/Source/JavaScriptCore/ChangeLog
r261725 r261728 1 2020-05-14 Devin Rousso <drousso@apple.com> 2 3 [ESNext] enable logical assignment operators by default 4 https://bugs.webkit.org/show_bug.cgi?id=211921 5 6 Reviewed by Yusuke Suzuki. 7 8 * runtime/OptionsList.h: 9 * parser/Lexer.cpp: 10 (JSC::Lexer<T>::lexWithoutClearingLineTerminator): 11 Remove `useLogicalAssignmentOperators` option. 12 1 13 2020-05-14 Keith Miller <keith_miller@apple.com> 2 14 -
trunk/Source/JavaScriptCore/parser/Lexer.cpp
r261567 r261728 2087 2087 if (m_current == '&') { 2088 2088 shift(); 2089 if ( UNLIKELY(Options::useLogicalAssignmentOperators() && m_current == '=')) {2089 if (m_current == '=') { 2090 2090 shift(); 2091 2091 token = ANDEQUAL; … … 2129 2129 if (m_current == '|') { 2130 2130 shift(); 2131 if ( UNLIKELY(Options::useLogicalAssignmentOperators() && m_current == '=')) {2131 if (m_current == '=') { 2132 2132 shift(); 2133 2133 token = OREQUAL; … … 2170 2170 if (m_current == '?') { 2171 2171 shift(); 2172 if ( UNLIKELY(Options::useLogicalAssignmentOperators() && m_current == '=')) {2172 if (m_current == '=') { 2173 2173 shift(); 2174 2174 token = COALESCEEQUAL; -
trunk/Source/JavaScriptCore/runtime/OptionsList.h
r261464 r261728 507 507 v(Unsigned, getByValICMaxNumberOfIdentifiers, 4, Normal, "Number of identifiers we see in the LLInt that could cause us to bail on generating an IC for get_by_val.") \ 508 508 v(Bool, usePublicClassFields, true, Normal, "If true, the parser will understand public data fields inside classes.") \ 509 v(Bool, useLogicalAssignmentOperators, false, Normal, "Enable support for \?\?=, ||=, and &&= logical assignment operators.") \510 509 v(Bool, useRandomizingExecutableIslandAllocation, false, Normal, "For the arm64 ExecutableAllocator, if true, select which region to use randomly. This is useful for testing that jump islands work.") \ 511 510
Note: See TracChangeset
for help on using the changeset viewer.