Changeset 48000 in webkit for trunk/JavaScriptCore/jit/ExecutableAllocatorWin.cpp
- Timestamp:
- Sep 2, 2009, 5:18:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/ExecutableAllocatorWin.cpp
r44341 r48000 43 43 ExecutablePool::Allocation ExecutablePool::systemAlloc(size_t n) 44 44 { 45 ExecutablePool::Allocation alloc = {reinterpret_cast<char*>(VirtualAlloc(0, n, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE)), n}; 45 void* allocation = VirtualAlloc(0, n, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE); 46 if (!allocation) 47 CRASH(); 48 ExecutablePool::Allocation alloc = {reinterpret_cast<char*>(allocation), n}; 46 49 return alloc; 47 50 }
Note:
See TracChangeset
for help on using the changeset viewer.