Changeset 214826 in webkit


Ignore:
Timestamp:
Apr 3, 2017 11:44:05 AM (7 years ago)
Author:
keith_miller@apple.com
Message:

WebAssembly: remove lastAllocatedMode from Memory
https://bugs.webkit.org/show_bug.cgi?id=170405

Reviewed by Mark Lam.

It's not used anymore so there isn't any point in keeping it around.

  • wasm/WasmMemory.cpp:

(JSC::Wasm::Memory::createImpl):
(JSC::Wasm::Memory::lastAllocatedMode): Deleted.

  • wasm/WasmMemory.h:
Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r214750 r214826  
     12017-04-03  Keith Miller  <keith_miller@apple.com>
     2
     3        WebAssembly: remove lastAllocatedMode from Memory
     4        https://bugs.webkit.org/show_bug.cgi?id=170405
     5
     6        Reviewed by Mark Lam.
     7
     8        It's not used anymore so there isn't any point in keeping it around.
     9
     10        * wasm/WasmMemory.cpp:
     11        (JSC::Wasm::Memory::createImpl):
     12        (JSC::Wasm::Memory::lastAllocatedMode): Deleted.
     13        * wasm/WasmMemory.h:
     14
    1152017-04-03  Zan Dobersek  <zdobersek@igalia.com>
    216
  • trunk/Source/JavaScriptCore/wasm/WasmMemory.cpp

    r214645 r214826  
    7474}
    7575
    76 // We use this as a heuristic to guess what mode a memory import will be. Most of the time we expect users to
    77 // allocate the memory they are going to pass to all their modules right before compilation.
    78 static MemoryMode lastAllocatedMemoryMode { MemoryMode::Signaling };
    79 
    80 MemoryMode Memory::lastAllocatedMode()
    81 {
    82     return lastAllocatedMemoryMode;
    83 }
    84 
    8576static const unsigned maxFastMemories = 4;
    8677static unsigned allocatedFastMemories { 0 };
     
    217208            return nullptr;
    218209
    219         lastAllocatedMemoryMode = MemoryMode::BoundsChecking;
    220210        return adoptRef(new Memory(initial, maximum));
    221211    };
     
    261251    }
    262252
    263     lastAllocatedMemoryMode = mode;
    264253    dataLogLnIf(verbose, "Memory::create mmap succeeded");
    265254    return adoptRef(new Memory(memory, initial, maximum, mappedCapacity, mode));
  • trunk/Source/JavaScriptCore/wasm/WasmMemory.h

    r214547 r214826  
    7474    PageCount maximum() const { return m_maximum; }
    7575
    76     static MemoryMode lastAllocatedMode();
    7776    MemoryMode mode() const { return m_mode; }
    7877
Note: See TracChangeset for help on using the changeset viewer.