Index: src/x87/code-stubs-x87.cc |
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc |
index fe14b8a90f2985f84f15ce8df4630e1f780ba866..cc3d6ce0a7a3c9718d21f5a6f5f62785c923fa04 100644 |
--- a/src/x87/code-stubs-x87.cc |
+++ b/src/x87/code-stubs-x87.cc |
@@ -332,6 +332,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 |
@@ -4283,6 +4285,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). |