Changeset 47959 in webkit for trunk/JavaScriptCore/interpreter/RegisterFile.h
- Timestamp:
- Sep 2, 2009, 2:49:31 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/interpreter/RegisterFile.h
r47022 r47959 205 205 } 206 206 m_commitEnd = reinterpret_cast<Register*>(reinterpret_cast<char*>(m_buffer) + committedSize); 207 #else 208 #error "Don't know how to reserve virtual memory on this platform." 207 #else 208 /* 209 * If neither MMAP nor VIRTUALALLOC are available - use fastMalloc instead. 210 * 211 * Please note that this is the fallback case, which is non-optimal. 212 * If any possible, the platform should provide for a better memory 213 * allocation mechanism that allows for "lazy commit" or dynamic 214 * pre-allocation, similar to mmap or VirtualAlloc, to avoid waste of memory. 215 */ 216 m_buffer = static_cast<Register*>(fastMalloc(bufferLength)); 209 217 #endif 210 218 m_start = m_buffer + maxGlobals;
Note:
See TracChangeset
for help on using the changeset viewer.