Index: src/x64/assembler-x64-inl.h |
diff --git a/src/x64/assembler-x64-inl.h b/src/x64/assembler-x64-inl.h |
index a7256565f1d9b8e3803221de5ff41c6feb9a3b4a..dd583cc346a7f8fa2a2480e0cc3c26079a5859e8 100644 |
--- a/src/x64/assembler-x64-inl.h |
+++ b/src/x64/assembler-x64-inl.h |
@@ -65,7 +65,7 @@ void Assembler::emit_code_target(Handle<Code> target, |
RecordRelocInfo(rmode); |
} |
int current = code_targets_.length(); |
- if (current > 0 && code_targets_.last().is_identical_to(target)) { |
+ if (current > 0 && code_targets_.last().address() == target.address()) { |
// Optimization if we keep jumping to the same code target. |
emitl(current - 1); |
} else { |