| Index: src/mips/codegen-mips.cc
 | 
| diff --git a/src/mips/codegen-mips.cc b/src/mips/codegen-mips.cc
 | 
| index 5c847fc8f6227e7896aaacb66163eb244dd59764..f1cdd3c4b6b4e1d17917b2d73715ac1e61820bc4 100644
 | 
| --- a/src/mips/codegen-mips.cc
 | 
| +++ b/src/mips/codegen-mips.cc
 | 
| @@ -64,7 +64,8 @@ double fast_exp_simulator(double x) {
 | 
|  UnaryMathFunction CreateExpFunction() {
 | 
|    if (!FLAG_fast_math) return &exp;
 | 
|    size_t actual_size;
 | 
| -  byte* buffer = static_cast<byte*>(OS::Allocate(1 * KB, &actual_size, true));
 | 
| +  byte* buffer = static_cast<byte*>(VirtualMemory::AllocateRegion(
 | 
| +          1 * KB, &actual_size, VirtualMemory::EXECUTABLE));
 | 
|    if (buffer == NULL) return &exp;
 | 
|    ExternalReference::InitializeMathExpData();
 | 
|  
 | 
| @@ -102,7 +103,9 @@ UnaryMathFunction CreateExpFunction() {
 | 
|    ASSERT(!RelocInfo::RequiresRelocation(desc));
 | 
|  
 | 
|    CPU::FlushICache(buffer, actual_size);
 | 
| -  OS::ProtectCode(buffer, actual_size);
 | 
| +  bool result = VirtualMemory::ProtectRegion(buffer, actual_size);
 | 
| +  ASSERT(result);
 | 
| +  USE(result);
 | 
|  
 | 
|  #if !defined(USE_SIMULATOR)
 | 
|    return FUNCTION_CAST<UnaryMathFunction>(buffer);
 | 
| 
 |