Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index cfb7f75423319a32351beb0f250c79718dd62060..c949a423a2e189ecc725427c86d42f74111da7fc 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -2603,6 +2603,12 @@ void CEntryStub::Generate(MacroAssembler* masm) { |
true, |
true); |
+ { FrameScope scope(masm, StackFrame::MANUAL); |
+ __ PrepareCallCFunction(0); |
+ __ CallCFunction( |
+ ExternalReference::out_of_memory_function(masm->isolate()), 0); |
+ } |
+ |
__ bind(&throw_termination_exception); |
__ ThrowUncatchable(rax); |