Changeset 214826 in webkit
- Timestamp:
- Apr 3, 2017 11:44:05 AM (7 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r214750 r214826 1 2017-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 1 15 2017-04-03 Zan Dobersek <zdobersek@igalia.com> 2 16 -
trunk/Source/JavaScriptCore/wasm/WasmMemory.cpp
r214645 r214826 74 74 } 75 75 76 // We use this as a heuristic to guess what mode a memory import will be. Most of the time we expect users to77 // 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 85 76 static const unsigned maxFastMemories = 4; 86 77 static unsigned allocatedFastMemories { 0 }; … … 217 208 return nullptr; 218 209 219 lastAllocatedMemoryMode = MemoryMode::BoundsChecking;220 210 return adoptRef(new Memory(initial, maximum)); 221 211 }; … … 261 251 } 262 252 263 lastAllocatedMemoryMode = mode;264 253 dataLogLnIf(verbose, "Memory::create mmap succeeded"); 265 254 return adoptRef(new Memory(memory, initial, maximum, mappedCapacity, mode)); -
trunk/Source/JavaScriptCore/wasm/WasmMemory.h
r214547 r214826 74 74 PageCount maximum() const { return m_maximum; } 75 75 76 static MemoryMode lastAllocatedMode();77 76 MemoryMode mode() const { return m_mode; } 78 77
Note: See TracChangeset
for help on using the changeset viewer.