Ignore:
Timestamp:
Apr 21, 2009, 12:23:10 AM (16 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2009-04-20 Geoffrey Garen <[email protected]>

Reviewed by Mark Rowe.


Tiger crash fix: Put VM tags in their own header file, and fixed up the
#ifdefs so they're not used on Tiger.

  • JavaScriptCore.xcodeproj/project.pbxproj:
  • interpreter/RegisterFile.h: (JSC::RegisterFile::RegisterFile):
  • jit/ExecutableAllocatorFixedVMPool.cpp: (JSC::FixedVMPoolAllocator::FixedVMPoolAllocator):
  • jit/ExecutableAllocatorPosix.cpp: (JSC::ExecutablePool::systemAlloc):
  • runtime/Collector.cpp: (JSC::allocateBlock):
  • wtf/VMTags.h: Added.

JavaScriptGlue:

2009-04-20 Geoffrey Garen <[email protected]>

Reviewed by Mark Rowe.

Tiger crash fix: Put VM tags in their own header file, and fixed up the
#ifdefs so they're not used on Tiger.

  • ForwardingHeaders/wtf/VMTags.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/HashTraits.h.

WebCore:

2009-04-20 Geoffrey Garen <[email protected]>

Reviewed by Mark Rowe.

Tiger crash fix: Put VM tags in their own header file, and fixed up the
#ifdefs so they're not used on Tiger.

  • ForwardingHeaders/wtf/VMTags.h: Copied from WebCore/ForwardingHeaders/wtf/HashTraits.h.

WebKit/mac:

2009-04-20 Geoffrey Garen <[email protected]>

Reviewed by Mark Rowe.

Tiger crash fix: Put VM tags in their own header file, and fixed up the
#ifdefs so they're not used on Tiger.

  • ForwardingHeaders/wtf/VMTags.h: Copied from ForwardingHeaders/wtf/HashTraits.h.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/interpreter/RegisterFile.h

    r42676 r42705  
    3030#define RegisterFile_h
    3131
     32#include "Collector.h"
    3233#include "ExecutableAllocator.h"
    3334#include "Register.h"
    34 #include "Collector.h"
    3535#include <wtf/Noncopyable.h>
     36#include <wtf/VMTags.h>
    3637
    3738#if HAVE(MMAP)
     
    3940#include <stdio.h>
    4041#include <sys/mman.h>
    41 #endif
    42 
    43 #if PLATFORM(DARWIN)
    44 #include <mach/vm_statistics.h>
    45 #endif
    46 
    47 #if PLATFORM(DARWIN)
    48 // On Mac OS X, the VM subsystem allows tagging memory requested from mmap and vm_map
    49 // in order to aid tools that inspect system memory use.
    50 #if defined(VM_MEMORY_JAVASCRIPT_JIT_REGISTER_FILE)
    51 #define TAG_FOR_REGISTERFILE_MEMORY VM_MAKE_TAG(VM_MEMORY_JAVASCRIPT_JIT_REGISTER_FILE)
    52 #else
    53 #define TAG_FOR_REGISTERFILE_MEMORY VM_MAKE_TAG(65)
    54 #endif
    55 #else
    56 #define TAG_FOR_REGISTERFILE_MEMORY -1
    5742#endif
    5843
     
    178163        size_t bufferLength = (capacity + maxGlobals) * sizeof(Register);
    179164    #if HAVE(MMAP)
    180         m_buffer = static_cast<Register*>(mmap(0, bufferLength, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, TAG_FOR_REGISTERFILE_MEMORY, 0));
     165        m_buffer = static_cast<Register*>(mmap(0, bufferLength, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, VM_TAG_FOR_REGISTERFILE_MEMORY, 0));
    181166        if (m_buffer == MAP_FAILED) {
    182167            fprintf(stderr, "Could not allocate register file: %d\n", errno);
     
    235220} // namespace JSC
    236221
    237 #undef TAG_FOR_REGISTERFILE_MEMORY
    238 
    239222#endif // RegisterFile_h
Note: See TracChangeset for help on using the changeset viewer.