Chromium Code Reviews| Index: runtime/vm/virtual_memory_win.cc |
| =================================================================== |
| --- runtime/vm/virtual_memory_win.cc (revision 32548) |
| +++ runtime/vm/virtual_memory_win.cc (working copy) |
| @@ -82,6 +82,9 @@ |
| case kReadExecute: |
| prot = PAGE_EXECUTE_READ; |
| break; |
| + case kReadWriteExecute: |
| + prot = PAGE_EXECUTE_READWRITE; |
| + break; |
| } |
| DWORD old_prot = 0; |
| bool result = VirtualProtect(reinterpret_cast<void*>(page_address), |