| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2744 | 2744 |
| 2745 // Do full GC and retry runtime call one final time. | 2745 // Do full GC and retry runtime call one final time. |
| 2746 Failure* failure = Failure::InternalError(); | 2746 Failure* failure = Failure::InternalError(); |
| 2747 __ mov(eax, Immediate(reinterpret_cast<int32_t>(failure))); | 2747 __ mov(eax, Immediate(reinterpret_cast<int32_t>(failure))); |
| 2748 GenerateCore(masm, | 2748 GenerateCore(masm, |
| 2749 &throw_normal_exception, | 2749 &throw_normal_exception, |
| 2750 &throw_termination_exception, | 2750 &throw_termination_exception, |
| 2751 true, | 2751 true, |
| 2752 true); | 2752 true); |
| 2753 | 2753 |
| 2754 { FrameScope scope(masm, StackFrame::MANUAL); |
| 2755 __ PrepareCallCFunction(0, eax); |
| 2756 __ CallCFunction( |
| 2757 ExternalReference::out_of_memory_function(masm->isolate()), 0); |
| 2758 } |
| 2759 |
| 2754 __ bind(&throw_termination_exception); | 2760 __ bind(&throw_termination_exception); |
| 2755 __ ThrowUncatchable(eax); | 2761 __ ThrowUncatchable(eax); |
| 2756 | 2762 |
| 2757 __ bind(&throw_normal_exception); | 2763 __ bind(&throw_normal_exception); |
| 2758 __ Throw(eax); | 2764 __ Throw(eax); |
| 2759 } | 2765 } |
| 2760 | 2766 |
| 2761 | 2767 |
| 2762 void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) { | 2768 void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) { |
| 2763 Label invoke, handler_entry, exit; | 2769 Label invoke, handler_entry, exit; |
| (...skipping 2592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5356 Operand(ebp, 7 * kPointerSize), | 5362 Operand(ebp, 7 * kPointerSize), |
| 5357 NULL); | 5363 NULL); |
| 5358 } | 5364 } |
| 5359 | 5365 |
| 5360 | 5366 |
| 5361 #undef __ | 5367 #undef __ |
| 5362 | 5368 |
| 5363 } } // namespace v8::internal | 5369 } } // namespace v8::internal |
| 5364 | 5370 |
| 5365 #endif // V8_TARGET_ARCH_IA32 | 5371 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |