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

Unified Diff: runtime/vm/stub_code_mips.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
Index: runtime/vm/stub_code_mips.cc
===================================================================
--- runtime/vm/stub_code_mips.cc (revision 41310)
+++ runtime/vm/stub_code_mips.cc (working copy)
@@ -870,8 +870,6 @@
// The new context, saved vm tag, the top exit frame, and the old context.
const intptr_t kPreservedContextSlots = 4;
- const intptr_t kNewContextOffsetFromFp =
- -(1 + kAbiPreservedCpuRegCount + kAbiPreservedFpuRegCount) * kWordSize;
const intptr_t kPreservedRegSpace =
kWordSize * (kAbiPreservedCpuRegCount + kAbiPreservedFpuRegCount +
kPreservedContextSlots);
@@ -973,10 +971,6 @@
__ jalr(A0); // S4 is the arguments descriptor array.
__ TraceSimMsg("InvokeDartCodeStub return");
- // Read the saved new Context pointer.
- __ lw(CTX, Address(FP, kNewContextOffsetFromFp));
- __ lw(CTX, Address(CTX, VMHandles::kOffsetOfRawPtrInHandle));
-
// Get rid of arguments pushed on the stack.
__ AddImmediate(SP, FP, kSavedContextSlotFromEntryFp * kWordSize);

Powered by Google App Engine
This is Rietveld 408576698