Changeset 261728 in webkit


Ignore:
Timestamp:
May 14, 2020 7:00:30 PM (4 years ago)
Author:
Devin Rousso
Message:

[ESNext] enable logical assignment operators by default
https://bugs.webkit.org/show_bug.cgi?id=211921

Reviewed by Yusuke Suzuki.

JSTests:

  • test262/config.yaml:
  • stress/logical-assignment-operator-and.js:
  • stress/logical-assignment-operator-coalesce.js:
  • stress/logical-assignment-operator-or.js:

Source/JavaScriptCore:

  • runtime/OptionsList.h:
  • parser/Lexer.cpp:

(JSC::Lexer<T>::lexWithoutClearingLineTerminator):
Remove useLogicalAssignmentOperators option.

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r261725 r261728  
     12020-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
    1132020-05-14  Keith Miller  <keith_miller@apple.com>
    214
  • trunk/JSTests/stress/logical-assignment-operator-and.js

    r260119 r261728  
    1 //@ runLogicalAssignmentOperatorsEnabled
    2 
    31function shouldBe(func, expected) {
    42    let actual = func();
  • trunk/JSTests/stress/logical-assignment-operator-coalesce.js

    r260275 r261728  
    1 //@ runLogicalAssignmentOperatorsEnabled
    2 
    31function shouldBe(func, expected) {
    42    let actual = func();
  • trunk/JSTests/stress/logical-assignment-operator-or.js

    r260119 r261728  
    1 //@ runLogicalAssignmentOperatorsEnabled
    2 
    31function shouldBe(func, expected) {
    42    let actual = func();
  • trunk/JSTests/test262/config.yaml

    r261215 r261728  
    77  WeakRef: useWeakRefs
    88  class-fields-public: usePublicClassFields
    9   logical-assignment-operators: useLogicalAssignmentOperators
    109skip:
    1110  features:
  • trunk/Source/JavaScriptCore/ChangeLog

    r261725 r261728  
     12020-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
    1132020-05-14  Keith Miller  <keith_miller@apple.com>
    214
  • trunk/Source/JavaScriptCore/parser/Lexer.cpp

    r261567 r261728  
    20872087        if (m_current == '&') {
    20882088            shift();
    2089             if (UNLIKELY(Options::useLogicalAssignmentOperators() && m_current == '=')) {
     2089            if (m_current == '=') {
    20902090                shift();
    20912091                token = ANDEQUAL;
     
    21292129        if (m_current == '|') {
    21302130            shift();
    2131             if (UNLIKELY(Options::useLogicalAssignmentOperators() && m_current == '=')) {
     2131            if (m_current == '=') {
    21322132                shift();
    21332133                token = OREQUAL;
     
    21702170        if (m_current == '?') {
    21712171            shift();
    2172             if (UNLIKELY(Options::useLogicalAssignmentOperators() && m_current == '=')) {
     2172            if (m_current == '=') {
    21732173                shift();
    21742174                token = COALESCEEQUAL;
  • trunk/Source/JavaScriptCore/runtime/OptionsList.h

    r261464 r261728  
    507507    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.") \
    508508    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.") \
    510509    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.") \
    511510
Note: See TracChangeset for help on using the changeset viewer.