Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index a8de06ee5850f82949b63ba1146865aba7cd3536..bcf2768bbc86256e0a13de8b16b13766ba6281d8 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -2806,7 +2806,10 @@ void Deoptimizer::EnsureCodeForDeoptimizationEntry(Isolate* isolate, |
MemoryChunk* chunk = data->deopt_entry_code_[type]; |
CHECK(static_cast<int>(Deoptimizer::GetMaxDeoptTableSize()) >= |
desc.instr_size); |
- chunk->CommitArea(desc.instr_size); |
+ if (!chunk->CommitArea(desc.instr_size)) { |
+ V8::FatalProcessOutOfMemory( |
+ "Deoptimizer::EnsureCodeForDeoptimizationEntry"); |
+ } |
CopyBytes(chunk->area_start(), desc.buffer, |
static_cast<size_t>(desc.instr_size)); |
CpuFeatures::FlushICache(chunk->area_start(), desc.instr_size); |