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

Unified Diff: runtime/vm/assembler_mips.h

Issue 14076005: Supports FrameLookup vm test on MIPS (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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
« no previous file with comments | « runtime/tests/vm/vm.status ('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 21219)
+++ runtime/vm/assembler_mips.h (working copy)
@@ -169,8 +169,8 @@
// Set up a stub frame so that the stack traversal code can easily identify
// a stub frame.
- void EnterStubFrame();
- void LeaveStubFrame();
+ void EnterStubFrame(bool uses_pp = false);
+ void LeaveStubFrame(bool uses_pp = false);
// 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
@@ -565,6 +565,19 @@
}
}
+ void AddImmediate(Register rd, Register rs, int32_t value) {
+ if (Utils::IsInt(kImmBits, value)) {
+ addiu(rd, rs, Immediate(value));
+ } else {
+ LoadImmediate(TMP1, value);
+ addu(rd, rs, TMP1);
+ }
+ }
+
+ void AddImmediate(Register rd, int32_t value) {
+ AddImmediate(rd, rd, value);
+ }
+
void BranchEqual(Register rd, int32_t value, Label* l) {
LoadImmediate(TMP1, value);
beq(rd, TMP1, l);
@@ -678,7 +691,7 @@
void PushObject(const Object& object);
// Sets register rd to zero if the object is equal to register rn,
- // set to non-zero otherwise.
+ // sets it to non-zero otherwise.
void CompareObject(Register rd, Register rn, const Object& object);
void LoadClassId(Register result, Register object);
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698