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

Unified Diff: runtime/vm/assembler_mips.h

Issue 62953014: ARM and MIPS changes which correspond to the initial change submitted in (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_mips.h
===================================================================
--- runtime/vm/assembler_mips.h (revision 30114)
+++ runtime/vm/assembler_mips.h (working copy)
@@ -175,13 +175,16 @@
return FLAG_use_far_branches || use_far_branches_;
}
+ void EnterFrame();
+ void LeaveFrameAndReturn();
+
// Set up a stub frame so that the stack traversal code can easily identify
// a stub frame.
- void EnterStubFrame(bool uses_pp = false);
- void LeaveStubFrame(bool uses_pp = false);
+ void EnterStubFrame(bool load_pp = false);
+ void LeaveStubFrame();
// A separate macro for when a Ret immediately follows, so that we can use
// the branch delay slot.
- void LeaveStubFrameAndReturn(Register ra = RA, bool uses_pp = false);
+ void LeaveStubFrameAndReturn(Register ra = RA);
// Instruction pattern from entrypoint is used in dart frame prologs
// to set up the frame and save a PC which can be used to figure out the
@@ -803,6 +806,14 @@
}
}
+ void LoadPoolPointer() {
+ GetNextPC(TMP); // TMP gets the address of the next instruction.
+ const intptr_t object_pool_pc_dist =
+ Instructions::HeaderSize() - Instructions::object_pool_offset() +
+ CodeSize();
+ lw(PP, Address(TMP, -object_pool_pc_dist));
+ }
+
void LoadImmediate(Register rd, int32_t value) {
if (Utils::IsInt(kImmBits, value)) {
addiu(rd, ZR, Immediate(value));
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698