[heap] Turn on --write-protect-code-memory.

Bug: chromium:774108
Change-Id: I04546edfbc20e92757bd6da0505868f357f8d40d
Reviewed-on: https://chromium-review.googlesource.com/959005
Reviewed-by: Ulan Degenbaev <[email protected]>
Commit-Queue: Hannes Payer <[email protected]>
Cr-Commit-Position: refs/heads/master@{#51884}
diff --git a/src/flag-definitions.h b/src/flag-definitions.h
index eb821f8..b60d96c 100644
--- a/src/flag-definitions.h
+++ b/src/flag-definitions.h
@@ -671,7 +671,7 @@
 DEFINE_BOOL(trace_unmapper, false, "Trace the unmapping")
 DEFINE_BOOL(parallel_scavenge, true, "parallel scavenge")
 DEFINE_BOOL(trace_parallel_scavenge, false, "trace parallel scavenge")
-DEFINE_BOOL(write_protect_code_memory, false, "write protect code memory")
+DEFINE_BOOL(write_protect_code_memory, true, "write protect code memory")
 #ifdef V8_CONCURRENT_MARKING
 #define V8_CONCURRENT_MARKING_BOOL true
 #else