Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index e92254d10e460577a6b56e5027a196daaec2be4b..ef507b534b3f9b269b6dedbe6256cbb597832624 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -380,7 +380,8 @@ void FloatingPointHelper::CheckFloatOperands(MacroAssembler* masm, |
void MathPowStub::Generate(MacroAssembler* masm) { |
Factory* factory = isolate()->factory(); |
- const Register exponent = eax; |
+ const Register exponent = MathPowTaggedDescriptor::exponent(); |
+ DCHECK(exponent.is(eax)); |
const Register base = edx; |
const Register scratch = ecx; |
const XMMRegister double_result = xmm3; |
@@ -659,6 +660,8 @@ void FunctionPrototypeStub::Generate(MacroAssembler* masm) { |
void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { |
// The key is in edx and the parameter count is in eax. |
+ DCHECK(edx.is(ArgumentsAccessReadDescriptor::index())); |
+ DCHECK(eax.is(ArgumentsAccessReadDescriptor::parameter_count())); |
// The displacement is used for skipping the frame pointer on the |
// stack. It is the offset of the last parameter (if any) relative |
@@ -4634,6 +4637,7 @@ void CallApiGetterStub::Generate(MacroAssembler* masm) { |
// -- ... |
// -- edx : api_function_address |
// ----------------------------------- |
+ DCHECK(edx.is(ApiGetterDescriptor::function_address())); |
// array for v8::Arguments::values_, handler for name and pointer |
// to the values (it considered as smi in GC). |