Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: src/platform.h

Issue 7565005: Version 3.5.3 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/parser.cc ('k') | src/platform-cygwin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform.h
diff --git a/src/platform.h b/src/platform.h
index 4d7f9cf77534e2fcfc273698dbae936883546189..6b2348c8903f4eabcbb2455283793688ada56844 100644
--- a/src/platform.h
+++ b/src/platform.h
@@ -207,6 +207,9 @@ class OS {
bool is_executable);
static void Free(void* address, const size_t size);
+ // Mark code segments non-writable.
+ static void ProtectCode(void* address, const size_t size);
+
// Assign memory as a guard page so that access will cause an exception.
static void Guard(void* address, const size_t size);
« no previous file with comments | « src/parser.cc ('k') | src/platform-cygwin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698