Chromium Code Reviews| Index: src/x64/codegen-x64.cc |
| diff --git a/src/x64/codegen-x64.cc b/src/x64/codegen-x64.cc |
| index f8f2d6e687896f4150e9a3068dbb280693cce6c9..507bbd44c3fc5afa4ecf22dbd968d9c1982a1499 100644 |
| --- a/src/x64/codegen-x64.cc |
| +++ b/src/x64/codegen-x64.cc |
| @@ -132,6 +132,7 @@ ModuloFunction CreateModuloFunction() { |
| CodeDesc desc; |
| masm.GetCode(&desc); |
| + OS::ProtectCode(buffer, actual_size); |
| // Call the function from C++ through this pointer. |
| return FUNCTION_CAST<ModuloFunction>(buffer); |
| } |