Changeset 277118 in webkit


Ignore:
Timestamp:
May 6, 2021 1:55:29 PM (3 years ago)
Author:
fpizlo@apple.com
Message:

Make some things easier to dataLog in wasm
https://bugs.webkit.org/show_bug.cgi?id=225472

Reviewed by Yusuke Suzuki.

  • wasm/WasmMemoryMode.cpp:

(WTF::printInternal):

  • wasm/WasmMemoryMode.h:
  • wasm/WasmWorklist.cpp:

(JSC::Wasm::Worklist::dump const):

  • wasm/WasmWorklist.h:
Location:
trunk/Source/JavaScriptCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r277117 r277118  
     12021-05-06  Filip Pizlo  <fpizlo@apple.com>
     2
     3        Make some things easier to dataLog in wasm
     4        https://bugs.webkit.org/show_bug.cgi?id=225472
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        * wasm/WasmMemoryMode.cpp:
     9        (WTF::printInternal):
     10        * wasm/WasmMemoryMode.h:
     11        * wasm/WasmWorklist.cpp:
     12        (JSC::Wasm::Worklist::dump const):
     13        * wasm/WasmWorklist.h:
     14
    1152021-05-06  Filip Pizlo  <fpizlo@apple.com>
    216
  • trunk/Source/JavaScriptCore/wasm/WasmMemoryMode.cpp

    r269974 r277118  
    11/*
    2  * Copyright (C) 2016-2017 Apple Inc. All rights reserved.
     2 * Copyright (C) 2016-2021 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    3030
    3131#include <wtf/Assertions.h>
     32#include <wtf/PrintStream.h>
    3233
    3334namespace JSC { namespace Wasm {
     
    5556} } // namespace JSC::Wasm
    5657
     58namespace WTF {
     59
     60void printInternal(PrintStream& out, JSC::Wasm::MemoryMode mode)
     61{
     62    out.print(JSC::Wasm::makeString(mode));
     63}
     64
     65void printInternal(PrintStream& out, JSC::Wasm::MemorySharingMode mode)
     66{
     67    out.print(JSC::Wasm::makeString(mode));
     68}
     69
     70} // namespace WTF
     71
    5772#endif // ENABLE(WEBASSEMBLY)
  • trunk/Source/JavaScriptCore/wasm/WasmMemoryMode.h

    r269974 r277118  
    11/*
    2  * Copyright (C) 2017 Apple Inc. All rights reserved.
     2 * Copyright (C) 2017-2021 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    5050} } // namespace JSC::Wasm
    5151
     52namespace WTF {
     53
     54class PrintStream;
     55void printInternal(PrintStream&, JSC::Wasm::MemoryMode);
     56void printInternal(PrintStream&, JSC::Wasm::MemorySharingMode);
     57
     58} // namespace WTF
     59
    5260#endif // ENABLE(WEBASSEMBLY)
  • trunk/Source/JavaScriptCore/wasm/WasmWorklist.cpp

    r262402 r277118  
    11/*
    2  * Copyright (C) 2017-2019 Apple Inc. All rights reserved.
     2 * Copyright (C) 2017-2021 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    5050}
    5151
     52void Worklist::dump(PrintStream& out) const
     53{
     54    out.print("Queue Size = ", m_queue.size());
     55}
     56
    5257// The Thread class is designed to prevent threads from blocking when there is still work
    5358// in the queue. Wasm's Plans have some phases, Validiation, Preparation, and Completion,
  • trunk/Source/JavaScriptCore/wasm/WasmWorklist.h

    r233123 r277118  
    11/*
    2  * Copyright (C) 2017 Apple Inc. All rights reserved.
     2 * Copyright (C) 2017-2021 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    3131
    3232#include <wtf/AutomaticThread.h>
     33#include <wtf/PrintStream.h>
    3334#include <wtf/PriorityQueue.h>
    3435#include <wtf/Vector.h>
     
    5960    };
    6061    const char* priorityString(Priority);
     62
     63    void dump(PrintStream&) const;
    6164
    6265private:
Note: See TracChangeset for help on using the changeset viewer.