Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 213193011: Correctly OOM in the CEntryStub after retries. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: moved to debug-only as discussed Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/runtime.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1776 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 1787
1788 // Do full GC and retry runtime call one final time. 1788 // Do full GC and retry runtime call one final time.
1789 Failure* failure = Failure::InternalError(); 1789 Failure* failure = Failure::InternalError();
1790 __ li(v0, Operand(reinterpret_cast<int32_t>(failure))); 1790 __ li(v0, Operand(reinterpret_cast<int32_t>(failure)));
1791 GenerateCore(masm, 1791 GenerateCore(masm,
1792 &throw_normal_exception, 1792 &throw_normal_exception,
1793 &throw_termination_exception, 1793 &throw_termination_exception,
1794 true, 1794 true,
1795 true); 1795 true);
1796 1796
1797 { FrameScope scope(masm, StackFrame::MANUAL);
1798 __ PrepareCallCFunction(0, v0);
1799 __ CallCFunction(
1800 ExternalReference::out_of_memory_function(masm->isolate()), 0);
1801 }
1802
1797 __ bind(&throw_termination_exception); 1803 __ bind(&throw_termination_exception);
1798 __ ThrowUncatchable(v0); 1804 __ ThrowUncatchable(v0);
1799 1805
1800 __ bind(&throw_normal_exception); 1806 __ bind(&throw_normal_exception);
1801 __ Throw(v0); 1807 __ Throw(v0);
1802 } 1808 }
1803 1809
1804 1810
1805 void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) { 1811 void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) {
1806 Label invoke, handler_entry, exit; 1812 Label invoke, handler_entry, exit;
(...skipping 3831 matching lines...) Expand 10 before | Expand all | Expand 10 after
5638 MemOperand(fp, 6 * kPointerSize), 5644 MemOperand(fp, 6 * kPointerSize),
5639 NULL); 5645 NULL);
5640 } 5646 }
5641 5647
5642 5648
5643 #undef __ 5649 #undef __
5644 5650
5645 } } // namespace v8::internal 5651 } } // namespace v8::internal
5646 5652
5647 #endif // V8_TARGET_ARCH_MIPS 5653 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698