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 2585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2596 | 2596 |
2597 // Do full GC and retry runtime call one final time. | 2597 // Do full GC and retry runtime call one final time. |
2598 Failure* failure = Failure::InternalError(); | 2598 Failure* failure = Failure::InternalError(); |
2599 __ Move(rax, failure, Assembler::RelocInfoNone()); | 2599 __ Move(rax, failure, Assembler::RelocInfoNone()); |
2600 GenerateCore(masm, | 2600 GenerateCore(masm, |
2601 &throw_normal_exception, | 2601 &throw_normal_exception, |
2602 &throw_termination_exception, | 2602 &throw_termination_exception, |
2603 true, | 2603 true, |
2604 true); | 2604 true); |
2605 | 2605 |
| 2606 { FrameScope scope(masm, StackFrame::MANUAL); |
| 2607 __ PrepareCallCFunction(0); |
| 2608 __ CallCFunction( |
| 2609 ExternalReference::out_of_memory_function(masm->isolate()), 0); |
| 2610 } |
| 2611 |
2606 __ bind(&throw_termination_exception); | 2612 __ bind(&throw_termination_exception); |
2607 __ ThrowUncatchable(rax); | 2613 __ ThrowUncatchable(rax); |
2608 | 2614 |
2609 __ bind(&throw_normal_exception); | 2615 __ bind(&throw_normal_exception); |
2610 __ Throw(rax); | 2616 __ Throw(rax); |
2611 } | 2617 } |
2612 | 2618 |
2613 | 2619 |
2614 void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) { | 2620 void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) { |
2615 Label invoke, handler_entry, exit; | 2621 Label invoke, handler_entry, exit; |
(...skipping 2599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5215 return_value_operand, | 5221 return_value_operand, |
5216 NULL); | 5222 NULL); |
5217 } | 5223 } |
5218 | 5224 |
5219 | 5225 |
5220 #undef __ | 5226 #undef __ |
5221 | 5227 |
5222 } } // namespace v8::internal | 5228 } } // namespace v8::internal |
5223 | 5229 |
5224 #endif // V8_TARGET_ARCH_X64 | 5230 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |