Changeset 263616 in webkit for trunk/Source/JavaScriptCore/shell


Ignore:
Timestamp:
Jun 27, 2020, 7:18:34 AM (5 years ago)
Author:
[email protected]
Message:

[PlayStation] Update test runner for changes to Options and signing
https://bugs.webkit.org/show_bug.cgi?id=213650

Reviewed by Don Olmstead.

Source/JavaScriptCore:

  • shell/playstation/Initializer.cpp: Load ICU library
  • shell/playstation/TestShell.cpp: Update between test options reset

Tools:

  • Scripts/webkitdirs.pm: Update extension for PlayStation binary
Location:
trunk/Source/JavaScriptCore/shell/playstation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/shell/playstation/Initializer.cpp

    r262096 r263616  
    4545    loadLibraryOrExit("PosixWebKit");
    4646    loadLibraryOrExit("libJavaScriptCore");
     47    loadLibraryOrExit("libicu");
    4748}
  • trunk/Source/JavaScriptCore/shell/playstation/TestShell.cpp

    r263575 r263616  
    2626#include "../jsc.cpp"
    2727
     28#include <wtf/Language.h>
     29
     30#define STATIC_OPTION(type_, name_, defaultValue_, availability_, description_) \
     31    static OptionsStorage::type_ orig##name_;
     32    FOR_EACH_JSC_OPTION(STATIC_OPTION)
     33#undef STATIC_OPTION
     34
    2835extern "C" void setupTestRun()
    2936{
     37    CommandLine options(0, nullptr);
     38#define STATIC_OPTION(type_, name_, defaultValue_, availability_, description_) \
     39    orig##name_ = JSC::Options::name_();
     40    FOR_EACH_JSC_OPTION(STATIC_OPTION)
     41#undef STATIC_OPTION
     42
    3043    // Need to initialize WTF threading before we start any threads. Cannot initialize JSC
    3144    // threading yet, since that would do somethings that we'd like to defer until after we
     
    4760{
    4861#define INIT_OPTION(type_, name_, defaultValue_, availability_, description_) \
    49     JSC::Options::name_() = JSC::Options::name_##Default();
     62    JSC::Options::name_() = orig##name_;
    5063    FOR_EACH_JSC_OPTION(INIT_OPTION)
    5164#undef INIT_OPTION
     65    overrideUserPreferredLanguages(platformUserPreferredLanguages());
    5266}
    5367
Note: See TracChangeset for help on using the changeset viewer.