Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: src/ia32/assembler-ia32-inl.h

Issue 11695006: Cleanup RelocInfo::NONE usage. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_);
}

Powered by Google App Engine
This is Rietveld 408576698