Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 94b3f403067a9e4cf3861e48c2a94586b5145f08..c2e6ba0fd2e705af50479f7c5f7f1c26e2393db6 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -697,7 +697,7 @@ void MacroAssembler::CallApiFunctionAndReturn( |
ExternalReference scheduled_exception_address = |
ExternalReference::scheduled_exception_address(isolate()); |
- ASSERT(rdx.is(function_address)); |
+ ASSERT(rdx.is(function_address) || r8.is(function_address)); |
// Allocate HandleScope in callee-save registers. |
Register prev_next_address_reg = r14; |
Register prev_limit_reg = rbx; |