Index: src/x64/deoptimizer-x64.cc |
diff --git a/src/x64/deoptimizer-x64.cc b/src/x64/deoptimizer-x64.cc |
index a88cd73eb9e70d6bc60bd185a1fcd4877705d708..60d46ef2bb41aae0f8a252b80c53323b99c113fe 100644 |
--- a/src/x64/deoptimizer-x64.cc |
+++ b/src/x64/deoptimizer-x64.cc |
@@ -82,6 +82,7 @@ void Deoptimizer::DeoptimizeFunction(JSFunction* function) { |
} |
#ifdef DEBUG |
// Destroy the code which is not supposed to run again. |
+ CHECK(code->safepoint_table_start() >= last_pc_offset); |
unsigned instructions = code->safepoint_table_start() - last_pc_offset; |
CodePatcher destroyer(code->instruction_start() + last_pc_offset, |
instructions); |