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

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

Issue 12052053: Add StubFailureTrampolineFrames (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove extraneous change Created 7 years, 11 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/arm/code-stubs-arm.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 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 1265
1266 // Preserve registers across notification, this is important for compiled 1266 // Preserve registers across notification, this is important for compiled
1267 // stubs that tail call the runtime on deopts passing their parameters in 1267 // stubs that tail call the runtime on deopts passing their parameters in
1268 // registers. 1268 // registers.
1269 __ stm(db_w, sp, kJSCallerSaved | kCalleeSaved); 1269 __ stm(db_w, sp, kJSCallerSaved | kCalleeSaved);
1270 // Pass the function and deoptimization type to the runtime system. 1270 // Pass the function and deoptimization type to the runtime system.
1271 __ CallRuntime(Runtime::kNotifyStubFailure, 0); 1271 __ CallRuntime(Runtime::kNotifyStubFailure, 0);
1272 __ ldm(ia_w, sp, kJSCallerSaved | kCalleeSaved); 1272 __ ldm(ia_w, sp, kJSCallerSaved | kCalleeSaved);
1273 } 1273 }
1274 1274
1275 __ mov(ip, lr); // Stash the miss continuation
1276 __ add(sp, sp, Operand(kPointerSize)); // Ignore state 1275 __ add(sp, sp, Operand(kPointerSize)); // Ignore state
1277 __ pop(lr); // Restore LR to continuation in JSFunction 1276 __ mov(pc, lr); // Jump to miss handler
1278 __ mov(pc, ip); // Jump to miss handler
1279 } 1277 }
1280 1278
1281 1279
1282 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm, 1280 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm,
1283 Deoptimizer::BailoutType type) { 1281 Deoptimizer::BailoutType type) {
1284 { 1282 {
1285 FrameScope scope(masm, StackFrame::INTERNAL); 1283 FrameScope scope(masm, StackFrame::INTERNAL);
1286 // Pass the function and deoptimization type to the runtime system. 1284 // Pass the function and deoptimization type to the runtime system.
1287 __ mov(r0, Operand(Smi::FromInt(static_cast<int>(type)))); 1285 __ mov(r0, Operand(Smi::FromInt(static_cast<int>(type))));
1288 __ push(r0); 1286 __ push(r0);
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
1852 __ bind(&dont_adapt_arguments); 1850 __ bind(&dont_adapt_arguments);
1853 __ Jump(r3); 1851 __ Jump(r3);
1854 } 1852 }
1855 1853
1856 1854
1857 #undef __ 1855 #undef __
1858 1856
1859 } } // namespace v8::internal 1857 } } // namespace v8::internal
1860 1858
1861 #endif // V8_TARGET_ARCH_ARM 1859 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/code-stubs-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698