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 1746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1757 | 1757 |
1758 // We didn't execute a return case, so the stack frame hasn't been updated | 1758 // 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 | 1759 // (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 | 1760 // jssp because the throw method will immediately overwrite it when it |
1761 // unwinds the stack. | 1761 // unwinds the stack. |
1762 if (__ emit_debug_code()) { | 1762 if (__ emit_debug_code()) { |
1763 __ Mov(jssp, kDebugZapValue); | 1763 __ Mov(jssp, kDebugZapValue); |
1764 } | 1764 } |
1765 __ SetStackPointer(jssp); | 1765 __ SetStackPointer(jssp); |
1766 | 1766 |
| 1767 { FrameScope scope(masm, StackFrame::MANUAL); |
| 1768 __ CallCFunction( |
| 1769 ExternalReference::out_of_memory_function(masm->isolate()), 0, 0); |
| 1770 } |
| 1771 |
1767 // Throw exceptions. | 1772 // Throw exceptions. |
1768 // If we throw an exception, we can end up re-entering CEntryStub before we | 1773 // 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 | 1774 // pop the exit frame, so need to ensure that x21-x23 contain GC-safe values |
1770 // here. | 1775 // here. |
1771 | 1776 |
1772 __ Bind(&throw_termination); | 1777 __ Bind(&throw_termination); |
1773 ASM_LOCATION("Throw termination"); | 1778 ASM_LOCATION("Throw termination"); |
1774 __ Mov(argv, 0); | 1779 __ Mov(argv, 0); |
1775 __ Mov(argc, 0); | 1780 __ Mov(argc, 0); |
1776 __ Mov(target, 0); | 1781 __ Mov(target, 0); |
(...skipping 3955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5732 MemOperand(fp, 6 * kPointerSize), | 5737 MemOperand(fp, 6 * kPointerSize), |
5733 NULL); | 5738 NULL); |
5734 } | 5739 } |
5735 | 5740 |
5736 | 5741 |
5737 #undef __ | 5742 #undef __ |
5738 | 5743 |
5739 } } // namespace v8::internal | 5744 } } // namespace v8::internal |
5740 | 5745 |
5741 #endif // V8_TARGET_ARCH_ARM64 | 5746 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |