| Index: src/assembler.h
|
| diff --git a/src/assembler.h b/src/assembler.h
|
| index cfd991495df9256eaab1aa7d638f8a7688ccadb5..5a00d44ea2c0fa6c2e2000049f45e50aed78802c 100644
|
| --- a/src/assembler.h
|
| +++ b/src/assembler.h
|
| @@ -375,6 +375,15 @@ class RelocInfo BASE_EMBEDDED {
|
| }
|
| static inline int ModeMask(Mode mode) { return 1 << mode; }
|
|
|
| + // Returns true if the first RelocInfo has the same mode and raw data as the
|
| + // second one.
|
| + static inline bool IsEqual(RelocInfo first, RelocInfo second) {
|
| + return first.rmode() == second.rmode() &&
|
| + (first.rmode() == RelocInfo::NONE64 ?
|
| + first.raw_data64() == second.raw_data64() :
|
| + first.data() == second.data());
|
| + }
|
| +
|
| // Accessors
|
| byte* pc() const { return pc_; }
|
| void set_pc(byte* pc) { pc_ = pc; }
|
|
|