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

Changeset 263277 in webkit


Ignore:
Timestamp:
Jun 19, 2020, 11:07:16 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

functionCpuClflush checks that the second argument is Int32 but it actually expects it to be UInt32
https://bugs.webkit.org/show_bug.cgi?id=213388

Patch by Tuomas Karkkainen <tuomas.webkit@apple.com> on 2020-06-19
Reviewed by Saam Barati.

This changes the check from isInt32() to isUInt32() so that the logic is consistent.

  • tools/JSDollarVM.cpp:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r263252 r263277  
     12020-06-19  Tuomas Karkkainen  <tuomas.webkit@apple.com>
     2
     3        functionCpuClflush checks that the second argument is Int32 but it actually expects it to be UInt32
     4        https://bugs.webkit.org/show_bug.cgi?id=213388
     5
     6        Reviewed by Saam Barati.
     7
     8        This changes the check from isInt32() to isUInt32() so that the logic is consistent.
     9
     10        * tools/JSDollarVM.cpp:
     11
    1122020-06-18  Mark Lam  <mark.lam@apple.com>
    213
  • trunk/Source/JavaScriptCore/tools/JSDollarVM.cpp

    r263174 r263277  
    17431743    VM& vm = globalObject->vm();
    17441744
    1745     if (!callFrame->argument(1).isInt32())
     1745    if (!callFrame->argument(1).isUInt32())
    17461746        return JSValue::encode(jsBoolean(false));
    17471747
Note: See TracChangeset for help on using the changeset viewer.