Index: src/mips/regexp-macro-assembler-mips.cc |
diff --git a/src/mips/regexp-macro-assembler-mips.cc b/src/mips/regexp-macro-assembler-mips.cc |
index 45d39639727e51b0c5f017754594c95c4e89f1c1..63e836f22f646af92ea25b05c79f53de24e7dcab 100644 |
--- a/src/mips/regexp-macro-assembler-mips.cc |
+++ b/src/mips/regexp-macro-assembler-mips.cc |
@@ -1050,7 +1050,7 @@ int RegExpMacroAssemblerMIPS::CheckStackGuardState(Address* return_address, |
MaybeObject* result = Execution::HandleStackGuardInterrupt(); |
if (*code_handle != re_code) { // Return address no longer valid. |
- int delta = *code_handle - re_code; |
+ int delta = code_handle->address() - re_code->address(); |
// Overwrite the return address on the stack. |
*return_address += delta; |
} |