⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 259549 in webkit


Ignore:
Timestamp:
Apr 5, 2020, 1:59:57 AM (6 years ago)
Author:
ysuzuki@apple.com
Message:

[JSC] JSArrayIterator's size is wrong
https://bugs.webkit.org/show_bug.cgi?id=210020

Reviewed by Mark Lam.

Internal-size of JSArrayIterator should be 3, not 4.

  • runtime/JSArrayIterator.h:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r259548 r259549  
     12020-04-05  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        [JSC] JSArrayIterator's size is wrong
     4        https://bugs.webkit.org/show_bug.cgi?id=210020
     5
     6        Reviewed by Mark Lam.
     7
     8        Internal-size of JSArrayIterator should be 3, not 4.
     9
     10        * runtime/JSArrayIterator.h:
     11
    1122020-04-05  Mark Lam  <mark.lam@apple.com>
    213
  • trunk/Source/JavaScriptCore/runtime/JSArrayIterator.h

    r254419 r259549  
    3030namespace JSC {
    3131
    32 class JSArrayIterator final : public JSInternalFieldObjectImpl<4> {
     32class JSArrayIterator final : public JSInternalFieldObjectImpl<3> {
    3333public:
    34     using Base = JSInternalFieldObjectImpl<4>;
     34    using Base = JSInternalFieldObjectImpl<3>;
    3535
    36     enum class Field : uint8_t { 
     36    enum class Field : uint8_t {
    3737        Index = 0,
    3838        IteratedObject,
    3939        Kind,
    4040    };
     41    static_assert(numberOfInternalFields == 3);
    4142
    4243    static size_t allocationSize(Checked<size_t> inlineCapacity)
Note: See TracChangeset for help on using the changeset viewer.