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

Side by Side Diff: src/mips/builtins-mips.cc

Issue 12087053: MIPS: Add StubFailureTrampolineFrames (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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 | « no previous file | src/mips/code-stubs-mips.cc » ('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 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 1303
1304 // Preserve registers across notification, this is important for compiled 1304 // Preserve registers across notification, this is important for compiled
1305 // stubs that tail call the runtime on deopts passing their parameters in 1305 // stubs that tail call the runtime on deopts passing their parameters in
1306 // registers. 1306 // registers.
1307 __ MultiPush(kJSCallerSaved | kCalleeSaved); 1307 __ MultiPush(kJSCallerSaved | kCalleeSaved);
1308 // Pass the function and deoptimization type to the runtime system. 1308 // Pass the function and deoptimization type to the runtime system.
1309 __ CallRuntime(Runtime::kNotifyStubFailure, 0); 1309 __ CallRuntime(Runtime::kNotifyStubFailure, 0);
1310 __ MultiPop(kJSCallerSaved | kCalleeSaved); 1310 __ MultiPop(kJSCallerSaved | kCalleeSaved);
1311 } 1311 }
1312 1312
1313 __ mov(at, ra); // Stash the miss continuation
1314 __ Addu(sp, sp, Operand(kPointerSize)); // Ignore state 1313 __ Addu(sp, sp, Operand(kPointerSize)); // Ignore state
1315 __ pop(ra); // Restore RA to continuation in JSFunction 1314 __ Jump(ra); // Jump to miss handler
1316 __ Jump(at); // Jump to miss handler
1317 } 1315 }
1318 1316
1319 1317
1320 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm, 1318 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm,
1321 Deoptimizer::BailoutType type) { 1319 Deoptimizer::BailoutType type) {
1322 { 1320 {
1323 FrameScope scope(masm, StackFrame::INTERNAL); 1321 FrameScope scope(masm, StackFrame::INTERNAL);
1324 // Pass the function and deoptimization type to the runtime system. 1322 // Pass the function and deoptimization type to the runtime system.
1325 __ li(a0, Operand(Smi::FromInt(static_cast<int>(type)))); 1323 __ li(a0, Operand(Smi::FromInt(static_cast<int>(type))));
1326 __ push(a0); 1324 __ push(a0);
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
1898 __ bind(&dont_adapt_arguments); 1896 __ bind(&dont_adapt_arguments);
1899 __ Jump(a3); 1897 __ Jump(a3);
1900 } 1898 }
1901 1899
1902 1900
1903 #undef __ 1901 #undef __
1904 1902
1905 } } // namespace v8::internal 1903 } } // namespace v8::internal
1906 1904
1907 #endif // V8_TARGET_ARCH_MIPS 1905 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698