Index: src/ia32/assembler-ia32-inl.h |
diff --git a/src/ia32/assembler-ia32-inl.h b/src/ia32/assembler-ia32-inl.h |
index 114f8784214401960492f92320ab2a76e013dc1e..f8385923b183076f3612c2cde47ed93585640f76 100644 |
--- a/src/ia32/assembler-ia32-inl.h |
+++ b/src/ia32/assembler-ia32-inl.h |
@@ -366,7 +366,7 @@ void Assembler::emit(Handle<Object> handle) { |
void Assembler::emit(uint32_t x, RelocInfo::Mode rmode, TypeFeedbackId id) { |
if (rmode == RelocInfo::CODE_TARGET && !id.IsNone()) { |
RecordRelocInfo(RelocInfo::CODE_TARGET_WITH_ID, id.ToInt()); |
- } else if (rmode != RelocInfo::NONE) { |
+ } else if (!RelocInfo::IsNone(rmode)) { |
RecordRelocInfo(rmode); |
} |
emit(x); |
@@ -379,7 +379,7 @@ void Assembler::emit(const Immediate& x) { |
emit_code_relative_offset(label); |
return; |
} |
- if (x.rmode_ != RelocInfo::NONE) RecordRelocInfo(x.rmode_); |
+ if (!RelocInfo::IsNone(x.rmode_)) RecordRelocInfo(x.rmode_); |
emit(x.x_); |
} |