OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1748 false); | 1748 false); |
1749 | 1749 |
1750 // Do full GC and retry runtime call one final time. | 1750 // Do full GC and retry runtime call one final time. |
1751 __ Mov(x0, reinterpret_cast<uint64_t>(Failure::InternalError())); | 1751 __ Mov(x0, reinterpret_cast<uint64_t>(Failure::InternalError())); |
1752 GenerateCore(masm, | 1752 GenerateCore(masm, |
1753 &throw_normal, | 1753 &throw_normal, |
1754 &throw_termination, | 1754 &throw_termination, |
1755 true, | 1755 true, |
1756 true); | 1756 true); |
1757 | 1757 |
| 1758 { FrameScope scope(masm, StackFrame::MANUAL); |
| 1759 __ CallCFunction( |
| 1760 ExternalReference::out_of_memory_function(masm->isolate()), 0); |
| 1761 } |
| 1762 |
1758 // We didn't execute a return case, so the stack frame hasn't been updated | 1763 // We didn't execute a return case, so the stack frame hasn't been updated |
1759 // (except for the return address slot). However, we don't need to initialize | 1764 // (except for the return address slot). However, we don't need to initialize |
1760 // jssp because the throw method will immediately overwrite it when it | 1765 // jssp because the throw method will immediately overwrite it when it |
1761 // unwinds the stack. | 1766 // unwinds the stack. |
1762 if (__ emit_debug_code()) { | |
1763 __ Mov(jssp, kDebugZapValue); | |
1764 } | |
1765 __ SetStackPointer(jssp); | 1767 __ SetStackPointer(jssp); |
1766 | 1768 |
1767 // Throw exceptions. | 1769 // Throw exceptions. |
1768 // If we throw an exception, we can end up re-entering CEntryStub before we | 1770 // If we throw an exception, we can end up re-entering CEntryStub before we |
1769 // pop the exit frame, so need to ensure that x21-x23 contain GC-safe values | 1771 // pop the exit frame, so need to ensure that x21-x23 contain GC-safe values |
1770 // here. | 1772 // here. |
1771 | 1773 |
1772 __ Bind(&throw_termination); | 1774 __ Bind(&throw_termination); |
1773 ASM_LOCATION("Throw termination"); | 1775 ASM_LOCATION("Throw termination"); |
1774 __ Mov(argv, 0); | 1776 __ Mov(argv, 0); |
(...skipping 3957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5732 MemOperand(fp, 6 * kPointerSize), | 5734 MemOperand(fp, 6 * kPointerSize), |
5733 NULL); | 5735 NULL); |
5734 } | 5736 } |
5735 | 5737 |
5736 | 5738 |
5737 #undef __ | 5739 #undef __ |
5738 | 5740 |
5739 } } // namespace v8::internal | 5741 } } // namespace v8::internal |
5740 | 5742 |
5741 #endif // V8_TARGET_ARCH_ARM64 | 5743 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |