Changeset 39297 in webkit for trunk/JavaScriptCore/interpreter/RegisterFile.h
- Timestamp:
- Dec 15, 2008, 4:03:41 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/interpreter/RegisterFile.h
r38514 r39297 33 33 #include "Collector.h" 34 34 #if HAVE(MMAP) 35 #include <errno.h> 35 36 #include <sys/mman.h> 36 37 #endif … … 122 123 #if HAVE(MMAP) 123 124 m_buffer = static_cast<Register*>(mmap(0, bufferLength, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0)); 124 ASSERT(reinterpret_cast<intptr_t>(m_buffer) != -1); 125 if (m_buffer == MAP_FAILED) { 126 fprintf(stderr, "Could not allocate register file: %d\n", errno); 127 CRASH(); 128 } 125 129 #elif HAVE(VIRTUALALLOC) 126 130 // FIXME: Use VirtualAlloc, and commit pages as we go.
Note:
See TracChangeset
for help on using the changeset viewer.