Changeset 281835 in webkit


Ignore:
Timestamp:
Aug 31, 2021 5:27:26 PM (11 months ago)
Author:
ysuzuki@apple.com
Message:

[JSC] Enable Object.hasOwn
https://bugs.webkit.org/show_bug.cgi?id=229730

Reviewed by Saam Barati.

Source/JavaScriptCore:

Enable Object.hasOwn implementation. And cleaning up feature flag list.

  • runtime/OptionsList.h:

LayoutTests:

  • js/Object-getOwnPropertyNames-expected.txt:
  • js/script-tests/Object-getOwnPropertyNames.js:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r281834 r281835  
     12021-08-31  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        [JSC] Enable Object.hasOwn
     4        https://bugs.webkit.org/show_bug.cgi?id=229730
     5
     6        Reviewed by Saam Barati.
     7
     8        * js/Object-getOwnPropertyNames-expected.txt:
     9        * js/script-tests/Object-getOwnPropertyNames.js:
     10
    1112021-08-31  Ayumi Kojima  <ayumi_kojima@apple.com>
    212
  • trunk/LayoutTests/js/Object-getOwnPropertyNames-expected.txt

    r281369 r281835  
    4343PASS getSortedOwnPropertyNames(encodeURI) is ['length', 'name']
    4444PASS getSortedOwnPropertyNames(encodeURIComponent) is ['length', 'name']
    45 PASS getSortedOwnPropertyNames(Object) is ['assign', 'create', 'defineProperties', 'defineProperty', 'entries', 'freeze', 'fromEntries', 'getOwnPropertyDescriptor', 'getOwnPropertyDescriptors', 'getOwnPropertyNames', 'getOwnPropertySymbols', 'getPrototypeOf', 'is', 'isExtensible', 'isFrozen', 'isSealed', 'keys', 'length', 'name', 'preventExtensions', 'prototype', 'seal', 'setPrototypeOf', 'values']
     45PASS getSortedOwnPropertyNames(Object) is ['assign', 'create', 'defineProperties', 'defineProperty', 'entries', 'freeze', 'fromEntries', 'getOwnPropertyDescriptor', 'getOwnPropertyDescriptors', 'getOwnPropertyNames', 'getOwnPropertySymbols', 'getPrototypeOf', 'hasOwn', 'is', 'isExtensible', 'isFrozen', 'isSealed', 'keys', 'length', 'name', 'preventExtensions', 'prototype', 'seal', 'setPrototypeOf', 'values']
    4646PASS getSortedOwnPropertyNames(Object.prototype) is ['__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', '__proto__', 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf']
    4747PASS getSortedOwnPropertyNames(Function) is ['length', 'name', 'prototype']
  • trunk/LayoutTests/js/script-tests/Object-getOwnPropertyNames.js

    r281369 r281835  
    5252    "encodeURIComponent": "['length', 'name']",
    5353// Built-in ECMA objects
    54     "Object": "['assign', 'create', 'defineProperties', 'defineProperty', 'entries', 'freeze', 'fromEntries', 'getOwnPropertyDescriptor', 'getOwnPropertyDescriptors', 'getOwnPropertyNames', 'getOwnPropertySymbols', 'getPrototypeOf', 'is', 'isExtensible', 'isFrozen', 'isSealed', 'keys', 'length', 'name', 'preventExtensions', 'prototype', 'seal', 'setPrototypeOf', 'values']",
     54    "Object": "['assign', 'create', 'defineProperties', 'defineProperty', 'entries', 'freeze', 'fromEntries', 'getOwnPropertyDescriptor', 'getOwnPropertyDescriptors', 'getOwnPropertyNames', 'getOwnPropertySymbols', 'getPrototypeOf', 'hasOwn', 'is', 'isExtensible', 'isFrozen', 'isSealed', 'keys', 'length', 'name', 'preventExtensions', 'prototype', 'seal', 'setPrototypeOf', 'values']",
    5555    "Object.prototype": "['__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', '__proto__', 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf']",
    5656    "Function": "['length', 'name', 'prototype']",
  • trunk/Source/JavaScriptCore/ChangeLog

    r281826 r281835  
     12021-08-31  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        [JSC] Enable Object.hasOwn
     4        https://bugs.webkit.org/show_bug.cgi?id=229730
     5
     6        Reviewed by Saam Barati.
     7
     8        Enable Object.hasOwn implementation. And cleaning up feature flag list.
     9
     10        * runtime/OptionsList.h:
     11
    1122021-08-31  Saam Barati  <sbarati@apple.com>
    213
  • trunk/Source/JavaScriptCore/runtime/OptionsList.h

    r281799 r281835  
    529529    v(Bool, dumpBaselineJITSizeStatistics, false, Normal, nullptr) \
    530530    v(Bool, dumpDFGJITSizeStatistics, false, Normal, nullptr) \
    531     \
    532     /* Feature Flags */\
    533     \
    534     v(Bool, useWebAssemblyTypedFunctionReferences, false, Normal, "Allow function types from the wasm typed function references spec.") \
    535     v(Bool, useWebAssemblyThreading, true, Normal, "Allow instructions from the wasm threading spec.") \
    536     v(Bool, useAtMethod, true, Normal, "Expose the at() method on Array, %TypedArray%, and String.") \
    537     v(Bool, useSharedArrayBuffer, false, Normal, nullptr) \
    538531    v(Bool, verboseExecutablePoolAllocation, false, Normal, nullptr) \
    539532    v(Bool, useDataIC, false, Normal, nullptr) \
    540533    v(Bool, useDataICInOptimizingJIT, false, Normal, nullptr) \
    541534    v(Bool, useDataICSharing, false, Normal, nullptr) \
     535    \
     536    /* Feature Flags */\
     537    \
     538    v(Bool, useArrayFindLastMethod, true, Normal, "Expose the findLast() and findLastIndex() methods on Array and %TypedArray%.") \
     539    v(Bool, useAtMethod, true, Normal, "Expose the at() method on Array, %TypedArray%, and String.") \
     540    v(Bool, useHasOwn, true, Normal, "Expose the Object.hasOwn method") \
     541    v(Bool, useIntlEnumeration, true, Normal, "Expose the Intl enumeration APIs.") \
     542    v(Bool, useSharedArrayBuffer, false, Normal, nullptr) \
    542543    v(Bool, useTemporal, false, Normal, "Expose the Temporal object.") \
    543     v(Bool, useArrayFindLastMethod, true, Normal, "Expose the findLast() and findLastIndex() methods on Array and %TypedArray%.") \
    544     v(Bool, useIntlEnumeration, true, Normal, "Expose the Intl enumeration APIs.") \
    545     v(Bool, useHasOwn, false, Normal, "Expose the Object.hasOwn method") \
     544    v(Bool, useWebAssemblyThreading, true, Normal, "Allow instructions from the wasm threading spec.") \
     545    v(Bool, useWebAssemblyTypedFunctionReferences, false, Normal, "Allow function types from the wasm typed function references spec.") \
    546546
    547547
Note: See TracChangeset for help on using the changeset viewer.