Changeset 47022 in webkit for trunk/JavaScriptCore/runtime/MarkStackWin.cpp
- Timestamp:
- Aug 10, 2009, 9:35:02 PM (16 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/MarkStackWin.cpp
r47021 r47022 1 1 /* 2 * Copyright (C) 200 8, 2009 Apple Inc. All Rights Reserved.2 * Copyright (C) 2009 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 26 26 #include "config.h" 27 27 28 #if ENABLE(WORKERS)29 28 30 #include " JSWorker.h"29 #include "MarkStack.h" 31 30 32 #include "JSDOMGlobalObject.h" 33 #include "Worker.h" 31 #include "windows.h" 34 32 35 using namespace JSC; 36 37 namespace WebCore { 38 39 void JSWorker::mark() 33 namespace JSC { 34 void* MarkStack::allocateStack(size_t size) 40 35 { 41 Base::mark(); 42 43 markIfNotNull(static_cast<Worker*>(impl())->onmessage()); 36 return VirtualAlloc(0, size, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE); 37 } 38 void MarkStack::releaseStack(void* addr, size_t size) 39 { 40 VirtualFree(addr, size, MEM_RELEASE); 44 41 } 45 42 46 } // namespace WebCore 47 48 #endif // ENABLE(WORKERS) 43 }
Note:
See TracChangeset
for help on using the changeset viewer.