Index: src/mips64/code-stubs-mips64.cc |
diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc |
index 29313a90a57b1f701c84ab65b7953266834dd015..45c56efc8e628d175e3931a2195e3b3ebf51d29b 100644 |
--- a/src/mips64/code-stubs-mips64.cc |
+++ b/src/mips64/code-stubs-mips64.cc |
@@ -831,7 +831,8 @@ void StoreBufferOverflowStub::Generate(MacroAssembler* masm) { |
void MathPowStub::Generate(MacroAssembler* masm) { |
const Register base = a1; |
- const Register exponent = a2; |
+ const Register exponent = MathPowTaggedDescriptor::exponent(); |
+ DCHECK(exponent.is(a2)); |
const Register heapnumbermap = a5; |
const Register heapnumber = v0; |
const DoubleRegister double_base = f2; |
@@ -1597,6 +1598,8 @@ void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { |
// relative to the frame pointer. |
const int kDisplacement = |
StandardFrameConstants::kCallerSPOffset - kPointerSize; |
+ DCHECK(a1.is(ArgumentsAccessReadDescriptor::index())); |
+ DCHECK(a0.is(ArgumentsAccessReadDescriptor::parameter_count())); |
// Check that the key is a smiGenerateReadElement. |
Label slow; |
@@ -4865,7 +4868,8 @@ void CallApiGetterStub::Generate(MacroAssembler* masm) { |
// -- a2 : api_function_address |
// ----------------------------------- |
- Register api_function_address = a2; |
+ Register api_function_address = ApiGetterDescriptor::function_address(); |
+ DCHECK(api_function_address.is(a2)); |
__ mov(a0, sp); // a0 = Handle<Name> |
__ Daddu(a1, a0, Operand(1 * kPointerSize)); // a1 = PCA |