Index: src/mips/frames-mips.h |
diff --git a/src/mips/frames-mips.h b/src/mips/frames-mips.h |
index fd93e8b28002aa3a2454dd865c5d4fcf7432e1c1..2e720fb17e7237f8bf974b702323aaa729f740dd 100644 |
--- a/src/mips/frames-mips.h |
+++ b/src/mips/frames-mips.h |
@@ -79,6 +79,43 @@ static const int kNumSafepointSavedRegisters = |
typedef Object* JSCallerSavedBuffer[kNumJSCallerSaved]; |
+static const int kUndefIndex = -1; |
+// Map with indexes on stack that corresponds to codes of saved registers. |
+static const int kSafepointRegisterStackIndexMap[kNumRegs] = { |
+ kUndefIndex, |
+ kUndefIndex, |
+ 0, // v0 |
+ kUndefIndex, |
+ 1, // a0 |
+ 2, // a1 |
+ 3, // a2 |
+ 4, // a3 |
+ kUndefIndex, |
+ kUndefIndex, |
+ kUndefIndex, |
+ kUndefIndex, |
+ kUndefIndex, |
+ kUndefIndex, |
+ kUndefIndex, |
+ kUndefIndex, |
+ 5, // Saved temporaries. |
+ 6, |
+ 7, |
+ 8, |
+ 9, |
+ 10, |
+ 11, |
+ 12, |
+ kUndefIndex, |
+ kUndefIndex, |
+ kUndefIndex, |
+ kUndefIndex, |
+ 13, // gp |
+ 14, // sp |
+ 15, // fp |
+ kUndefIndex |
+}; |
+ |
// ---------------------------------------------------- |