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

Unified Diff: runtime/vm/stub_code_x64.cc

Issue 678993004: Remove dead code from InvokeDartCode stub. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« runtime/vm/stub_code_arm.cc ('K') | « runtime/vm/stub_code_mips.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_x64.cc
===================================================================
--- runtime/vm/stub_code_x64.cc (revision 41310)
+++ runtime/vm/stub_code_x64.cc (working copy)
@@ -747,7 +747,6 @@
// Save arguments descriptor array and new context.
const intptr_t kArgumentsDescOffset = -(kInitialOffset) * kWordSize;
__ pushq(kArgDescReg);
- const intptr_t kNewContextOffset = -(kInitialOffset + 1) * kWordSize;
__ pushq(kNewContextReg);
// Save C++ ABI callee-saved registers.
@@ -865,10 +864,6 @@
// Call the Dart code entrypoint.
__ call(kEntryPointReg); // R10 is the arguments descriptor array.
- // Restore CTX from the saved context handle.
- __ movq(CTX, Address(RBP, kNewContextOffset));
- __ movq(CTX, Address(CTX, VMHandles::kOffsetOfRawPtrInHandle));
-
// Read the saved arguments descriptor array to obtain the number of passed
// arguments.
__ movq(kArgDescReg, Address(RBP, kArgumentsDescOffset));
« runtime/vm/stub_code_arm.cc ('K') | « runtime/vm/stub_code_mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698