Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index b6411d950ee0c77893db422b4cf93bc7d2227ddf..b097fc52ed4135bc1e50964da12dc02f0c807ce6 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -1755,13 +1755,15 @@ void CEntryStub::Generate(MacroAssembler* masm) { |
true, |
true); |
+ { FrameScope scope(masm, StackFrame::MANUAL); |
+ __ CallCFunction( |
+ ExternalReference::out_of_memory_function(masm->isolate()), 0); |
+ } |
+ |
// We didn't execute a return case, so the stack frame hasn't been updated |
// (except for the return address slot). However, we don't need to initialize |
// jssp because the throw method will immediately overwrite it when it |
// unwinds the stack. |
- if (__ emit_debug_code()) { |
- __ Mov(jssp, kDebugZapValue); |
- } |
__ SetStackPointer(jssp); |
// Throw exceptions. |